Date: 2019/11/07 19:16:32 UTC-08:00
Type: Denizen Script
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 as:loop:
- wait 2t
- foreach <server.list_npcs_named[bats]> as:bb:
- 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]>
#- 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