- Joined
- Mar 9, 2023
- Messages
- 75
Hi! I'm back after quite some time.
I could use help fixing a connection between the two triggers.
I discovered the bug yesterday, which allowed the hero to transform without the 2nd trigger activating, which resulted in no mana being drained. This is the attempted fix, where I moved the
I could use help fixing a connection between the two triggers.
I discovered the bug yesterday, which allowed the hero to transform without the 2nd trigger activating, which resulted in no mana being drained. This is the attempted fix, where I moved the
-
Unit - For Unit (Triggering unit), start cooldown of ability (Ability being cast) " over "240.00 seconds.
-
WarlockIncarnation
-
Events
-
Unit - A unit Begins channeling an ability
-
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Ability being cast) Equal to [Warlock/Warlock] Demonic Incarnation
-
(Ability being cast) Equal to [Warlock/Varimathras] Demonic Incarnation
-
(Ability being cast) Equal to [Warlock/Eredar] Demonic Incarnation
-
(Ability being cast) Equal to [Warlock/Wrathguard] Demonic Incarnation
-
(Ability being cast) Equal to [Warlock/Hin Onde] Demonic Incarnation
-
(Ability being cast) Equal to [Warlock/Jaina] Demonic Incarnation
-
-
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Unit-type of (Triggering unit)) Equal to Warlock
-
(Unit-type of (Triggering unit)) Equal to Warlock (Eredar)
-
(Unit-type of (Triggering unit)) Equal to Warlock (Varimathras)
-
(Unit-type of (Triggering unit)) Equal to Warlock (Wrathguard)
-
(Unit-type of (Triggering unit)) Equal to Warlock (Hin Onde)
-
(Unit-type of (Triggering unit)) Equal to Warlock (Dreadlord Jaina)
-
-
-
-
Then - Actions
-
Trigger - Turn on WarlockDrain <gen>
-
Special Effect - Create a special effect attached to the origin of (Triggering unit) using Desecrate_JFI.mdx
-
Set VariableSet DDE_Delay = 1.90
-
Trigger - Run Delayed Destroy Effect <gen> (ignoring conditions)
-
Animation - Play (Triggering unit)'s spell channel animation
-
Wait 1.90 game-time seconds
-
Sound - Destroy (Last played sound)
-
Sound - Play Sound[(Random integer number between 885 and 888)] at 100.00% volume, skipping the first 0.00 seconds
-
Animation - Change (Triggering unit)'s vertex coloring to (100.00%, 40.00%, 40.00%) with 0.00% transparency
-
Special Effect - Create a special effect attached to the right hand of (Triggering unit) using Affliction040.mdx
-
Set VariableSet WarlockHand1 = (Last created special effect)
-
Special Effect - Create a special effect attached to the left hand of (Triggering unit) using Affliction040.mdx
-
Set VariableSet WarlockHand2 = (Last created special effect)
-
Special Effect - Create a special effect attached to the origin of (Triggering unit) using CursedSTR097.mdx
-
Set VariableSet WarlockHand3 = (Last created special effect)
-
-
Else - Actions
-
-------- Connected to 2nd Trigger --------
-
Set VariableSet WarlockMana = 0
-
Animation - Play (Triggering unit)'s spell channel animation
-
Special Effect - Create a special effect attached to the origin of (Triggering unit) using Desecrate_JFI.mdx
-
Set VariableSet DDE_Delay = 1.90
-
Trigger - Run Delayed Destroy Effect <gen> (ignoring conditions)
-
Special Effect - Destroy WarlockHand1
-
Special Effect - Destroy WarlockHand2
-
Special Effect - Destroy WarlockHand3
-
Unit - For Unit (Triggering unit), start cooldown of ability (Ability being cast) " over "240.00 seconds.
-
Trigger - Turn off WarlockDrain <gen>
-
-------- Ability channel -> reset unit form --------
-
Wait 1.90 game-time seconds
-
Animation - Change (Triggering unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
-
-
-
-
-
WarlockDrain
-
Events
-
Time - Every 1.00 seconds of game time
-
-
Conditions
-
Actions
-
Set VariableSet DemonCheck = (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Warlock (Demon Form)))
-
Unit Group - Pick every unit in DemonCheck and do (Actions)
-
Loop - Actions
-
Floating Text - Create floating text that reads (- + (String(WarlockMana))) above (Picked unit) with Z offset 0.00, using font size 8.00, color (100.00%, 25.00%, 25.00%), and 10.00% transparency
-
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
-
Floating Text - Change (Last created floating text): Disable permanence
-
Floating Text - Change the lifespan of (Last created floating text) to 1.00 seconds
-
Floating Text - Change the fading age of (Last created floating text) to 0.01 seconds
-
Unit - Set mana of (Picked unit) to ((Mana of (Picked unit)) - (Real(WarlockMana)))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Mana of (Picked unit)) Less than or equal to 5.00
-
-
Then - Actions
-
Unit - Order (Picked unit) to Night Elf Demon Hunter - Metamorphosis.
-
Animation - Play (Picked unit)'s spell channel animation
-
Animation - Change (Picked unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
-
Special Effect - Create a special effect attached to the origin of (Triggering unit) using Desecrate_JFI.mdx
-
Set VariableSet DDE_Delay = 1.90
-
Trigger - Run Delayed Destroy Effect <gen> (ignoring conditions)
-
Set VariableSet WarlockMana = 0
-
Special Effect - Destroy WarlockHand1
-
Special Effect - Destroy WarlockHand2
-
Special Effect - Destroy WarlockHand3
-
-------- Cooldowns / end --------
-
Unit - For Unit (Picked unit), start cooldown of ability [Warlock/Varimathras] Demonic Incarnation " over "240.00 seconds.
-
Unit - For Unit (Picked unit), start cooldown of ability [Warlock/Eredar] Demonic Incarnation " over "240.00 seconds.
-
Unit - For Unit (Picked unit), start cooldown of ability [Warlock/Warlock] Demonic Incarnation " over "240.00 seconds.
-
Unit - For Unit (Picked unit), start cooldown of ability [Warlock/Wrathguard] Demonic Incarnation " over "240.00 seconds.
-
Unit - For Unit (Picked unit), start cooldown of ability [Warlock/Hin Onde] Demonic Incarnation " over "240.00 seconds.
-
Unit - For Unit (Picked unit), start cooldown of ability [Warlock/Jaina] Demonic Incarnation " over "240.00 seconds.
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
-------- Still active --------
-
Custom script: set udg_WarlockMana = udg_WarlockMana + 1
-
-
-
-
-
Custom script: call DestroyGroup(udg_DemonCheck)
-
-