Paste #4149: Edit of P#4148 - Edit of P#4146 - Edit of P#4144 - Edit of P#4143 - Edit of P#4140 - Edit of P#4139

Date: 2014/05/06 15:46:09 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


Warrior:
  type: assignment
  actions: 
    on assignment: 
    - anchor id:home add <275,64,141,World>
    - trigger name:proximity state:true
  Interact scripts: 
  - 10 WarriorAI  
WarriorAI:
  type: interact 
  Steps: 
    1: 
      proximity trigger: 
        entry: 
            script: 
            - attack <npc> target:<player>
            - flag npc targets:->:<player>
        exit:
            script:
            - flag npc targets:<-:<player>
            - if <npc.flag[targets]> != 'null' {
                - attack <npc> target:<player> }
            else {
                - anchor id:home walkto }