• 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 make unit cast Healing Salve through triggers?

Status
Not open for further replies.
Level 11
Joined
Dec 8, 2006
Messages
334
Hi
I have an unit
This unit has ability based on healing salve
How can I order it to cast this ability through triggers?

I think that Heart of Tarrasque in dota is based on this so it should be possible somehow!
Any ideas?

Alternatively: Can I somehow order an unit to use an item on another unit?
 
I don't think there is an order code for Healing Salve ability.
Every user interaction that alters gameplay should have an order ID. Not all order IDs have an order string though.

In the case of items like wand of illusion (so probably healing salve as well) you need to order the unit to cast the order ID. The order ID is obtained through experimentation (printing order ID of all orders that are made and seeing what gets printed when you cast the ability).
 
With
  • OrderID
    • Events
      • Unit - A unit Is issued an order with no target
      • Unit - A unit Is issued an order targeting a point
      • Unit - A unit Is issued an order targeting an object
    • Conditions
    • Actions
      • Custom script: set udg_i = GetIssuedOrderId()
      • Custom script: call BJDebugMsg(OrderId2String(udg_i) + " ---- " + I2S(udg_i))
it just displays the inventory slot order. The OrderId2String is null.
 
Heart of Tarrasque isn't based on healing salve. It has an enabled and disabled version. When you take damage from a player the enabled version is replaced with a disabled version, until you go 10 seconds without taking damage from a player owned source. Same with Blink Dagger.
 
Try giving it as a castable ability to a unit and trying.

It returns 852609, thanks!
Now, the main question still remains: how do I order my unit to cast it? I know there's a 'call IssuePointOrderById' function, so I guess it will be something around these lines... But I don't know the exact string (call IssueUnitOrderById? call IssueObjectOrderById? )
 
Last edited:
It's call IssueTargetOrderById, not call IssueTargetOrderByID.
ThumbsUp250.gif
 
You could base the ability off of a summoning ability that summons a dummy unit and use "Unit enters playable map area", then save the unit's location.
 
Status
Not open for further replies.
Back
Top