These triggers are for 'fishing'. The unit casts the ability, gets paused and a unit is created in the water. A timer (timer[1]) then starts with a random time. when timer1 expires a special effect is created on the unit and a second timer (timer[2]) then starts with 4 seconds. if the unit is selected after timer1 expires but before 2 then an item is created, the unit is removed and the caster is unpaused. if timer 2 expire the same happens but no item is created; the same goes if it is selected before timer1 expires.
the problem is the unit is never removed and the caster is never unpaused however if it is selected at the right time the item spawns.
the problem is the unit is never removed and the caster is never unpaused however if it is selected at the right time the item spawns.
-
Fish
-
Events
-
Unit - A unit Begins channeling an ability
-
-
Conditions
-
(Ability being cast) Equal to Fish
-
-
Actions
-
Set f_Units[1] = (Triggering unit)
-
Set tmpPoint = (Target point of ability being cast)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Terrain pathing at tmpPoint of type Floatability is off) Equal to False
-
-
Then - Actions
-
Animation - Play (Triggering unit)'s attack animation
-
Unit - Pause f_Units[1]
-
Unit - Create 1 Bobber for Player 1 (Red) at tmpPoint facing (Random angle) degrees
-
Set f_Units[2] = (Last created unit)
-
Countdown Timer - Start f_Timer[1] as a One-shot timer that will expire in (Random real number between 3.00 and 11.00) seconds
-
Set f_Timer[1] = (Last started timer)
-
-
Else - Actions
-
Floating Text - Create floating text that reads Incorrect target! above (Triggering unit) with Z offset 0.00, using font size 10.00, color (100.00%, 10.00%, 10.00%), and 0.00% transparency
-
Set tmpFloat = (Last created floating text)
-
Floating Text - Set the velocity of tmpFloat to 120.00 towards 270.00 degrees
-
Floating Text - Change tmpFloat: Disable permanence
-
Floating Text - Change the lifespan of tmpFloat to 2.00 seconds
-
Floating Text - Change the fading age of tmpFloat to 0.00 seconds
-
-
-
Custom script: call RemoveLocation(udg_tmpPoint)
-
-
-
Bobber
-
Events
-
Time - f_Timer[1] expires
-
-
Conditions
-
Actions
-
Game - Display to (All players) the text: Bobber 1
-
Set tmpPoint = (Position of f_Units[2])
-
Set f_Boolean = True
-
Trigger - Turn on Expire <gen>
-
Special Effect - Create a special effect at tmpPoint using Abilities\Spells\Other\CrushingWave\CrushingWaveDamage.mdl
-
Countdown Timer - Start f_Timer[2] as a One-shot timer that will expire in 4.00 seconds
-
Set f_Timer[2] = (Last started timer)
-
Custom script: call RemoveLocation(udg_tmpPoint)
-
Game - Display to (All players) the text: Bobber 2
-
-
-
Expire
-
Events
-
Time - f_Timer[2] expires
-
-
Conditions
-
Actions
-
Game - Display to (All players) the text: Expire 1
-
Unit - Remove f_Units[2] from the game
-
Unit - Unpause f_Units[1]
-
Set f_Boolean = False
-
Trigger - Turn off (This trigger)
-
Game - Display to (All players) the text: Expire 2
-
-
-
Catch
-
Events
-
Player - Player 1 (Red) Selects a unit
-
-
Conditions
-
(Triggering unit) Equal to f_Units[2]
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
f_Boolean Equal to True
-
-
Then - Actions
-
Game - Display to (All players) the text: Catch1
-
Unit - Remove f_Units[2] from the game
-
Set tmpPoint = (Position of f_Units[1])
-
Item - Create Tome of Experience at tmpPoint
-
Unit - Unpause f_Units[1]
-
Set f_Boolean = False
-
Trigger - Turn off Expire <gen>
-
Custom script: call RemoveLocation(udg_tmpPoint)
-
Game - Display to (All players) the text: Catch2
-
-
Else - Actions
-
Unit - Remove f_Units[2] from the game
-
Unit - Unpause f_Units[1]
-
Trigger - Turn off Expire <gen>
-
-
-
-