"TeaLocustSkitter": type: task debug: false script: - while { - flag server LocustSkitter: - if { - if { - walk stop } - if { - run "TeaRatConsumeCropsTask" } - if { - flag NestLocation: - if { - run TeaRatNestParticles } } - wait 2s - if { - if ].within[1].size.is[MORE].than[0]||false> { - if { - walk stop } - wait 1t - if { - walk ].within[1].random> radius:2 speed:2 } } else if ].within[16].size.is[MORE].than[0]||false> { - if { - walk stop } - wait 1t - if { - walk ].within[16].random> radius:2 speed:2 } } else { - if { - walk stop } - wait 1t - if { - walk radius:2 speed:2 } } } else if { - if ].within[2].size.is[MORE].than[0]||false> { - if { - walk stop } - wait 1t - if { - walk ].within[2].random> radius:2 speed:2 } } else if ].within[16].size.is[MORE].than[0]||false> { - if { - walk stop } - wait 1t - if { - walk ].within[16].random> radius:2 speed:2 } } else { - if { - walk stop } - wait 1t - if { - walk radius:2 speed:2 } - wait 10s } } } }