• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Another Trigger question XD

Status
Not open for further replies.
Level 10
Joined
Jul 22, 2008
Messages
362
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 13
Joined
Nov 4, 2006
Messages
1,239
(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