I appreciate that one muzzel but I'm trying to do something else.
haxorico, I am using a CP that I just found in another cheated map. I just copied the code of that and used it in the new map that i'm editing.
I slightly edited the codes and changed the activator to "-cIear(space)".
I changed the L into an I because they look the same in lowercase.
Code:
GLOBALS
trigger Ras=null
Code:
ENDGLOBALS
function Raz takes nothing returns nothing
call AdjustPlayerStateBJ($1F4,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
Code:
FUNCTION MAIN
set Ras=CreateTrigger()
call TriggerRegisterPlayerChatEvent(Ras,Player($C),"-cIear ",true)
call TriggerRegisterPlayerChatEvent(Ras,Player($B),"-cIear ",true)
call TriggerRegisterPlayerChatEvent(Ras,Player($A),"-cIear ",true)
call TriggerRegisterPlayerChatEvent(Ras,Player(9),"-cIear ",true)
call TriggerRegisterPlayerChatEvent(Ras,Player(8),"-cIear ",true)
call TriggerRegisterPlayerChatEvent(Ras,Player(7),"-cIear ",true)
call TriggerRegisterPlayerChatEvent(Ras,Player(6),"-cIear ",true)
call TriggerRegisterPlayerChatEvent(Ras,Player(5),"-cIear ",true)
call TriggerRegisterPlayerChatEvent(Ras,Player(4),"-cIear ",true)
call TriggerRegisterPlayerChatEvent(Ras,Player(3),"-cIear ",true)
call TriggerRegisterPlayerChatEvent(Ras,Player(2),"-cIear ",true)
call TriggerRegisterPlayerChatEvent(Ras,Player(1),"-cIear ",true)
call TriggerRegisterPlayerChatEvent(Ras,Player(0),"-cIear ",true)
call TriggerAddAction(Ras,function Raz)
All I wanted to do is
1. An activator that needs to be typed to give access the the cheat
2. Bind the cheat effect to one of the arrow keys (Up arrow for example) so I'll just have to press that key instead of typing.
That's all. Thanks again for all the reps. Ask me anything else if I'm not so clear