• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Exchange Unit instantly with another one(very fast)

Status
Not open for further replies.
Level 5
Joined
Aug 23, 2008
Messages
116
Hi,

I thought it would be easy to do this, but now I have the problem that my hero exchange is not fast enough...and the items are not exchanged.
thats the trigger:

+A unit uses a spell

+the spell is 'x'

+move unit 'NEW' instantly to position of unit 'OLD'
+move unit 'OLD' instantly to region 'R'


Is there a better method? Maybe without a loose of items?
 
Level 14
Joined
Apr 21, 2007
Messages
1,465
Just use this trigger:
  • Events
    • Unit - A unit casts an ability
  • Conditions
    • Ability being cast equal to X
  • Actions
    • Hero - Give (Item carried by OLD in slot 1) to NEW
    • Hero - Give (Item carried by OLD in slot 2) to NEW
    • Hero - Give (Item carried by OLD in slot 3) to NEW
    • Hero - Give (Item carried by OLD in slot 4) to NEW
    • Hero - Give (Item carried by OLD in slot 5) to NEW
    • Hero - Give (Item carried by OLD in slot 6) to NEW
Oh, and the action "Move unit to the position of unit" leaks so you need a point variable and this trigger:
  • Events
    • Unit - A unit casts an ability
  • Conditions
    • Ability being cast equal to X
  • Actions
    • Set POINT=Position of OLD
    • Unit - Move NEW to POINT
    • Unit - Move OLD to R
 

x3m

x3m

Level 3
Joined
Apr 11, 2008
Messages
51
Are you supposed to swap between heroes?
Is region R just a place to temporarly hold the hero`?
 
Level 5
Joined
Aug 23, 2008
Messages
116
Thanks for the tipp!

Yes he is. Its like in DARK DEEDS with the witch doctor:

One should be able to transform into a monster and back to a human to cheat on the other players ;-)
 
Status
Not open for further replies.
Top