• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Equiping Weapons Trigger Help

Status
Not open for further replies.

KorPhearon

K

KorPhearon

Ive been working on a way for a unit to switch weapons by clicking on the weapon item in one of his item slots then targeting himself. The item ability on itd own is only a dummy ability. However, this item ability would trigger an event that would replace the unit with the same unit but with different attack stats to represent the equiped weapon. So i did the trigger like this:

Event
- Unit uses an item

Conditions
- {Item Being Manipulated} Equal to {Item Carried by [Item carried by [target unit of ability being cast] of type Boltgun]

Actions
- Unit- Replace {Triggering Unit} with a Space Marine [Bolter] using the old units relative life and mana.

However this doesnt realy work out properly and the unit that uses the ability does not get replaced with the properly equipped unit. So im stuck in a bit of a rut with this. What am i doing wrong with this trigger? any help would be appreciated.
 
well your conditions... u know what they say? they say then
Used item is item being used by unit targeted with bolt spell :P

Easiest way to fix it is making item from targeting into clickable... so if item clicked u turn into rine
 
Status
Not open for further replies.
Back
Top