Paste #39505: Diff note for paste #39504

Date: 2017/01/31 04:46:43 UTC-08:00
Type: Diff Report

View Raw Paste Download This Paste
Copy Link


 cchat:
     type: format
     format: "<&b><npc.name><&f><&co> <&a><text>"
 
 Guide:
     type: assignment
     actions:
         on assignment:
         - trigger name:chat state:true
         - trigger name:click state:true
     Interact Scripts:
     - 10 guide_interact
     
 guide_interact:
     type: Interact
     Steps:
         '1':
             click trigger:
                 Script:
                 - narrate format:cchat "Hello! Would you like a tour?"
                 - narrate "Say /yes/ or /no/"
             chat trigger:
                 1:
                     trigger: /Yes/, I'd love to
                     script:
                     - narrate format:cchat "Great! Follow me!"
                     - ^create player Guide <npc.location> save:guide
                     - ^adjust <player> hide_entity:<npc>
                     - ^adjust <server.list_online_players.exclude[<player>]> hide_entity:<entry[guide].created_npc>
                     - ^run guide_path npc:<entry[guide].created_npc> def:<^npc>
                     - zap 2
                     
                 2:
                     trigger: /No/, I don't want to
                     script:
                     - narrate format:cchat "Okay, enjoy your time!"
     
 guide_path:
-    type: interact
-    steps:
-    'money':
-        click trigger:
-            script:
-            - ~walk <def[masterguide].anchor[spot1]> auto_range
-            - ~inject guide_talk_money
-            - ^inject guide_trypause
-            - zap 'land'
-    'land':
-        click trigger:
-            script:
-            - ~walk <def[masterguide].anchor[spot2]> auto_range
-            - ~inject guide_talk_land
-            - ^inject guide_trypause
-            - zap 'city'
-    'city':
-        click trigger:
-            script:
-            - ~walk <def[masterguide].anchor[spot3]> auto_range
-            - ~inject guide_talk_city
-            - ^inject guide_trypause
-            - zap 'ranks'
-    'ranks':
-        click trigger:
-            script:
-            - ~walk <def[masterguide].anchor[spot4]> auto_range
-            - ~inject guide_talk_money
-            - ^inject guide_trypause
-            - wait 1
-            - remove <npc>
-            - adjust <player> show_entity:<def[masterguide]>
-            - zap 1 script:s@guide_interact
+    type: Interact
+    Steps:
+        '1':
+            click trigger:
+                script:
+                - ~walk <def[masterguide].anchor[spot1]> auto_range
+                - ~run 'guide_talk_money'
+                - ^inject guide_trypause
+                - zap '2'
+        '2':
+            click trigger:
+                script:
+                - ~walk <def[masterguide].anchor[spot2]> auto_range
+                - ~run 'guide_talk_land'
+                - ^inject guide_trypause
+                - zap '3'
+        '3':
+            click trigger:
+                script:
+                - ~walk <def[masterguide].anchor[spot3]> auto_range
+                - ~run 'guide_talk_city'
+                - ^inject guide_trypause
+                - zap '4'
+        '4':
+            click trigger:
+                script:
+                - ~walk <def[masterguide].anchor[spot4]> auto_range
+                - ~run 'guide_talk_ranks'
+                - ^inject guide_trypause
+                - wait 1
+                - remove <npc>
+                - adjust <player> show_entity:<def[masterguide]>
+                - zap 1 script:s@guide_interact
         
 guide_trypause:
     type: task
     script:
     - ^while <npc.location.distance[<player.location>].is[OR_MORE].than[5]> {
       - random 3
       - narrate format:cchat "Try to keep up!"
       - narrate format:cchat "Hurry up! I'm waiting!"
       - narrate format:cchat "Come on!"
       - wait 4
       }
     
 guide_talk_money:
     type: task
     script:
     - narrate format:cchat "Hello, this is the first line of the money making guide."
     - wait 3
     - narrate format:cchat "And this is the second line of the money making guide."
     
 guide_talk_land:
     type: task
     script:
     - narrate format:cchat "Hello, this is the first line of the land protection guide."
     - wait 3
     - narrate format:cchat "And this is the second line of the land protection guide."
     
 guide_talk_city:
     type: task
     script:
     - narrate format:cchat "Hello, this is the first line of the city creation guide."
     - wait 3
     - narrate format:cchat "And this is the second line of the city creation guide."
     
 guide_talk_ranks:
     type: task
     script:
     - narrate format:cchat "Hello, this is the first line of the ranks guide."
     - wait 3
     - narrate format:cchat "And this is the second line of the ranks guide."
-