- Joined
- Jun 16, 2008
- Messages
- 1,939
Hi my hero is finished now but i have a new trigger problem
it occurs with the spell Shadow step wich works like this:
The Shade compresses the Shadows around his body, using them to open a door through space, and, with an lightning of energy, apperates at the position of his enemy, dealing 75 damage. After 4 seconds he is pulled back through space to his original position.
It is the lvl 1 tooltip for the ability.
it works fine when i use it the first time. but the second time he isnt 'pulled back'
i used two triggers to do this:
please Hivefriends, i need ur help!!!
it occurs with the spell Shadow step wich works like this:
The Shade compresses the Shadows around his body, using them to open a door through space, and, with an lightning of energy, apperates at the position of his enemy, dealing 75 damage. After 4 seconds he is pulled back through space to his original position.
It is the lvl 1 tooltip for the ability.
it works fine when i use it the first time. but the second time he isnt 'pulled back'
i used two triggers to do this:
-
Shadow Step
-
events
- unit - A unit starts the effect of an ability
-
conditions
- (Ability being cast) equal to Shadow Step [E]
-
actions
- Set temp_unit = (Casting unit)
- Set temp_unit_02 = (Target unit of ability being cast)
- Set temp_point = (Position of (Casting unit))
- Set temp_point_02 = (Position of (Target unit of ability being cast))
- unit - Create 1 Shadow Path for (Owner of temp_unit) at temp_point facing default building-angle degrees
- Set temp_point_03 = (Position of (Last created unit))
- Set temp_unit_03 = (Last created unit)
- Wait 0.50 seconds
- unit - Cause temp_unit to damage temp_unit_02, dealing ((Real((Level of Shadow Step [E] for temp_unit))) x 75.00) damage of attack type Held and damage type Normal
- unit - Move temp_unit instantly to temp_point_02
- Animation - Play temp_unit's cast animation
- Countdown-Timer - Start temp_timer_02 as a Einmalig timer that will expire in ((Real((Level of Shadow Step [E] for temp_unit))) x 4.00) seconds
-
events
-
Shadow Step Timer
-
events
- time - temp_timer_02 expires
- conditions
-
actions
- unit - Move temp_unit instantly to temp_point_03
- unit - Remove temp_unit_03 from the game
- Custom script: set udg_temp_unit = null
- Custom script: set udg_temp_unit_02 = null
- Custom script: set udg_temp_unit_03 = null
- Custom script: call RemoveLocation(udg_temp_point)
- Custom script: call RemoveLocation(udg_temp_point_02)
- Custom script: call RemoveLocation(udg_temp_point_03)
- Custom script: call DestroyTimer(udg_temp_timer_02)
-
events
please Hivefriends, i need ur help!!!