• 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.

Why isn't this trigger functioning right

Status
Not open for further replies.
Level 8
Joined
Sep 9, 2007
Messages
114
B]UMelee 1[/B]
Events
Unit - A unit owned by Player 1 (Red) Finishes an upgrade.

Conditions
(Current research level of Fighter Training 1 for Player 1 (Red)) Equal to 1

Actions
Trigger - Turn on Abomination 3 <gen>
Trigger - Turn on Ghoul 3 <gen>



Abomination 3
Events
Unit - A unit Gains a level

Conditions
(Hero Level of (Leveling Hero)) Equal to 3
(Unit-type of (Leveling Hero)) Equal to Abomination

Actions
Unit - Add Cannibalize (Neutral Hostile) to (Leveling Hero)




Ghoul 3
Events
Unit - A unit Gains a level

Conditions
(Hero Level of (Leveling Hero)) Equal to 3
(Unit-type of (Leveling Hero)) Equal to Ghoul

Actions
Unit - Add Cannibalize (Neutral Hostile) to (Leveling Hero)



This is supposed to turn on 2 triggers then those triggers allow my heroes gain an ability once level 3? But its not working right... Any suggestions?
 
Level 8
Joined
Sep 9, 2007
Messages
114
Once again yAyafOshO... bravo... you've helped me so much on this project... i thank you deeply... tho i feel nubier with every question i ask that has a simple answer... suppose its just been awhile... i was workin with triggers on a Hero War map awhile ago... but i took a huge break from WC3 and now i can't remember how half the stuff works anymore... thanks again! yAyAfOshO!
 
Level 11
Joined
Dec 31, 2007
Messages
780
unit group - pick every unit within (range matching condition) from position of (your unit) and do set life of picked unit to life of picked unit / 2

i made this by heart... i dont remember it exactly

beware this causes leaks

the best way to do it is setting a variable with the units in range and then picking them

if you cant figure it out tell me and ill make the correct trigger for you
 
Status
Not open for further replies.
Top