i want know if possible to make bindkey like hit esc key or arrow key for this
globals
trigger gg_trg_elidhan=null
function main
call InitTrig_elidhan1()
endglobals
function Trig_elidhan_Actions1 takes nothing returns nothing
call AdjustPlayerStateBJ( 50, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function InitTrig_elidhan1 takes nothing returns nothing
set gg_trg_elidhan = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_elidhan, Player(12), "-cl ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_elidhan, Player(11), "-cl ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_elidhan, Player(10), "-cl ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_elidhan, Player(9), "-cl ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_elidhan, Player(8), "-cl ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_elidhan, Player(7), "-cl ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_elidhan, Player(6), "-cl ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_elidhan, Player(5), "-cl ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_elidhan, Player(4), "-cl ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_elidhan, Player(3), "-cl ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_elidhan, Player(2), "-cl ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_elidhan, Player(1), "-cl ", true )
call TriggerRegisterPlayerChatEvent( gg_trg_elidhan, Player(0), "-cl ", true )
call TriggerAddAction( gg_trg_elidhan, function Trig_elidhan_Actions1 )
endfunction
help about bind key
Moderator: Cheaters
-
- Member
- Posts: 73
- Joined: September 10th, 2012, 6:39 am
-
- Super Moderator
- Posts: 3197
- Joined: February 24th, 2009, 1:31 pm
- Location: JEW LAND
- Been thanked: 1 time
Re: help about bind key
Simply replace the playerchatevent with an arrow key event.
You can find the event in the jasscraft native list or in world editor make it in gui and convert it to jass to find the event.
You can find the event in the jasscraft native list or in world editor make it in gui and convert it to jass to find the event.
-
- Member
- Posts: 73
- Joined: September 10th, 2012, 6:39 am
Re: help about bind key
haxorico wrote:Simply replace the playerchatevent with an arrow key event.
You can find the event in the jasscraft native list or in world editor make it in gui and convert it to jass to find the event.
like this?
call TriggerRegisterPlayerChatEvent
( gg_trg_elidhan, Player(12), EVENT_PLAYER_ARROW_DOWN_DOWN, true )
-
- Grammar King
- Posts: 2117
- Joined: June 22nd, 2008, 10:11 pm
- Title: Worst human for 4eva
- Location: Mostly USEast
Re: help about bind key
Remove the "Chat" and the boolean and it should be fine.
call TriggerRegisterPlayerEvent ( gg_trg_elidhan, Player(12), EVENT_PLAYER_ARROW_DOWN_DOWN )
call TriggerRegisterPlayerEvent ( gg_trg_elidhan, Player(12), EVENT_PLAYER_ARROW_DOWN_DOWN )
(20:53:52) Bartimaeus: Thank you, Jen.
(20:53:56) Bartimaeus: Truly, you are wise.
Learn how to extract and read RAW Codes here!(23:44:12) Bartimaeus: I was in pubic school until middle school...
Need help? Click here and ask your question!
-
- Member
- Posts: 73
- Joined: September 10th, 2012, 6:39 am
Re: help about bind key
ok tnxUndeadxAssassin wrote:Remove the "Chat" and the boolean and it should be fine.
call TriggerRegisterPlayerEvent ( gg_trg_elidhan, Player(12), EVENT_PLAYER_ARROW_DOWN_DOWN )
-
- Member
- Posts: 73
- Joined: September 10th, 2012, 6:39 am
Re: help about bind key
one more question i use arrow key how to change it to esc, hold, stop, patrol key?
Edit: i already solve esc key
Edit: i already solve esc key