Paste #12437: Diff note for paste #12436

Date: 2014/12/30 19:47:21 UTC-08:00
Type: Diff Report

View Raw Paste Download This Paste
Copy Link


 Sitting:
   Type: Assignment
   Actions:
     On Assignment:
       - Trigger Name:Chat State:true
   Interact Scripts:
   - 100 Sitting Listener
 
 Sitting Listener:
   Type: Interact
   Steps:
     1:
       Chat Trigger:
         1:
           Trigger: /sit/
           Script:
             - flag player sitter:<npc>
             - flag player chatter
             - chat "Ok. Where do you want me to sit?"
 
 ChooseBlockListener:
     Type: World
     Events:
         On player Clicks Block:
         - if <player.has_flag[chatter]> {
           - sit <context.location.sub[-.5,.5,-.5]> npc:<player.flag[sitter]>
           - flag chatter:!
           }
 
 timedLoopStart:
   type: world
   events:
     on server start:
     - run timedLoop
 
 timedLoop:
   type: task
     script:
     - foreach <server.get_npcs_flagged[sitter]> {
       - sit <def[value].location> npc:<def[value]>
       }
-      - announce "Loop..."
-      - wait 5s
-      - inject s@timedLoop
+    - announce "Loop..."
+    - wait 5s
+    - inject s@timedLoop