• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Changeing owner of a targeted unit to onwer of ordered unit

Status
Not open for further replies.
Level 4
Joined
Oct 12, 2004
Messages
59
Im trying to make it so if you have an item and you issue an order on a unit it changes the target of the order to you and removes the item.

-Events
Unit- a unit is issued an order targeting an object

Conditions

Actions
If (all conditions are true) then do (then actions) else do (else actions)
If-conditions
(Issued order) Equal to (Order(Tall red house))
((Item carried by (Ordered unit) of type Key to Large House) is owned) Equal to true
Then-actions
Unit- change ownership of (targeted unit of issued order) to (owner of (Ordered unit)) and Change Color
Item- remove (item carried by (ordered unit) of type Key to Large House)
Else- do nothing

Why doesnt this work, How could this work? thanks
 
What are you trying to say, what action do i use? target equals building? please explain what i do. If not ill keep trying different things.
 
why don't you do an item with "charm" and set the allowed targets of the "charm" you use to the targets you want?
then simply mak the item perishable and you got what you wanted...

PS:
a spell with a duration of "0" means in most cases "permanment"
 
Status
Not open for further replies.
Back
Top