set_player_stocks

Sets the number of stocks for the specified player.

ArgumentTypeDescription
player:realID of the player to set the stocks of
value:realThe value to set

Example, called from attack_update.gml:

// gives your character another stock at the end of window 2:
if (window == 2 && window_timer == 200) {
set_player_stocks( player, get_player_stocks( player ) + 1 );
}