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

[Trigger] Another Trigger question XD

Status
Not open for further replies.
Level 10
Joined
Jul 22, 2008
Messages
363
Im trying to amke it so that if the alien kills any unit on the map then an alien will be created near the main alien.
  • Events
    • Unit - A unit Dies
  • Conditions
    • (Dying unit) Equal to (Attacked unit)
    • (Unit-type of (Killing unit)) Equal to Alien
    • (Unit-type of (Killing unit)) Equal to Predalien
  • Actions
    • Unit - Create 1 Alien for Player 12 (Brown) at (Position of Predalien 0239 <gen>) facing (Position of (Triggering unit))
Why wont this work? And how do I get this to work?
 
Level 14
Joined
Nov 4, 2006
Messages
1,241
(Unit-type of (Killing unit)) Equal to Alien
(Unit-type of (Killing unit)) Equal to Predalien


you have to put an "OR" between this conditions, otherwise the killing unit has to be two unittypes at the same time, which is never the case, so it doesn't work the way you have it now

Edit: oh and your first condition doesn't make any sense, either remove it or change it to whatever it was meant to be
 
Level 11
Joined
May 31, 2008
Messages
698
You have to use some common sense in your triggers. If you dont have an event that includes an attacked unit then you cant have anything else in that trigger that says "attacked unit" or "attacking unit" because there was no attacking or attacked unit.
And are you making an AVP map?
 
Status
Not open for further replies.
Top