Go
Wc3C.net
»
Warcraft III Modding
»
Developer's Corner
»
Triggers & Scripts
»
Injured Units
Injured Units
07-27-2002, 09:19 PM
#1
Athifos
Does anyone know how to check if a unit is injured? I'm trying to use this trigger for an Inn in my RPG, but I can't figure out how to do it.
07-27-2002, 10:27 PM
#2
Guest
You can probably use the:
(unit property - life of triggering unit is less than or equal to (max life of(triggering unit) - 1))
condition for your trigger. It should look something like that I would think.
Never tried it myself but it sounds like it would work :)
07-29-2002, 12:30 AM
#3
Athifos
I looked around for that trigger, but couldn't find it....Any specific directions?
07-29-2002, 01:30 AM
#4
Karma Patrol
it should be an interger comparison
event: (im assuming) unit enters region x
condition: interger comparison (life of entering unit) is less than (max life of entering unit)
action: do whatever
07-29-2002, 01:30 AM
#5
Karma Patrol
im sorry, i meant to say real comparison
07-29-2002, 01:35 AM
#6
Guest
Specific Unit Event
Unit takes damage
07-29-2002, 01:38 AM
#7
Guest
Yep sorry for leaving that detail out. Tech is right, its a Real Comparison for conditions.
07-29-2002, 08:59 PM
#8
Athifos
Thanks guys!