initialD wrote:
//under globals
trigger gg_trg_more_xp_command=null
[line][/line]
//under endglobal
function Trig_more_xp_command_Actions takes nothing returns nothing
call SetPlayerHandicapXPBJ( Player(3), 200.00 )
endfunction
function InitTrig_more_xp_command takes nothing returns nothing
set gg_trg_more_xp_command = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_more_xp_command, Player(3), "-more xp please!", true )
call TriggerAddAction( gg_trg_more_xp_command, function Trig_more_xp_command_Actions )
endfunction
[line][/line]
//under function main, after locals
call InitTrig_more_xp_command()
wow great! thanks!
1 more question tho.
but i have a new problem now :<
i tried making the function above for all players. not only for player 3. (i did it in GUI and converted it to jass)
but it takes a trigger for each player.. how can i make this trigger avilable for all players. and only the triggering unit's heroes will be effected.