Paper Mario DX
Paper Mario (N64) modding
Loading...
Searching...
No Matches
ItemChoice_WaitForSelection.inc.c
Go to the documentation of this file.
1
#include "common.h"
2
3
API_CALLABLE(N(ItemChoice_WaitForSelection)) {
4
Bytecode
* args = script->ptrReadPos;
5
6
if
(isInitialCall) {
7
N(ItemChoice_HasSelectedItem) = FALSE;
8
}
9
10
if
(N(ItemChoice_HasSelectedItem)) {
11
N(ItemChoice_HasSelectedItem) = FALSE;
12
evt_set_variable
(script, *args++, N(ItemChoice_SelectedItemID));
13
return
ApiStatus_DONE2
;
14
}
15
16
return
ApiStatus_BLOCK
;
17
}
ApiStatus_DONE2
#define ApiStatus_DONE2
Definition
evt.h:118
Bytecode
s32 Bytecode
Definition
evt.h:7
ApiStatus_BLOCK
#define ApiStatus_BLOCK
Definition
evt.h:116
evt_set_variable
s32 evt_set_variable(Evt *script, Bytecode var, s32 value)
Definition
evt.c:1847
src
world
common
todo
ItemChoice_WaitForSelection.inc.c
Generated by
1.10.0