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