I am working on a map that scales the units health based on number of players. That part is working fine. My issue is that on a boss fight I have the queen set to burrow and move instantly to another location in the region and unburrow there. However, every time she burrows she jumps back to full life. I believe the issue is that when she cycles to 'burrowed-queen' it is treating her like a new unit and gives her the life behavior buff I have in place for having x players in the map.
I tested this theory by turning off the health behavior and she would burrow and teleport properly without gaining health. Any suggestions on how to make this work?
Things I have tried:
Setting burrowed health higher / lower / the same as normal health
I tried setting up a trigger that disables the health buff once she is spawned thinking that she wouldn't gain / lose the xplayer buff. She maintained the buff even going burrow and unburrow (so I don't know if its fully treating her like a new unit each transition)
Any suggestions on how to fix/troubleshoot this is appreciated.
I tested this trigger and now she immediately dies after each burrow.
After the exact way you had it failed I went and tried this:
Burrow
Events
Unit - Any Unit uses Queen - Burrow at Morph13 - Abilities Start stage (Ignore shared abilities)
Unit - Any Unit uses Queen - Unburrow at Morph14 - Abilities End stage (Ignore shared abilities)
Local Variables
Queen Health = 0.0 <Real>
Conditions
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Triggering ability) == Queen - Burrow
Then
Variable - Set Queen Health = ((Triggering ability target unit) Life (Percent) (Current))
Else
General - If (Conditions) then do (Actions) else do (Actions)
If
(Triggering ability) == Queen - Unburrow
Then
Unit - Set (Triggering ability target unit) Life (Percent) to Queen Health
Else
I tried using a few different combinations of stages to see if it made sense. With this version the queen doesn't die every burrow but she does reset back to full hp again. Any help is appreciated on this.
Hello everyone,
I am working on a map that scales the units health based on number of players. That part is working fine. My issue is that on a boss fight I have the queen set to burrow and move instantly to another location in the region and unburrow there. However, every time she burrows she jumps back to full life. I believe the issue is that when she cycles to 'burrowed-queen' it is treating her like a new unit and gives her the life behavior buff I have in place for having x players in the map.
I tested this theory by turning off the health behavior and she would burrow and teleport properly without gaining health. Any suggestions on how to make this work?
Things I have tried:
Setting burrowed health higher / lower / the same as normal health I tried setting up a trigger that disables the health buff once she is spawned thinking that she wouldn't gain / lose the xplayer buff. She maintained the buff even going burrow and unburrow (so I don't know if its fully treating her like a new unit each transition)
Any suggestions on how to fix/troubleshoot this is appreciated.
This isn't the most efficient way to do this, but it's workable.
I need sleep. >_<
@Beasttamer:
Thanks for the reply. I will test this soon and post back the results.
@Beasttamer:
I tested this trigger and now she immediately dies after each burrow.
After the exact way you had it failed I went and tried this:
Burrow
Events
Unit - Any Unit uses Queen - Burrow at Morph13 - Abilities Start stage (Ignore shared abilities)
Unit - Any Unit uses Queen - Unburrow at Morph14 - Abilities End stage (Ignore shared abilities)
Local Variables
Queen Health = 0.0 <Real>
Conditions
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Triggering ability) == Queen - Burrow
Then
Variable - Set Queen Health = ((Triggering ability target unit) Life (Percent) (Current))
Else
General - If (Conditions) then do (Actions) else do (Actions)
If
(Triggering ability) == Queen - Unburrow
Then
Unit - Set (Triggering ability target unit) Life (Percent) to Queen Health
Else
I tried using a few different combinations of stages to see if it made sense. With this version the queen doesn't die every burrow but she does reset back to full hp again. Any help is appreciated on this.
Does anyone have tips on how to do this?