• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your 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?
 
  • 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