Sets the number of stocks for the specified player.
| Argument | Type | Description |
|---|---|---|
| player | :real | ID of the player to set the stocks of |
| value | :real | The 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 );
}
