Skip to content

SetPlayerStamina

Sets the player’s stamina.

Clamped to 0 .. max. A swing thrown with less stamina than it costs lands weakly - a mode may tire a player on purpose.

SetPlayerStamina(pid, stamina)
Parameter Type
pid number the player
stamina number the new stamina

boolean - false when not connected

-- both duelists start fresh
SetPlayerStamina(a, GetPlayerMaxStamina(a))
SetPlayerStamina(b, GetPlayerMaxStamina(b))

GetPlayerStamina · HealPlayer · the Vitals, stats and skills group of the index