darkreapers
New Member
- Reaction score
- 6
In my TD i want to make after a wave there will be a mini game forplayers to play, so far in my map i have 2 mini games, for this mini game its like a fire maze, if u touch lava or other units u will die.
however for the lava touch part, it only works sometimes?? i dunno why, sometimes when u touch lava spawn u die, sometimes it doesnt turn on at all...
BTW every other trigger works fine... just not the lava terrian one, and i dont want to leave it on cause it runs every 0.5 seconds and i have 10 player on the map so they might build alot of towers.
however for the lava touch part, it only works sometimes?? i dunno why, sometimes when u touch lava spawn u die, sometimes it doesnt turn on at all...
BTW every other trigger works fine... just not the lava terrian one, and i dont want to leave it on cause it runs every 0.5 seconds and i have 10 player on the map so they might build alot of towers.
Trigger:
- firestart 1
- Events
- Unit - A unit enters (Entire map)
- Conditions
- (Unit-type of (Entering unit)) Equal to Ghouls - Level 3
- Actions
- Trigger - Turn on lava touch <gen>
- Trigger - Turn on runner spawn <gen>
- Trigger - Turn on fireball spawn <gen>
- Trigger - Turn on fireball 2 spawn <gen>
- Trigger - Turn off (This trigger)
- Events
Trigger:
- runner spawn
- Events
- Player - Player 12 (Brown)'s Food used becomes Less than 1.00
- Conditions
- Actions
- Game - Display to Defenders for 15.00 seconds the text: |cffff0000Attention...
- Trigger - Run Next wave timer Copy <gen> (ignoring conditions)
- Player Group - Pick every player in Defenders and do (Actions)
- Loop - Actions
- Unit - Create 1 Runner for (Picked player) at (Center of larva start <gen>) facing Default building facing degrees
- Unit - Add a 30.00 second Generic expiration timer to (Last created unit)
- Camera - Pan camera for (Picked player) to (Center of larva start <gen>) over 0.00 seconds
- Trigger - Turn off (This trigger)
- Loop - Actions
- Events
Trigger:
- lava touch
- Events
- Time - Every 0.50 seconds of game time
- Conditions
- Actions
- Player Group - Pick every player in Defenders and do (Set unit = (Units owned by (Picked player)))
- Unit Group - Pick every unit in unit and do (Actions)
- Loop - Actions
- Set lava = (Position of (Picked unit))
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Terrain type at lava) Equal to Dungeon - Lava
- Then - Actions
- Unit - Kill (Picked unit)
- Else - Actions
- If - Conditions
- Loop - Actions
- Custom script: call RemoveLocation (udg_lava)
- Custom script: call DestroyGroup (udg_unit)
- Events
Trigger:
- fireball spawn
- Events
- Player - Player 12 (Brown)'s Food used becomes Less than 1.00
- Conditions
- Actions
- Player Group - Pick every player in lightblue and do (Actions)
- Loop - Actions
- Unit - Create 1 Fire Spawn for (Picked player) at (Center of lava ball 1 <gen>) facing Default building facing degrees
- Unit - Add a 40.00 second Generic expiration timer to (Last created unit)
- Trigger - Turn off (This trigger)
- Loop - Actions
- Player Group - Pick every player in lightblue and do (Actions)
- Events
Trigger:
- Next wave timer Copy
- Events
- Conditions
- Actions
- Countdown Timer - Start FireTimer as a One-shot timer that will expire in 30.00 seconds
- Countdown Timer - Create a timer window for FireTimer with title Mini-Game Time
- Set lavanexttimer = (Last created timer window)
- Countdown Timer - Show (Last created timer window)
- Trigger - Turn on lava touch <gen>
Trigger:
- timer Copy 2
- Events
- Time - FireTimer expires
- Conditions
- Actions
- Countdown Timer - Destroy lavanexttimer
- Trigger - Turn off lava touch <gen>
- Events