Warcraft III resources & community, 2003–2006 · archived

Changeing owner of a targeted unit to onwer of ordered unit

4 posts
#1

Changeing owner of a targeted unit to onwer of ordered unit

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
#2

Prob

You first have to order a unit to do something or you have to change that ,,ordered unit'' because no unit was ordered.[/i]
#3
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.
#4
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"