Paste #59720: Diff note for paste #59719

Date: 2019/11/07 19:16:32 UTC-08:00
Type: Diff Report

View Raw Paste Download This Paste
Copy Link


 batz2:
     type: task
     debug: true
     script:
 
     #- cast slow d:30s p:1 <player> hide_particles
     - foreach <server.list_npcs_named[bats]> as:bt:
         - define <[bt]>:<util.random.int[1].to[360]>
     - wait 1t
-    - repeat 36:
+    - repeat 36 as:loop:
         - wait 2t
-        - define loop:<[value]>
-        #- narrate <[loop]>
         - foreach <server.list_npcs_named[bats]> as:bb:
-            - define circle:<tern[[loop].mul[20].add[<[<[bb]>]>].is[more].than[360]].pass[<[loop].mul[20].add[<[<[bb]>]>].sub[360].to_radians>].fail[<[loop].mul[20].add[<[<[bb]>]>].to_radians>]>
+            - define from:<tern[<[loop].mul[20].add[<[<[bb]>]>].is[more].than[360]>].pass[<[loop].mul[20].add[<[<[bb]>]>].sub[360].to_radians>].fail[<[loop].mul[20].add[<[<[bb]>]>].to_radians>].sub[1]>
-            - define from:<[circle].sub[1]>
             #- walk <[bb]> <player.location.add[<location[3,<util.random.decimal[1].to[4]>,3].rotate_around_y[<[circle]>]>]> speed:1.2 radius:3
             - push <[bb]> origin:<player.location.add[<location[1,<util.random.decimal[1].to[4]>,1].rotate_around_y[<[from]>]>]>  destination:<player.location.add[<location[1,<util.random.decimal[1].to[4]>,1].rotate_around_y[<[circle]>]>]> speed:1 duration:3t
             - wait 1t