aboutsummaryrefslogtreecommitdiff
path: root/doc/EventAI.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/EventAI.txt')
-rw-r--r--doc/EventAI.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/EventAI.txt b/doc/EventAI.txt
index 7434a7adf8e..c63fb9044cc 100644
--- a/doc/EventAI.txt
+++ b/doc/EventAI.txt
@@ -137,6 +137,7 @@ Each event type has its own specific interpretation of it's params, like every e
39 ACTION_T_CALL_FOR_HELP Radius Call any friendly out-of-combat creatures in a radius (Param1) to attack current creature's target.
40 ACTION_T_SET_SHEATH Sheath Sets sheath state for a creature (0 = no weapon, 1 = melee weapon, 2 = ranged weapon).
41 ACTION_T_FORCE_DESPAWN No Params Despawns the creature
+42 ACTION_T_SET_INVINCEABILITY_HP_LEVEL hp_level, is_percent Set min. health level for creature that can be set at damage as flat value or percent from max health
* = Use -1 where the param is expected to do nothing. Random constant is generated for each event, so if you have a random yell and a random sound, they will be linked up with each other (ie. param2 with param2).
@@ -737,6 +738,14 @@ This possible setup by set ar event AI start (single used EVENT_T_TIMER_OOC set
Despawns the creature (in or out of combat)
No parameters
+-------------------------
+42 ACTION_T_SET_INVINCEABILITY_HP_LEVEL
+-------------------------
+Parameter 1: min. health level for creature that can be set at damage, 0 used as absent min. health value for apply damage.
+Parameter 2: format of paramater 1 value
+0 paramater 1 used as flat value
+1 paramater 1 used as percent (0..100) from creature max health
+
=========================================
Target Types
=========================================