• 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.

[Solved] My AoE stun trigger dosen't work if someone in Tempgroup dies

Status
Not open for further replies.
Level 3
Joined
Apr 6, 2015
Messages
44
So I have a pretty basic spell, it's just a triggered war stomp, but for some reason *or so I think* when I cast it on a group of creeps and they're all full hp, they get stunned, but if just one of them is about to die, only some units get stunned while the others are totally unaffected, but they still received damage. Also, I don't receive credit for the kills, so I don't get bounty except for one unit (Which makes me think that after that unit dies something goes wrong).


151288d1451196815-my-aoe-stun-trigger-dosent-work-if-someone-tempgroup-dies-1.png
 

Attachments

  • 1.png
    1.png
    34.6 KB · Views: 133
Last edited:
Level 3
Joined
Apr 6, 2015
Messages
44
attachment.php


And sorry, I'm not really use with how to do everything on the forum.
 

Attachments

  • 1.png
    1.png
    13.9 KB · Views: 123
Level 3
Joined
Apr 6, 2015
Messages
44
Here's the map, I changed the stun to a war stomp AoE stun so that it works for now, but the problem is still there as I notice there's still no bounty for the kills except for one unit, which before was also where the stunning stopped, and it would be helpful to find the root problem, thanks.
 

Attachments

  • Copy.w3x
    1.9 MB · Views: 44
  • Like
Reactions: ILH
Here's the map, I changed the stun to a war stomp AoE stun so that it works for now
Well that's not very helpful. Please attach the firebolt version if you want help fixing that.

but the problem is still there as I notice there's still no bounty for the kills except for one unit
The problem is in your Bankai Folder:
  • Bankai Death
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Set Caster = (Dying unit)
      • Unit Group - Pick every unit in BankaiUnitGroup[1] and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Caster Equal to (Load (Key Caster) of (Key (Picked unit)) in Hashtable)
            • Then - Actions
              • Unit Group - Remove (Picked unit) from BankaiUnitGroup[1]
              • Unit - Remove (Picked unit) from the game
            • Else - Actions
You're setting the variable Caster to (Dying unit) the same time you tell the variable Caster to deal damage in Gods Resolution. It only works for "one" because the Unit Group actions have to loop, meaning that it has to deal damage to each unit one by one. When the unit died, Caster no longer stores the (Casting unit) of Gods Resolution, but that dying unit instead. That means that the dying unit is dealing the killing blow, not the actual caster of the spell.
 
Level 3
Joined
Apr 6, 2015
Messages
44
Oh wow, I totally missed that, thanks and sorry haha, I was just trying my best to fix it myself too and didn't want to be lazy and let everyone else do my work for me, thanks and much appreciated +rep
 
Status
Not open for further replies.
Top