• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[General] Order for HeroAbilities button

Status
Not open for further replies.
Level 11
Joined
Sep 14, 2009
Messages
284
Does anyone know the order for pressing the Hero Abilities button? I need to detect when a player presses the button that opens the learnable abilities for heroes.

Or alternatively, is there a way to find these "hidden" order strings somewhere in the mpq etc?

EDIT:

Apparently its impossible to detect. Used this trigger to test it and no order int is printed when pressing the button.

JASS:
function Trig_Untitled_Trigger_002_Conditions takes nothing returns boolean
    return true//GetIssuedOrderId() == 852000
endfunction
function Trig_Untitled_Trigger_002_Actions takes nothing returns nothing
   
    call DisplayTextToForce( GetPlayersAll(), "oooooo" + I2S(GetIssuedOrderId()) )
endfunction
//===========================================================================
function InitTrig_Untitled_Trigger_002 takes nothing returns nothing
    set gg_trg_Untitled_Trigger_002 = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_Untitled_Trigger_002, EVENT_PLAYER_UNIT_ISSUED_ORDER )
    call TriggerRegisterAnyUnitEventBJ(gg_trg_Untitled_Trigger_002, EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER)
    call TriggerRegisterAnyUnitEventBJ( gg_trg_Untitled_Trigger_002, EVENT_PLAYER_UNIT_ISSUED_UNIT_ORDER )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_Untitled_Trigger_002, EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
    call TriggerAddCondition( gg_trg_Untitled_Trigger_002, Condition( function Trig_Untitled_Trigger_002_Conditions ) )
    call TriggerAddAction( gg_trg_Untitled_Trigger_002, function Trig_Untitled_Trigger_002_Actions )
endfunction
 
Last edited:
Status
Not open for further replies.
Top