• 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 Heeeelp ^^

Status
Not open for further replies.
Level 3
Joined
Feb 1, 2012
Messages
31
Ok so , someone helped me by making a trigger for me on another thred. The problem is , that i cant make it the same . Really! im stuck .

Here's the trigger:

End Game
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
Actions
Set Unit = (Killing unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of Unit) is an ally of Player 1 (Red)) Equal to True
Then - Actions
Set Horde_Kills = (Horde_Kills + 1)
Else - Actions
Set Alliance_Kills = (Alliance_Kills + 1)
Leaderboard - Sort (Last created leaderboard) by Value in Descending order
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Horde_Kills Greater than or equal to 100
Then - Actions
Trigger - Turn off (This trigger)
Trigger - Run Horde Wins <gen> (ignoring conditions)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Alliance_Kills Greater than or equal to 100
Then - Actions
Trigger - Turn off (This trigger)
Trigger - Run Alliance Wins <gen> (ignoring conditions)
Else - Actions


I cant manage to do the following: ((Owner of Unit) is an ally of Player 1 (Red)) Equal to True. It is just forcing me to do : ((Owner of Unit) Equal to Player 1 (Red))

Im tryng to make these stupid line for days. Damn.

Please explain me how to do these :''((Owner of Unit) is an ally of Player 1 (Red)) Equal to True''////// and maby these too '' Set Horde_Kills = (Horde_Kills + 1)''

I really think , even if i manage to do these , im going to get stuck again shortly. Thnx.
 
Level 21
Joined
Mar 27, 2012
Messages
3,232
Ok so , someone helped me by making a trigger for me on another thred. The problem is , that i cant make it the same . Really! im stuck .

Here's the trigger:

  • End Game
  • Events
  • Unit - A unit Dies
  • Conditions
  • ((Dying unit) is A Hero) Equal to True
  • Actions
  • Set Unit = (Killing unit)
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • ((Owner of Unit) is an ally of Player 1 (Red)) Equal to True
  • Then - Actions
  • Set Horde_Kills = (Horde_Kills + 1)
  • Else - Actions
  • Set Alliance_Kills = (Alliance_Kills + 1)
  • Leaderboard - Sort (Last created leaderboard) by Value in Descending order
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • Horde_Kills Greater than or equal to 100
  • Then - Actions
  • Trigger - Turn off (This trigger)
  • Trigger - Run Horde Wins <gen> (ignoring conditions)
  • Else - Actions
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • Alliance_Kills Greater than or equal to 100
  • Then - Actions
  • Trigger - Turn off (This trigger)
  • Trigger - Run Alliance Wins <gen> (ignoring conditions)
  • Else - Actions
I cant manage to do the following: ((Owner of Unit) is an ally of Player 1 (Red)) Equal to True. It is just forcing me to do : ((Owner of Unit) Equal to Player 1 (Red))

Im tryng to make these stupid line for days. Damn.

Please explain me how to do these :''((Owner of Unit) is an ally of Player 1 (Red)) Equal to True''////// and maby these too '' Set Horde_Kills = (Horde_Kills + 1)''

I really think , even if i manage to do these , im going to get stuck again shortly. Thnx.

Trigger tags to make it readable for me.

What is so hard with setting the variables?

Step by step:
Go to variable editor(in one of the trigger menus)
Create an integer type variable
Then in the trigger you make it like this:
Set MyVariable = arithmetic(MyVariable+1)
 
Status
Not open for further replies.
Top