Paper Mario DX
Paper Mario (N64) modding
Loading...
Searching...
No Matches
GetPlayerHpPercent.inc.c
Go to the documentation of this file.
1
#include "common.h"
2
3
API_CALLABLE(N(GetPlayerHpPercent)) {
4
evt_set_variable
(script, *script->ptrReadPos, (
gPlayerData
.
curHP
* 100) /
gPlayerData
.
curMaxHP
);
5
return
ApiStatus_DONE2
;
6
}
7
PlayerData::curMaxHP
s8 curMaxHP
Definition
common_structs.h:312
PlayerData::curHP
s8 curHP
Definition
common_structs.h:311
ApiStatus_DONE2
#define ApiStatus_DONE2
Definition
evt.h:118
evt_set_variable
s32 evt_set_variable(Evt *script, Bytecode var, s32 value)
Definition
evt.c:1847
gPlayerData
PlayerData gPlayerData
Definition
77480.c:40
src
common
GetPlayerHpPercent.inc.c
Generated by
1.10.0