HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Unknown Problem

09-11-2004, 10:43 AM#1
WNxDavis
I am building a TD Map. For some reason this script won't recognize that Player Brown has no food... I need it to run the "blue highlighted" script because it is crucial to trigger the other triggers.


Events
Player - Player 12 (Brown)'s Food used becomes Equal to 0.00
Conditions
Defeat Equal to False
Actions
Sound - Play GoodJob <gen>
-------- Gold Change --------
Set Gold_Amount = (Gold_Amount + 2)
-------- Lives Comment --------
If ((NoLivesLost Equal to True) and (Level_Number Greater than or equal to 1)) then do (Game - Display to (All players) the text: |c0000cdf9No lives ...) else do (If (Level_Number Greater than or equal to 1) then do (Game - Display to (All players) the text: ((String(Lives_Lost)) + |c0000b800 chances have been lost.|r)) else do (Do nothing))
-------- Level Setup --------
Set Level_Number = (Level_Number + 1)
Trigger - Run Update Title <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-11-2004, 03:08 PM#2
iNfraNe
it doesnt work becuz food isnt a real value ithink... you cant have 1.5 food
09-11-2004, 07:26 PM#3
Rafael Br
The Event should fire normaly, have you checked the "Defeat" Variable?
Don't make 2 threads asking the same thing.
09-11-2004, 11:09 PM#4
oNdizZ
One other mistake that is common (atleast for me :p) is that the unit-type of the attackers/monsters has 0 in food cost (some units got 0 from the start, mostly units like blizzards own campaign-units). try to look at that.

Another thing you should check is that the monsters really are player 12 (brown) and not owned by another player.

And if that problem of your's is in the beginning then you might have forgotten that the event wont work without a changing... i mean, if brown dont got any unit at the startup then the event wont work.
Use a trigger unit (small, well hidden AND with atleast 1 in food-cost and make sure its for player 12) and place it somewhere at the map and then after all actions in the Initialization use the action "Unit - Kill TriggerMan" (triggerman is the trigger unit :p)


and if that doesn't work, try get help from some1 else :D

Good Luck and Have Fun
09-11-2004, 11:16 PM#5
-={tWiStÄr}=-
and make sure that there arent any other units of brown sitting around the map
09-11-2004, 11:47 PM#6
WNxDavis
THAT HAS TO BE IT!!! THE TRIGGER MAN!!! OMG I TOTALLY FORGOT ABOUT THAT... THANK YOU ALL FOR REMINDING ME OF THE TRIGGER MAN!!!


Yeah, again, thanks a whole bunch! You saved my depression :D
09-12-2004, 10:58 AM#7
oNdizZ
Quote:
Originally Posted by WNxDavis
THAT HAS TO BE IT!!! THE TRIGGER MAN!!! OMG I TOTALLY FORGOT ABOUT THAT... THANK YOU ALL FOR REMINDING ME OF THE TRIGGER MAN!!!


Yeah, again, thanks a whole bunch! You saved my depression :D


some rep would never hurt ;)