bat_sphere: type: task debug: true script: - define 18th: - define arc:<[18th].mul[2]> #- narrate <[18th]> - define batzz: - repeat 3 as:ring: - define rY:]> #- narrate <[ring]>,<[rY]> - repeat 18 as:loop: #- narrate <[loop]>,,0].rotate_around_y[<[18th].mul[<[loop]>]>]> - spawn target_me location:,0].rotate_around_y[<[18th].mul[<[loop]>]>]>]> save:B_swarm - define batzz:<[batzz].include[]> - flag rad:<[arc].mul[<[loop]>]> - flag addY:<[rY]> #- narrate <[batzz].parse[entity_type]> - repeat 1: - foreach <[batzz]> as:b: #- define rand_h:]>]>]> #- define rand_v:]>]>]> #- narrate <[loop_index]> #- narrate <[b].list_flags> #- narrate rad:rad(<[b].flag[rad]>) #- narrate <[b].flag[rad]>+<[18th]>=<[b].flag[rad].add[<[18th]>]> - define newrad:<[b].flag[rad].add[<[arc]>]> #- narrate new:<[newrad]> - define addloc:,0].rotate_around_y[<[b].flag[rad].add[<[arc]>]>].xyz> #- narrate <[addloc]> #- narrate ]> - flag <[b]> rad:<[newrad]> #- narrate update:<[b].flag[rad]> #- narrate <[b].substring[32]> #- narrate <[b].location.simple> #- narrate ].simple> - narrate (------------<[loop_index]>------------) - push <[b]> origin:<[b].location> destination:]> speed:0.2 - wait 40t