Paste #19912: Diff note for paste #19911

Date: 2015/09/06 22:18:14 UTC-07:00
Type: Diff Report

View Raw Paste Download This Paste
Copy Link


 cchat:
     type: format
     format: <&b><npc.name><&f><&co><&a><text>
 
 shadowassignment:
     type: assignment
     actions:
         on assignment:
         - trigger name:proximity state:true
         - trigger name:click state:true
-        - run masterpath npc:<npc> def<^npc>
+        - run masterpath npc:<npc> def:<npc>
     interact scripts:
     - 10 shadowquest
 shadowquest:
     type: interact
     steps:
         1:
             click trigger:
                 script:
                 - narrate format:cchat "please do not touch me i am in a hurry. the kingdom is in a state of emergency."
             proximity trigger:
                 exit:
                     script:
                     - narrate format:cchat "Wait!!! You there. Your name is <player.name> I have heard tales of you. You might be able to save the kingdom."
                     - ^create player "Ender Knight" <npc.location> save: "Ender Knight"
                     - ^adjust <player> hide_entity:<npc>
                     - ^adjust <server.list_online_players.exclude[<player>]> hide_entity:<entry["Ender Knight"].created_npc>
                     - ^run quest npc:<entry["Ender Knight"].created_npc> def:<^npc>
                     - ^run questtalk npc:
                     - zap 2                   
 questtalk:
     type: task
     definition: masternpc
     script:
         - ^while <npc.location.simple.distance[<player.location.simple>].is[more].then[5]> {
           - walk <npc> <player.location.simple>
           }
         - narrate format:cchat "please listen to what i have to say. there is a dangerous creature that has moved into the sewers and has been amasing a monster army. will you help"
                  
 masterpath:
     type: task
     definition: masternpc
     script:
         - walk <def[masternpc].anchor[spot1]> auto_range
         - wait 10
         - walk <def[masternpc].anchor[spot2]> auto_range
         - wait 10
         - walk <def[masternpc].anchor[spot3]> auto_range
         - wait 10
         - walk <def[masternpc].anchor[spot4]> auto_range
         - wait 10
         - walk <def[masternpc].anchor[spot5]> auto_range
         - wait 10
         - walk <def[masternpc].anchor[spot6]> auto_range
         - wait 10
         - walk <def[masternpc].anchor[spot7]> auto_range
         - wait 10
         - walk <def[masternpc].anchor[spot8]> auto_range
         - wait 10
         - walk <def[masternpc].anchor[spot9]> auto_range
         - wait 10
 quest:
     type: interact
     definition: masternpc
     steps:
         1:
           
             chat trigger:
                 1:
                     trigger: /yes/"i will help you. this evil cannot go unpunished."
                     script:
                     - run enderkightpath npc:<npc> def:<masternpc>
                 2:
                     trigger: /no/"i will not put my life at risk for you."
                     script:
                     - narrate format:cchat "well than i will have to find somone else."
                     - walk <npc> <def[masternpc].location> auto-range
                     - remove <npc>
                     - adjust <player> show_entity:<def[masternpc]>
                     - zap 1 script:shadowquest
         2:
 enderknightpath:
     type: task
     definitions: masternpc
     script:
     - ^flag <npc> step:1
     - ~walk <def[masternpc].anchor[spot10]> auto_range
     - inject pause
     - ^flag <npc> step:2
     - ~walk <def[masternpc].anchor[spot11]> auto_range
     - inject pause
     - wait 1
     - ^flag <npc> step:3
     - ~walk <def[masternpc].anchor[spot12]> auto_range
     - inject pause
     - remove <npc>
     - adjust <player> show_entity:<def[masternpc]>
     - zap 1 script:shadowquest
 pause:
     type: task
     script:
     - ^while <npc.location.distance[<player.location>].is[or_more].than[5]> {
       - narrate format:cchat "try to keep up. i cant go loosing you now."
       - wait 5
       }
 enderkighttalk:
     type: task
     script:
     - narrate format:cchat "I am afraid i have under sold the difficulty of this creature. it is viciously intelegent. and has an army of creatures at its disposal. you must be very carefull of its magic. all of the soldiars i have sent down there have not come back. "
     - wait 3
     - narrate format:cchat "the sewers are also like a labrynth. no one knows all the pathways. not even me. i will try to meet you at the exit if i am able."
     - while <npc.flag[step].is[or_less].then[1]>{
     - wait 1
     }
     - narrate format:cchat "well here we are at the entrancee. good luck to you. i have left some supplies in this chest. if you survive your welcome to them. good luck <player.name>"