• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Trigger] hey i think this is easy but not for me

Status
Not open for further replies.
Level 5
Joined
Aug 17, 2008
Messages
125
okay im making a campaign and my hero has to kill 10 infected sheeps as his first quest how do i make that fx that he goes down where he has to kill them kill one and then it shows it and that he has to kill 10 to finish quest
 
Make a trigger which creates an integer variable and set its value to 0.
Then create another trigger with the event "a unit dies" and as condition "Type of dying unit = Infected Sheep". As action, do that the value of the variable gets +1.
Then you need another trigger which triggers, if The variable reaches 10.
Then you can finish the quest in the action

SRY 4 My bad english^^ and i think there is an easier way to do that
 
Status
Not open for further replies.
Back
Top