- Joined
- Jul 18, 2008
- Messages
- 42
Okay so I've been trying loads of different stuff... The problem I've been having though is that it seems like the timer window and "every x seconds of game time" don't go at the same speed or something...
The reason I think this is I had one trigger that was to make a repeatable timer, and then to turn on another trigger who's purpose was to give income every 60 seconds, through the "every 60 seconds of game time" event. But for some reason the money wouldn't come in at the same time as the timer, it would be 5-10 seconds early. Any ideas what I can do to fix it?
Here's another trigger I tried but it crashed the game...
Income
Events
Unit - Dummy caster1 0002 <gen> Dies
Conditions
Actions
Countdown Timer - Create a timer window for (Last started timer) with title Income
Countdown Timer - Start (Last started timer) as a Repeating timer that will expire in 20.00 seconds
Set Income_timer = (Expiring timer)
Trigger - Turn on income2 <gen>
income2
Events
Unit - Dummy caster1 0002 <gen> Dies
Time - Every 60.00 seconds of game time
Time - Income_timer expires
Conditions
Actions
Player Group - Pick every player in (All players) and do (Player - Add 100 to Player 1 (Red) Current gold)
Player Group - Pick every player in (All players) and do (Player - Add 100 to Player 2 (Blue) Current gold)
Player Group - Pick every player in (All players) and do (Player - Add 100 to Player 3 (Teal) Current gold)
Player Group - Pick every player in (All players) and do (Player - Add 100 to Player 4 (Purple) Current gold)
Player Group - Pick every player in (All players) and do (Player - Add 100 to Player 5 (Yellow) Current gold)
Player Group - Pick every player in (All players) and do (Player - Add 100 to Player 6 (Orange) Current gold)
Player Group - Pick every player in (All players) and do (Player - Add 100 to Player 7 (Green) Current gold)
Player Group - Pick every player in (All players) and do (Player - Add 100 to Player 8 (Pink) Current gold)
{EDIT}
Here's the trigger where they didn't end at the same time
Income
Events
Unit - Dummy caster1 0002 <gen> Dies
Conditions
Actions
Countdown Timer - Create a timer window for (Last started timer) with title Income
Countdown Timer - Start (Last started timer) as a Repeating timer that will expire in 20.00 seconds
Trigger - Turn on income2 <gen>
(Below trigger isn't initially on)
income2
Events
Time - Every 20.00 seconds of game time
Conditions
Actions
Player Group - Pick every player in (All players) and do (Player - Add 100 to Player 1 (Red) Current gold)
Player Group - Pick every player in (All players) and do (Player - Add 100 to Player 2 (Blue) Current gold)
Player Group - Pick every player in (All players) and do (Player - Add 100 to Player 3 (Teal) Current gold)
Player Group - Pick every player in (All players) and do (Player - Add 100 to Player 4 (Purple) Current gold)
Player Group - Pick every player in (All players) and do (Player - Add 100 to Player 5 (Yellow) Current gold)
Player Group - Pick every player in (All players) and do (Player - Add 100 to Player 6 (Orange) Current gold)
Player Group - Pick every player in (All players) and do (Player - Add 100 to Player 7 (Green) Current gold)
Player Group - Pick every player in (All players) and do (Player - Add 100 to Player 8 (Pink) Current gold)
The reason I think this is I had one trigger that was to make a repeatable timer, and then to turn on another trigger who's purpose was to give income every 60 seconds, through the "every 60 seconds of game time" event. But for some reason the money wouldn't come in at the same time as the timer, it would be 5-10 seconds early. Any ideas what I can do to fix it?
Here's another trigger I tried but it crashed the game...
Income
Events
Unit - Dummy caster1 0002 <gen> Dies
Conditions
Actions
Countdown Timer - Create a timer window for (Last started timer) with title Income
Countdown Timer - Start (Last started timer) as a Repeating timer that will expire in 20.00 seconds
Set Income_timer = (Expiring timer)
Trigger - Turn on income2 <gen>
income2
Events
Unit - Dummy caster1 0002 <gen> Dies
Time - Every 60.00 seconds of game time
Time - Income_timer expires
Conditions
Actions
Player Group - Pick every player in (All players) and do (Player - Add 100 to Player 1 (Red) Current gold)
Player Group - Pick every player in (All players) and do (Player - Add 100 to Player 2 (Blue) Current gold)
Player Group - Pick every player in (All players) and do (Player - Add 100 to Player 3 (Teal) Current gold)
Player Group - Pick every player in (All players) and do (Player - Add 100 to Player 4 (Purple) Current gold)
Player Group - Pick every player in (All players) and do (Player - Add 100 to Player 5 (Yellow) Current gold)
Player Group - Pick every player in (All players) and do (Player - Add 100 to Player 6 (Orange) Current gold)
Player Group - Pick every player in (All players) and do (Player - Add 100 to Player 7 (Green) Current gold)
Player Group - Pick every player in (All players) and do (Player - Add 100 to Player 8 (Pink) Current gold)
{EDIT}
Here's the trigger where they didn't end at the same time
Income
Events
Unit - Dummy caster1 0002 <gen> Dies
Conditions
Actions
Countdown Timer - Create a timer window for (Last started timer) with title Income
Countdown Timer - Start (Last started timer) as a Repeating timer that will expire in 20.00 seconds
Trigger - Turn on income2 <gen>
(Below trigger isn't initially on)
income2
Events
Time - Every 20.00 seconds of game time
Conditions
Actions
Player Group - Pick every player in (All players) and do (Player - Add 100 to Player 1 (Red) Current gold)
Player Group - Pick every player in (All players) and do (Player - Add 100 to Player 2 (Blue) Current gold)
Player Group - Pick every player in (All players) and do (Player - Add 100 to Player 3 (Teal) Current gold)
Player Group - Pick every player in (All players) and do (Player - Add 100 to Player 4 (Purple) Current gold)
Player Group - Pick every player in (All players) and do (Player - Add 100 to Player 5 (Yellow) Current gold)
Player Group - Pick every player in (All players) and do (Player - Add 100 to Player 6 (Orange) Current gold)
Player Group - Pick every player in (All players) and do (Player - Add 100 to Player 7 (Green) Current gold)
Player Group - Pick every player in (All players) and do (Player - Add 100 to Player 8 (Pink) Current gold)
Last edited by a moderator: