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

[Trigger] Changing "Order String - Use/Turn on" that is "None" by default

Status
Not open for further replies.
Level 2
Joined
Jan 23, 2014
Messages
14
Hi all
My question is simple but unfortunately i couldn't find a proper answer on hive so i made a thread about it.
There is an ability on default wc3 abilities list called "Item Area Healing", I want a dummy caster to cast this ability. The problem is that this spell has "Text - Order String - Use/Turn on" property set to "None" by default, so I changed that to something else (thunderclap to be specific) then i created a trigger like this:

JASS:
function CoH_Actions takes nothing returns nothing
   local location lpU
   set lpU=GetUnitLoc(GetTriggerUnit())
   call CreateNUbitsAtLoc(1,'n002',GetOwningPlayer(GetTriggerUnit()),lpU,bj_UNIT_FACING)
   call UnitAddAbility(bj_lastCreatedUnit,'A01J')
   call IssueImmediateOrder(bj_lastCreatedUnit,"thunderclap")
   call KillUnit(bj_lastCreatedUnit)
   call RemoveLocation(lpU)
endfunction
//n002 is dummy caster and 'A01J' is my spell based on area healing

The problem is that the dummy unit don't use that spell, when i changed the 'A01J' with other spells (which had some order strings by default) like Thunderclap , Berserk or Fan Of Knives it did work perfectly.

so my question is this: I can't set "order string - use" for an ability if it is "None" be default? or did i forgot something and messed up somewhere?
 
Find out the order ID

  • debug
    • Events
      • Unit - A unit Is issued an order targeting a point
      • Unit - A unit Is issued an order with no target
      • Unit - A unit Is issued an order targeting an object
    • Conditions
    • Actions
      • Custom script: call BJDebugMsg(I2S(GetIssuedOrderId()))
then useIssueImmediateOrderByIdor whatever native is associated with that order type.
 
Status
Not open for further replies.
Top