Paper Mario DX
Paper Mario (N64) modding
Loading...
Searching...
No Matches
GetItemName.inc.c
Go to the documentation of this file.
1
#include "common.h"
2
#include "
npc.h
"
3
4
API_CALLABLE(N(
GetItemName
)) {
5
Bytecode
* args =
script
->ptrReadPos;
6
s32
inOutVar
= *args++;
7
s32 itemID =
evt_get_variable
(
script
,
inOutVar
);
8
9
evt_set_variable
(
script
,
inOutVar
,
gItemTable
[itemID & ~0xF0000].nameMsg);
10
return
ApiStatus_DONE2
;
11
}
PopupMenu_SelectedIndex
BSS s32 PopupMenu_SelectedIndex
Definition
8a860_len_3f30.c:84
ApiStatus_DONE2
#define ApiStatus_DONE2
Definition
evt.h:118
Bytecode
s32 Bytecode
Definition
evt.h:7
evt_get_variable
s32 evt_get_variable(Evt *script, Bytecode var)
Definition
evt.c:1689
evt_set_variable
s32 evt_set_variable(Evt *script, Bytecode var, s32 value)
Definition
evt.c:1846
npc.h
gItemTable
ItemData gItemTable[]
src
world
common
todo
GetItemName.inc.c
Generated by
1.10.0