| 06-05-2006, 07:43 PM | #1 |
Is it in any way possible to make a Timer at the start of the game? The reason is I want to give a player an amount of gold every minute following this formula: Code:
Current Gold + Elapsed Game-Time*10 This is what I've got so far: Trigger: As I said I can't find any Game-Time action anywhere so I would make a Timer that doesn't count down and multiply it by ten. Possible? |
| 06-05-2006, 07:46 PM | #2 |
Trigger: Player - Set (Owner of (Triggering unit)) Current gold to (((Owner of (Triggering unit)) Current gold) + (Integer((Elapsed time for (Last started timer))))) |
| 06-05-2006, 07:49 PM | #3 |
Yes, as captain said use the timer. At map init start a timer that will expire in 100000000 seconds. Then use that function to see how long it has been running. |
| 06-05-2006, 07:49 PM | #4 |
But that would still require the Timer count "up", right? Edit: That was for Captain Griffen. Anyway, is that the only way to do it? Edit again: Just realised it wouldn't require it to count up, sorry for that. |
