Warrior: type: assignment actions: on spawn: - anchor id:home add l@275,64,141,World - trigger name:proximity state:true - health 30 state:true - equip Interact scripts: - 10 WarriorAI WarriorAI: type: interact steps: 1: proximity trigger: move: script: - if == null { - flag npc wait d:5s - attack target: - chat "Feel my might!" - wait 2 - foreach { - potion harm %value% p:0 } } exit: script: - flag npc targets:<-: - if == 0 { - attack } else { - anchor id:home walknear r:2 } Slash: type: task script: - chat "Feel my might!" - wait 1 - foreach { - potion harm p:1 - cooldown 5s }