Get player stocks

Returns the number of stocks the specified player has.

Syntax
get_player_stocks( player );

Returns
int (# the amount of stocks)

Examples
//got_hit.gml //this character takes half knockback if the opponent has only 1 stock left: if (get_player_stocks( hit_player ) == 1) { old_hsp *= 0.5; old_vsp *= 0.5; }