Passing an item via an ability

Xenoche

Member
Reaction score
18
Want my intentions are is to create a item ability that when cast on a unit, "passes" the casting item to the target unit. I have tryed all the obvious triggers eg. E: unit casts an ability
C: ability = to "pass item"
A: Remove item in slot 1 of casting unit.
Give "my item" to target of ability being cast
But for some reason it removes the item and places it in the middle of the map. :confused:

Any ideas would be greatly appreciated.
 

Myzteryz

It only does everything.
Reaction score
90
wouldn't it be easier to instruct the players to right click on the item and click on the target??
 
M

maerlyn

Guest
Krakka said:
wouldn't it be easier to instruct the players to right click on the item and click on the target??

It'd be easier, but that's not what Xenoche wants. Why even bother posting that?

And now to actually reply: Try using channel as your spell. It worked for me. I also used the trigger Hero - Give Item.
 

Attachments

  • Transfer Item.w3x
    14 KB · Views: 101

Vexorian

Why no custom sig?
Reaction score
187
Oh yes.

have a TempInt integer variable

Custom Script: set udg_TempInt=GetUnitCurrentOrder(GetTriggerUnit())-852006

Will set the TempInt integer variable to the slot of the item being used for that spell.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top