Paste #27614: Walk script

Date: 2016/01/01 01:45:45 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10


Default_Walk:
  type: task
  debug: false
  script:
  - flag <npc> walkQueue:<queue>
  - while <npc.has_flag[walk]> {
    - ~walk <npc.anchor[<npc.anchor.list.random>]>
    - define waitTime <util.random.int[<npc.flag[minPauseLimit]>].to[<npc.flag[maxPauseLimit]>]>
    - wait <def[waitTime]>
    }