HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Game repeats a turned of trigger???

01-03-2004, 06:26 PM#1
Peacerich
Im working on a arena map (no need to be specific;)).

And to the arena ive made a trigger who makes so after 5 min in a round, the player with highest kills (is counted in another trigger) wins the round. But the prob is... in game it says this totally correct as i want it: "<nameofwinner> won this round because he had the highest kills in end of round! pick units and prepare for next round!"

But then he say the same thing 2 times, but without a name: " won this round because he had the highest kills in end of round! pick units and prepare for next round!"

Heres the trigger, and as u notice if u take the time to read this, it turns it self of in the end. So i dont have a clue why it keeps repeating it self.

Time End
Events
Time - battle_timer expires
Conditions
Actions
Sound - Play Warning <gen>
Countdown Timer - Hide battle_timer_window
Countdown Timer - Start battle_timer as a One-shot timer that will expire in 5.00 seconds
Countdown Timer - Pause battle_timer
Set Gold_Gain = (Gold_Gain + 15)
Player Group - Pick every player in Participants and do (Actions)
Loop - Actions
Player - Add Gold_Gain to (Picked player) Current gold
Player - Add kills[(Player number of (Picked player))] to (Picked player) Current gold
Leaderboard - Sort Kill_Ladder by Value in Descending order
Game - Display to (All players) for 5.00 seconds the text: ((Name of (Player in position 1 of Kill_Ladder)) + won this round because he had the highest kills in the end of the round!)
Set PlayerScore[(Player number of (Player in position 1 of Kill_Ladder))] = (PlayerScore[(Player number of (Player in position 1 of Kill_Ladder))] + 1)
Visibility - Disable Visibility[1]
Visibility - Disable Visibility[2]
Visibility - Disable Visibility[3]
Visibility - Disable Visibility[4]
Visibility - Disable Visibility[5]
Visibility - Disable Visibility[6]
Visibility - Disable Visibility[7]
Trigger - Turn off (This trigger)
Trigger - Run Pick Timer <gen> (checking conditions)
01-03-2004, 06:32 PM#2
chemo
maybe its another trigger... like u unpause the battle timer and start another 1 again just after ?
01-03-2004, 06:44 PM#3
Ligature
'ang on - do you have this:
Code:
Game - Display to (All players) for 5.00 seconds the text: ((Name of (Player in position 1 of Kill_Ladder)) + won this round because he had the highest kills in the end of the round!)
inside this loop:
Code:
Player Group - Pick every player in Participants and do (Actions)
Loop - Actions
?

It seems to me like that may be the trouble.
01-03-2004, 08:07 PM#4
Peacerich
Ehm i checked my trigger and.. no thats not in any loop=(

AAHHHH nvm dudes, thx alot for helping=)

the problem:

I got another trigger who makes when the last unit for a player is killed, it also start a new round. And now, when the battletimer exceeded, it killed all units on battlefield! Usually i turn of the trigger before killing all units on battle field, but this time it was a different trigger hahaha!

So it kinda did it once for each player loosing his last unit because of cleaning up the battlefield:)

thx alot for helping anyway=)

(lol and i allways wondered why u got like 5 times the gold u shud get.... cause it loops the trigger 5 times HAHAGHa...hehe...ho..)