HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

whats wrong with this trigger?!

01-31-2005, 11:34 AM#1
vile
i dont understand whats wrong with this
its something that i did, that when a team's heroes get 5 kills, it plays rampage
and if one of them dies it gets reset
but for some reason in the middle of the game it plays without any relation to the kills.. and it gets screwed up

Light Forces Rampage
Events
Unit - A unit owned by Player 8 (Pink) Dies
Unit - A unit owned by Player 9 (Gray) Dies
Unit - A unit owned by Player 10 (Light Blue) Dies
Unit - A unit owned by Player 11 (Dark Green) Dies
Unit - A unit owned by Player 12 (Brown) Dies
Conditions
(((Killing unit) belongs to an ally of Player 1 (Red)) Equal to True) and (((Killing unit) is A Hero) Equal to True)
Actions
Set LightForcesRampage = (LightForcesRampage + 1)
Set DarkForcesRampage = 0
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
LightForcesRampage Greater than or equal to 5
Then - Actions
Wait 2.00 seconds
Sound - Play Rampage <gen>
Game - Display to (All players) for 5.00 seconds the text: |CFFFF0303Forces of...
Else - Actions
Do nothing


i did the same trigger but the opposite way for the dark forces rampage

any help will be appreciated...
01-31-2005, 11:38 AM#2
Arohk
Quote:
Originally Posted by vile
i dont understand whats wrong with this
its something that i did, that when a team's heroes get 5 kills, it plays rampage
and if one of them dies it gets reset
but for some reason in the middle of the game it plays without any relation to the kills.. and it gets screwed up

Light Forces Rampage
Events
Unit - A unit owned by Player 8 (Pink) Dies
Unit - A unit owned by Player 9 (Gray) Dies
Unit - A unit owned by Player 10 (Light Blue) Dies
Unit - A unit owned by Player 11 (Dark Green) Dies
Unit - A unit owned by Player 12 (Brown) Dies
Conditions
(((Killing unit) belongs to an ally of Player 1 (Red)) Equal to True) and (((Killing unit) is A Hero) Equal to True)
Actions
Set LightForcesRampage = (LightForcesRampage + 1)
Set DarkForcesRampage = 0
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
LightForcesRampage Greater than or equal to 5
Then - Actions
Wait 2.00 seconds
Sound - Play Rampage <gen>
Game - Display to (All players) for 5.00 seconds the text: |CFFFF0303Forces of...
Else - Actions
Do nothing


i did the same trigger but the opposite way for the dark forces rampage

any help will be appreciated...

"owner of killing unit belongs to an ally of player 1 red"

im not sure now, but i think this doesnt include player 1 red
01-31-2005, 02:28 PM#3
vile
even so, it glitches in the middle of the game..
01-31-2005, 03:17 PM#4
Ant
Quote:
Originally Posted by vile
(((Killing unit) belongs to an ally of Player 1 (Red)) Equal to True) and (((Killing unit) is A Hero) Equal to True)

Notice how it says nothing about the killed unit being a hero.