Paste #68808: Tests

Date: 2020/05/10 10:15:20 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


Spawn_Bandit_Archer:
  type: task
  debug: true
  definitions: location
  script:
    - if <[location]||null> == null:
          - stop
    - create player Bandyta <[location]> save:npcname
    - create pig Kon <[location]> save:npchorse
    - execute as_player "npc select <entry[npchorse].created_npc.id>"
    - execute as_player "npc controllable"
    - wait 1t
    - mount <entry[npcname].created_npc>|<entry[npchorse].created_npc>
    - execute as_player "npc select <entry[npcname].created_npc.id>"
    - execute as_player "npc follow"
Spawn_Bandit_Archer2:
  type: task
  debug: true
  definitions: location
  script:
    - if <[location]||null> == null:
          - stop
    - create player Bandyta <[location]> save:npcname
    - create horse Kon <[location]> save:npchorse
    - execute as_player "npc select <entry[npchorse].created_npc.id>"
    - execute as_player "npc controllable"
    - wait 1t
    - mount <entry[npcname].created_npc>|<entry[npchorse].created_npc>
    - execute as_player "npc select <entry[npcname].created_npc.id>"
    - execute as_player "npc follow"