Paste #22466: Edit of P#22463 - Walk stop

Date: 2015/11/11 07:48:34 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


nvtest_as:
  type: assignment
  actions:
    on assignment:
    - trigger name:click state:true
    - trigger name:chat state:true
  interact scripts:
  - 10 nv_it

nv_it:
  type: interact
  steps:
    1:
      click trigger:
        script:
        - narrate "I stop now."
        - flag server nvi_l:<n@nvi.navigator.target_location>
        - announce "<server.flag[nvi_l]>"
        - walk n@nvi stop
        - queue <server.flag[nvi_p]> pause
        - wait 5s
        - ~walk <server.flag[nvi_l]>
        - queue <server.flag[nvi_p]> resume
#      chat trigger:
#        1:
#          trigger: /1/ This is one
#          script:
#          - narrate "This is one"
#          - narrate "<queue.id>"
#        2:
#          trigger: /2/ This is two
#          script:
#          - narrate "This is two."
#          - narrate "<q@queue.id>"

nvi_p:
  script:
  - flag server nvi_p:<queue.id>
  - announce "<server.flag[nvi_p]>"
  - ~walk l@-13,72,151,world
  - ~walk l@-13,72,148,world
  - ~walk l@-17,72,145,world
  - ~walk l@-18,72,140,world
  - ~walk l@-22,72,140,world
  - ~walk l@-18,72,144,world
  - ~walk l@-15,72,148,world
  - ~walk l@-13,72,152,world
  - announce "<&e>Path ends."
  type: task