Ok so, my map is progressing, and I'm having trouble creating trigger/abilities for a hero that has the following ability:
Mirri's Guile - Stationary invisibility. Mirri can break stealth in a 400 range by teleporting behind a unit and tripping them, stunning them for 2.5/3/3.5/4 seconds. Moving will also break stealth.
Ok, I created the ability, at first I tried Shadowmeld, but that doesn't work as base for this ability I found out, so I used a generic self buffing ability as a castable spell to activate triggers. Here's the first trigger:
However, my secondary trigger that checks if she's moved to remove the effect isn't working:
Does anyone have any insights into how to get this stationary invisibility to work?
As always, thank you for your time and help. -Lashkor
Mirri's Guile - Stationary invisibility. Mirri can break stealth in a 400 range by teleporting behind a unit and tripping them, stunning them for 2.5/3/3.5/4 seconds. Moving will also break stealth.
Ok, I created the ability, at first I tried Shadowmeld, but that doesn't work as base for this ability I found out, so I used a generic self buffing ability as a castable spell to activate triggers. Here's the first trigger:
-
Mirris Guile
-
Events
-
Unit - A unit Begins casting an ability
-
-
Conditions
-
(Ability being cast) Equal to Mirri's Guile
-
-
Actions
-
Set Mirri = (Casting unit)
-
Set Guile = (Position of (Casting unit))
-
Unit - Add Trip to (Casting unit)
-
If ((Level of Mirri's Guile for (Casting unit)) Equal to 1) then do (Unit - Set level of Trip for (Casting unit) to 1) else do (Do nothing)
-
If ((Level of Mirri's Guile for (Casting unit)) Equal to 2) then do (Unit - Set level of Trip for (Casting unit) to 2) else do (Do nothing)
-
If ((Level of Mirri's Guile for (Casting unit)) Equal to 3) then do (Unit - Set level of Trip for (Casting unit) to 3) else do (Do nothing)
-
If ((Level of Mirri's Guile for (Casting unit)) Equal to 4) then do (Unit - Set level of Trip for (Casting unit) to 4) else do (Do nothing)
-
Unit - Create 1 Shadowcaster for (Triggering player) at Guile facing Default building facing degrees
-
Hero - Create Guilewand and give it to (Last created unit)
-
Hero - Order (Last created unit) to use (Last created item) on (Casting unit)
-
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
-
Custom script: call RemoveLocation (udg_Guile)
-
Trigger - Run Unguile <gen> (ignoring conditions)
-
-
However, my secondary trigger that checks if she's moved to remove the effect isn't working:
-
Unguile
-
Events
-
Time - Every 0.20 seconds of game time
-
-
Conditions
-
(Mirri has buff Mirri's Guile ) Equal to True
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Current order of Mirri) Equal to (Order(move))
-
-
Then - Actions
-
Unit - Remove Mirri's Guile buff from Mirri
-
Unit - Remove Trip from Mirri
-
Custom script: call RemoveUnit (udg_Mirri)
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
-
-
Does anyone have any insights into how to get this stationary invisibility to work?
As always, thank you for your time and help. -Lashkor