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
3API_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}
#define ApiStatus_DONE2
Definition evt.h:118
s32 Bytecode
Definition evt.h:7
#define ApiStatus_BLOCK
Definition evt.h:116
s32 evt_set_variable(Evt *script, Bytecode var, s32 value)
Definition evt.c:1847