| 09-11-2004, 06:43 PM | #1 |
I have this problem with FT where I the game cannot recognize that brown has a food used of 0 (Yellow). I need to run this script because it is a crucial part of my TD. The thing I need most in this trigger is the Green Highlighted part. So if you can please look through it, it would be greatly helpful if someone would suggest fixes to the script or just tell me why won't RoC recognize that brown has no food used and run the triggers! Events Player - Player 12 (Brown)'s Food used becomes Equal to 0.00 Conditions Defeat Equal to False Actions Sound - Play GoodJob <gen> -------- Level Setup -------- Set Level_Number = (Level_Number + 1) Trigger - Run Update Scoreboard <gen> (checking conditions) -------- Timer -------- If (Level_Number Equal to 1) then do (Countdown Timer - Start Next_Level as a One-shot timer that will expire in 60.00 seconds) else do (Countdown Timer - Start Next_Level as a One-shot timer that will expire in 30.00 seconds) Countdown Timer - Create a timer window for (Last started timer) with title ((Level + (String(Level_Number))) + in...) -------- Set Next Level -------- If (Level_Number Equal to 1) then do (Wait 29.50 seconds) else do (Do nothing) Game - Display to (All players) the text: |c0000b800Next leve... If (Level_Number Equal to 46) then do (Game - Display to (All players) for 30.00 seconds the text: |c0000b800Great job...) else do (Do nothing) Trigger - Run Creep Levels <gen> (checking conditions) |
| 09-13-2004, 08:45 PM | #2 |
Possibly solve it the lame way, check every 1sec for his food instead. I don't see any problems. |
| 09-13-2004, 08:53 PM | #3 |
First make sure that you're unit you're using that round is using supplys. Second way to do it is to, when the level starts, set a variable to the number of units that level, and take it down one each time a unit dies. |
