Date: 2014/05/03 17:43:07 UTC-07:00
Type: Denizen Script
'Fidget':
#
# Directly pass info to the fidget script for one time uses
#
# - ^run s@Fidget def:radius|speed|wait|location|height|pathmat id:<npc.id>_YourQueueID
#
type: task
debug: false
script:
- ^if !<npc.is_spawned> queue clear
- ^define radius '<def[1] || <npc.flag[Pathfind.FidgetRadius] || 5>>'
- ^define speed '<def[2] || <npc.flag[Pathfind.FidgetSpeed] || 0.6>>'
- ^define wait '<def[3] || <npc.flag[Pathfind.FidgetWait] || 10>>'
- ^define FidgetLocation '<def[4] || <npc.flag[Pathfind.FidgetLocation] || <npc.location>>>'
- ^define FidgetHeight '<def[5] || <npc.flag[Pathfind.FidgetHeight] || 4>>'
- ^define pathMaterial '<def[6] || <npc.flag[Pathfind.FidgetPathMaterial] || cobblestone|coal_block|cobblestone_stairs>>'
- ^define counter 0
- inject s@FidgetChooseLocation instantly
- wait <util.random.int[<def[wait].mul[0.5].as_int>].to[<def[wait].mul[1.5].as_int>]>s
- inject s@Fidget