Paste #28532: Untitled Paste

Date: 2016/01/15 22:58:32 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12


Walk:
  type: task
  debug: false
  script:
  - flag <npc> walkQueue:<queue>
  - while <npc.has_flag[walk]> {
    - flag <npc> anchorPoint:<npc.anchor.list.random>
    - ~walk <npc.anchor[<npc.flag[anchorPoint]>]>
    - define waitTime <util.random.int[<npc.flag[pauseMin].as_int>].to[<npc.flag[pauseMax].as_int>]>
    - wait <def[waitTime]>
    }
  - queue clear