Paper Mario DX
Paper Mario (N64) modding
Loading...
Searching...
No Matches
GetEncounterEnemyIsOwner.inc.c
Go to the documentation of this file.
1
#include "common.h"
2
#include "
npc.h
"
3
4
API_CALLABLE(N(GetEncounterEnemyIsOwner)) {
5
Enemy
* enemy = script->owner1.enemy;
6
7
evt_set_variable
(script,
LVar0
,
gCurrentEncounter
.
curEnemy
== enemy);
8
return
ApiStatus_DONE2
;
9
}
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
npc.h
EncounterStatus::curEnemy
Enemy * curEnemy
Definition
npc.h:394
gCurrentEncounter
EncounterStatus gCurrentEncounter
Definition
encounter.c:176
Enemy
Definition
npc.h:294
LVar0
#define LVar0
Definition
macros.h:148
src
world
common
todo
GetEncounterEnemyIsOwner.inc.c
Generated by
1.10.0