From 87d7353e736c678d260bcc14176c05fb19e8ccdc Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Sat, 2 May 2020 16:48:38 +0200 Subject: Add new SMART_TARGET types (#211) --- docs/smart_scripts.md | 87 ++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 69 insertions(+), 18 deletions(-) (limited to 'docs/smart_scripts.md') diff --git a/docs/smart_scripts.md b/docs/smart_scripts.md index 2b2901e..4e4cbd4 100644 --- a/docs/smart_scripts.md +++ b/docs/smart_scripts.md @@ -4242,9 +4242,8 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
-
All players up to maxCount within the specified range.
When target.o is set and it didnt find any targets in min-max range, it will try all possible targets in max range instead.
All players up to maxCount within the specified range. Excluding GMs and Dead.
SMART_TARGET_PLAYER_DISTANCE
All units on creature's threat list within the specified distance if maxDist > 0
SMART_TARGET_CLOSEST_ENEMY
25
maxDist
playerOnly (0/1)
@@ -4401,13 +4400,13 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
Any attackable target (creature or player) within maxDist
SMART_TARGET_CLOSEST_FRIENDLY
26
maxDist
playerOnly (0/1)
@@ -4420,14 +4419,14 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
Any friendly unit (creature, player or pet) within maxDist
SMART_TARGET_FARTHEST
28
maxDist
playerOnly (0/1)
isInLos (0/1)
@@ -4440,6 +4439,58 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
Farthest unit on the threat list
SMART_TARGET_PLAYER_WITH_AURA
201
spellID
Negative (0/1)
MaxDist
MinDist
+
+
+
Number to resize the target list
Target players with or without aura
SMART_TARGET_RANDOM_POINT
range (yards)
amount (for summoning creature)
self as middle (0/1)
+else use xyz
+
+
+
+
+
This only works with SMART_ACTION_SUMMON_CREATURE, SMART_ACTION_MOVE_TO_POS and SMART_ACTION_JUMP_TO_POS
SMART_TARGET_ROLE_SELECTION
rangeMax (yards)
TargetMask (Tanks (1), Healer (2) Damage (4))
Resize list
+
+
+
+
Target a Tank/Healer/DPS role. Based on the players spec.