How to trigger Item Abilities

Status
Not open for further replies.
Level 3
Joined
Mar 15, 2015
Messages
53
I want to create dummy which have an skill based on an item ability (in this case Item Illusions). But got stuck at activate it automatically.
Is there a way to trigger it through triggers?
 
  • Hero - Order unit to use (Item carried by A_unit of type Wand of Illusion) on Target
You mean something like this...?
 
have you tried it yet?

the other opinion is to just give that unit a the power of the item

event :
item acquired manipulated
condition:
unit acquires/manipulated item of type wand of illusion
Action
add ability wand of illusions to hero
 
No no i mean something like this
  • Skin Shell
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Bolt
    • Actions
      • Unit - Create 1 Dummy for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing degrees
      • Set dummy = (Last created unit)
      • Unit - Add a 5.00 second Generic expiration timer to dummy
      • Unit - Order dummy to Undead Banshee - Anti-magic Shell (Casting unit)
      • Custom script: call RemoveLocation(udg_position)
but with Item Illusions ability, i change it to unit ability, want the dummy to cast it but have no idea how
 
The problem is that the Wand of Illusion order isn't available in GUI so you need to swap out the order action in your trigger with the custom script below:
call IssueTargetOrderById(dummyunit,852274,targetunit)

Order Id of Wand of Illusion (and all other orders) can be found here.

Hope this makes sense (I'm in a bit of hurry as of writing this).
 
Status
Not open for further replies.
Back
Top