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

[Solved] Moon stone spell

Status
Not open for further replies.
Level 8
Joined
Feb 17, 2018
Messages
114
Hi! My problem is that i can't make a dummy unit cast a spell based on moon stone item spell that changes day time to 00:00, I just don't see it in issue an order with no target and the spell itself doesn't have an ID. Looking for help. Thanks in advance.
 
Level 13
Joined
May 10, 2009
Messages
868
Its id is 852621.
call IssueImmediateOrderById(whichUnit, 852621)

EDIT:
If you need to find another ability order id that doesn't have a string order, use the following trigger:

  • Find 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(GetUnitName(GetTriggerUnit())+": "+I2S(GetIssuedOrderId()))
That should be enough for most abilities. Keep in mind that using items does NOT show the order id from its ability. In fact, it's shown the order id for using an item in a specific inventory slot; From 852008 to 852013.
 
Last edited:
Status
Not open for further replies.
Top