Hi, i'm new in the world editor but i'm working to undertand it. In the momento, i am stuck in a single problem: i want to make a trigger that refers to a type of custom hero i did. The trigger basically is:
---Actions
When <type of unit i want to refer> takes damage
---Conditions
(Random number between 1 and 100) equal or less than 30
<type of unit i want to refer> have a custom buff i did
---Actions
Cause <type of unit i want to refer> to damage (Damage Source) dealing (Damage taken).
...but i can't find out a way to refer at the TYPE of unit, only a SPECIFIC unit (in the Generic Units Events there is no 'Takes Damage' Event...). Somebody can help? Anything with variables? I have the type of hero i want to refer stored in a variable but i can't refer to it.
Thanks to all
---Actions
When <type of unit i want to refer> takes damage
---Conditions
(Random number between 1 and 100) equal or less than 30
<type of unit i want to refer> have a custom buff i did
---Actions
Cause <type of unit i want to refer> to damage (Damage Source) dealing (Damage taken).
...but i can't find out a way to refer at the TYPE of unit, only a SPECIFIC unit (in the Generic Units Events there is no 'Takes Damage' Event...). Somebody can help? Anything with variables? I have the type of hero i want to refer stored in a variable but i can't refer to it.
Thanks to all