• 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!

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?
 
Level 3
Joined
Mar 15, 2015
Messages
53
  • Hero - Order unit to use (Item carried by A_unit of type Wand of Illusion) on Target
You mean something like this...?
 
Level 19
Joined
Jul 2, 2011
Messages
2,161
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
 
Level 3
Joined
Mar 15, 2015
Messages
53
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
 
Level 8
Joined
Jan 28, 2016
Messages
486
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.
Top