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

Retalliation Trigger Bug

Status
Not open for further replies.
Level 5
Joined
Jun 5, 2007
Messages
99
Looking over some strange bugs in my latest version of Naznoran I'm working on, I found one that I really just don't understand how its not working.

WAY back in the beginning of development, I knew that I was going to put many attackable neutral passive creeps. I created a simple trigger to get it to work, and it did, until I tried AoE spells against such creatures.

  • retal
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Owner of (Attacked unit)) Equal to Neutral Passive
    • Actions
      • Unit - Change ownership of (Attacked unit) to Neutral Hostile and Change color
That has been the trigger since Day 1, and I never once got notice that AoEs dont work until yesterday. Could anybody point out what I need to do to make it so ANY attack will change their faction to Neutral Hostile? I would greatly appreciate it. :)

P.S. Yes, Naznoran is not on the Hive Workshop right now, it will be posted back soon.

~Saryeit
 
Level 22
Joined
Feb 26, 2008
Messages
892
Unfortunately, I think you would have to use the A Unit Takes Damage event for that, which is not a Generic Unit Event, but a Specific unit event.
This would require you to put in a unit group loop that adds an event to another trigger for every unit on the map that says Picked Unit Takes Damage.
I hope that made sense, but it's probably not really practical. You would have to do it periodically if you create new Neutral Passive units during the course of the game, which would create some bad leaks.
 
Status
Not open for further replies.
Top