Personnage
lifePointsP
Obtenir la santé du personnage sous forme de pourcentage.
Obtenir la santé du personnage sous forme de pourcentage.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Obtenir la santé du personnage sous forme de pourcentage.
character:lifePointsP()
| Type | Description |
|---|---|
float | Pourcentage de PV (0–100). |
local hpPercent = character:lifePointsP()
if hpPercent < 30 then
global:printError("Santé critique !")
-- Utiliser une potion de soin
inventory:useItem(123)
end