Warcraft III resources & community, 2003–2006 · archived

Need help with a trigger

5 posts
#1

Need help with a trigger

I am creating a td, and I need help with a trigger...


Heres my trigger that sets up my timer

Set Timer Up
    Events
        Time - Elapsed game time is 2.01 seconds
    Conditions
    Actions
        Countdown Timer - Create a timer window for Next_Level with title Next Level in
        Countdown Timer - Start Next_Level as a One-shot timer that will expire in 29.50 seconds
        Countdown Timer - Change the color of the time for (Last created timer window) to (100.00%, 80.00%, 20.00%) with 0.00% transparency
        Countdown Timer - Show (Last created timer window)



Heres the trigger that needs to launche when the timer expires

Core Funtion
    Events
        Time - Next_Level expires
    Conditions
    Actions
        -------- Setup Timer --------
        Countdown Timer - Pause Next_Level
        Countdown Timer - Destroy (Last created timer window)
        -------- Create Units --------
        Unit - Create (Monster_Amount + 0) Monster_Type for Player 12 (Brown) at (Center of Region 000 <gen>) facing Default building facing degrees
        -------- Level Info --------
        Game - Display to (All players) the text: ((Level  + (String(Level_Number))) + ( -  + ((Name of (Last created unit)) + <Empty String>)))
        -------- Misc. --------
        Unit Group - Pick every unit in (Units owned by Player 12 (Brown)) and do (Unit - Set (Picked unit) acquisition range to 0.00)



Heres the trigger that I use to set my variables

Set Levels
    Events
    Conditions
        Defeat Equal to False
    Actions
        -------- Level 1 --------
        If (Level_Number Equal to 1) then do (Set Monster_Type = Peasant) else do (Do nothing)
        If (Level_Number Equal to 1) then do (Set Monster_Amount = 10) else do (Do nothing)
        -------- Level 2 --------
        If (Level_Number Equal to 2) then do (Set Monster_Type = Militia) else do (Do nothing)
        If (Level_Number Equal to 2) then do (Set Monster_Amount = 10) else do (Do nothing)
        -------- Level 3 --------
        If (Level_Number Equal to 3) then do (Set Monster_Type = Footman) else do (Do nothing)
        If (Level_Number Equal to 3) then do (Set Monster_Amount = 10) else do (Do nothing)



I need this trigger:

Core Funtion
    Events
        Time - Next_Level expires
    Conditions
    Actions
        -------- Setup Timer --------
        Countdown Timer - Pause Next_Level
        Countdown Timer - Destroy (Last created timer window)
        -------- Create Units --------
        Unit - Create (Monster_Amount + 0) Monster_Type for Player 12 (Brown) at (Center of Region 000 <gen>) facing Default building facing degrees
        -------- Level Info --------
        Game - Display to (All players) the text: ((Level  + (String(Level_Number))) + ( -  + ((Name of (Last created unit)) + <Empty String>)))
        -------- Misc. --------
        Unit Group - Pick every unit in (Units owned by Player 12 (Brown)) and do (Unit - Set (Picked unit) acquisition range to 0.00)


to launch when the timer expired.
Any help please! thanks!!!
If you need another trigger posted, tell me
#2
Ehm, so what is the problem? I didnt get that when reading ur post...
#3
Ok, you know the trigger that I needed to be launched, or make it run after the countdown timer expires, it doesnt spawn the creeps


It does say teh text message, but doesnt spawn the creeps.
#4
You forgot to fire the variable trigger, hehe.
#5
psh

how did that happen