- Joined
- Jul 28, 2014
- Messages
- 29
I can't seem to find the answers to certain questionable triggers in my map or any map for that matter.
1) Is this trigger bad, because there is a wait before it refers to triggering unit?
1) Is this trigger bad, because there is a wait before it refers to triggering unit?
-
Untitled Trigger 001
-
Events
-
Unit - A unit enters Hero Spawn <gen>
-
-
Conditions
-
Actions
-
Wait 1.00 seconds
-
Unit - Kill (Triggering unit)
-
-
-
Untitled Trigger 001
-
Events
-
Conditions
-
Actions
-
Camera - Pan camera for Player 1 (Red) to (Center of (Playable map area)) over 0.00 seconds
-
-
-
Mana Generator
-
Events
-
Time - Every 0.20 seconds of game time
-
-
Conditions
-
Actions
-
Set TempUnitGroup[1] = (Units of type Mana Generator)
-
Unit Group - Pick every unit in TempUnitGroup[1] and do (Actions)
-
Loop - Actions
-
Set TempUnit = (Picked unit)
-
Set TempPointSpell = (Position of (Picked unit))
-
Set TempUnitGroup[2] = (Units within 150.00 of TempPointSpell matching (((Matching unit) is A structure) Equal to True))
-
Unit Group - Pick every unit in TempUnitGroup[2] and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Percentage mana of (Picked unit)) Less than 100.00
-
(Mana of TempUnit) Greater than 5.00
-
Or - Any (Conditions) are true
-
Conditions
-
(Unit-type of (Picked unit)) Equal to Mana Battery
-
(Unit-type of (Picked unit)) Equal to Mana Cell
-
(Unit-type of (Picked unit)) Equal to Tesla Coil
-
(Unit-type of (Picked unit)) Equal to Mana Cell Array
-
(Unit-type of (Picked unit)) Equal to Ultamite Tesla Coil
-
-
-
-
Then - Actions
-
Special Effect - Create a special effect at TempPointSpell using Abilities\Spells\Undead\ReplenishMana\ReplenishManaCasterOverhead.mdl
-
Unit - Set mana of TempUnit to ((Mana of TempUnit) - 5.00)
-
Unit - Set mana of (Picked unit) to ((Mana of (Picked unit)) + 5.00)
-
Special Effect - Destroy (Last created special effect)
-
-
Else - Actions
-
Do nothing
-
-
-
-
-
Set TempUnit = No unit
-
Custom script: call RemoveLocation(udg_TempPointSpell)
-
Custom script: call DestroyGroup(udg_TempUnitGroup[2])
-
-
-
Custom script: call DestroyGroup(udg_TempUnitGroup[1])
-
-
Last edited: