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

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
 
Level 4
Joined
Oct 12, 2004
Messages
59
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.
 
Level 6
Joined
Feb 18, 2005
Messages
263
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.
Top