Heya! I have a problem, I'm pretty new to locals, and I was wondering, can I reference the same local variable between two triggers? Or can I merge the triggers? (Two events :/) If someone could help me out, that'd be great!
-
MarkofSuffering
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Mark of Suffering
-
Actions
- Custom script: local unit udg_MarkedUnit
- Set MarkedUnit = (Target unit of ability being cast)
- Special Effect - Create a special effect attached to the overhead of MarkedUnit using war3mapImported\Blood Presence.mdx
- Animation - Change MarkedUnit's vertex coloring to (100.00%, 20.00%, 20.00%) with 0.00% transparency
- Wait 10.00 seconds
- Animation - Change MarkedUnit's vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
- Special Effect - Destroy (Last created special effect)
- Custom script: set udg_MarkedUnit = null
-
Events
-
DrainOnHit
-
Events
- Game - DamageEvent becomes Equal to 1.00
-
Conditions
- DamageEventTarget Equal to MarkedUnit
-
Actions
- Unit - Set life of DamageEventSource to (DamageEventPrevAmt + (Life of (Triggering unit)))
-
Events