Paste #28554: Untitled Paste

Date: 2016/01/16 07:40: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]> {
    - define point:<npc.anchor.list.random>
    - flag <npc> anchorPoint:<def[point]>
    - ~walk <npc.anchor[<def[point]>]> auto_range
    - define waitTime <util.random.int[<npc.flag[pauseMin]>].to[<npc.flag[pauseMax]>]>
    - wait <def[waitTime]>
    }