get_player_stocks

Returns the number of stocks the specified player has.

ArgumentTypeDescription
player:realID of the player to get the stocks of

Example, called from 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 *= .5;
old_vsp *= .5;
}