• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Again a trigger problem

Status
Not open for further replies.
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:

  • 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
as u can see i created a dummy unit at the position were the hero should be moved back later. i used the timer to activate a seconds trigger:

  • 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)
i thought that there could be an error with the variables cause i didnt clear them but when i overlooked it again i couldnt help it...
please Hivefriends, i need ur help!!!
 
Status
Not open for further replies.
Top