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

Unit Combining !Help!

Status
Not open for further replies.
Level 2
Joined
Mar 21, 2007
Messages
11
I thought this trigger was going to be really easy but i can seem to figure out why it wont work.

Events:
Unit - A unit enters fuse <gen>

Conditions:
((Unit-type of (Entering unit)) Equal to Rivendell Hunter) and ((Unit-type of Entering unit)) Equal to Commander

Actions:
Unit - Create 1 Banshee for (Owner of (Entering unit)) at (Center of Unit Place <gen>) facing ( Center of Unit Place <gen>)
Special Effect - Create a special effect attached to chest of (Entering unit) using Abilities\Spells\Other\Doom\DoomDeath.mdl
Special Effect - Create a special effect attached to chest of (Entering unit) using Abilities\Spells\Other\Doom\DoomDeath.mdl
Unit - Remove (Entering unit) from the game
Unit - Remove (Entering unit) from the game
-------------------------------------------------------------------------
Can someone please tell me what is wrong with this trigger.
 
Level 9
Joined
Jan 5, 2007
Messages
283
Firstly, (Entering unit) can only refer to one unit, either the Hunter OR the Commander, not both. The way you have it currently will not even trigger, as it requires the entering unit to be two units at once. For the conditions you probably want something more along the lines of:
  • (((Unit-type of (Entering unit)) Equal to Rivendell Hunter) and (Number of units matching (Unit-type of (Matching unit)) Equal to Commander) in (fuse <gen>) greater than or equal to 1)) Or (((Unit-type of (Entering unit)) Equal to Commander) and (Number of units matching (Unit-type of (Matching unit)) Equal to Rivendell Hunter) in (fuse <gen>) greater than or equal to 1))
Note: This will need even more conditions to be effective. As it is with this, if for example player 2 has a Hunter in the region and player 1 brings a Commander in, player 1 will get the banshee.

I can't open World Editor at the moment, so I'm not sure what exactly you'd do for the actions, but keep in mind that only one of the units is and can be the entering unit. This probably didn't help at all, sorry.

Also another thing to note: if you remove a unit, it will remove the special effects attached to it, so if you want the Doom fire thing to show up, you would have to make it create a special effect at the position of the unit (Using create special effect at point), and then delete it after a certain period of time to prevent leaking. And to create and delete both effects, you'd probably need to use variables.
 
Status
Not open for further replies.
Top