• Check out the results of the Techtree Contest #19!
  • 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 void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Simple Order Issue

Status
Not open for further replies.
Level 8
Joined
Oct 2, 2013
Messages
288
I'm trying to make a unit cast Scroll Of Protection as a unit-ability through triggers (order trigger).

I tried changing the order string to Channel since Scroll Of Protection is usually an item ability... but it's just not working for me.

How do I do this?
 
It doesn't cast anything.

Well, how would you normally activate an item-ability using trigger order?

Is changing the Order String not enough?
 
Sorry I'm late. Fell asleep ._.

Here's the map.

What you have to do is make a trigger to display the order-id numbers of all orders issued to all units in the game. Then manually cast the spell with a unit and record the displayed number. Use this number to trigger the casting of the spell.

Could you show me? Just one example if it's not too much work.
 

Attachments

Create the trigger below. Then you need to useIssueImmediateOrderByIdto force the unit you want to cast the Scroll of Protection spell. I am assuming that the spell has no targets (click icon and it casts).
  • Catch Order
    • Events
      • Unit - A unit Is issued an order targeting an object
      • Unit - A unit Is issued an order targeting a point
      • Unit - A unit Is issued an order with no target
    • Conditions
    • Actions
      • Custom script: call BJDebugMsg("Issued Order: "+I2S(GetIssuedOrderId()))
 
Status
Not open for further replies.
Back
Top