• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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