• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] trigger problem

Status
Not open for further replies.
Level 15
Joined
Jun 14, 2009
Messages
494
Unidad - A unit Muere
(Killing unit) Igual a myunit
If ((Level of Soul eater for (Triggering unit)) Igual a 1) then do (Unidad - Set life of (Killing unit) to ((Vida of (Killing unit)) + ((Vida máx. of (Dying unit)) x 0.05))%) else do (Do nothing)


If ((Level of Soul eater for (Triggering unit)) Igual a 3) then do (Unidad - Set life of (Killing unit) to ((Vida of (Killing unit)) + ((Vida máx. of (Dying unit)) x 0.15))%) else do (Do nothing)
If ((Level of Soul eater for (Triggering unit)) Igual a 2) then do (Unidad - Set life of (Killing unit) to ((Vida of (Killing unit)) + ((Vida máx. of (Dying unit)) x 0.10))%) else do (Do nothing)
What's the problem of this trigger it sembles to not working i used other variables like triggering unit and casting but not anybody knows why?
 
Level 12
Joined
Jul 27, 2008
Messages
1,181
Change it to:

  • Events
    • Unit - A Unit Dies
  • Conditions
    • (Killing Unit) Equal to MyUnit
  • Actions
    • Unit - Set the life of Killing Unit to Life of Killing Unit + ((Max life of (Dying Unit)) x (0.05 x (Level of MyAbility for (Killing Unit)))
Much easier to read.(And more efficient)

See if this works.
 
Status
Not open for further replies.
Top