34#define GENERIC_FOOD_ITEM -1
59 ITEM_PLEASE_COME_BACK,
61 ITEM_INSECTICIDE_HERB,
110 1, 31, 1, 5, 1, 2, 9, 3, 9, 3, 9, 1, 10, 6, 10, 6, 10, 4, 11, 8, 11, 8, 11, 4, 12, 3, 12, 3, 12, 1,
113API_CALLABLE(LoadItemScript) {
122 if (playerData->
invItems[i] == itemID) {
123 playerData->
invItems[i] = ITEM_NONE;
143 for (i = 0; *itemPtr != ITEM_NONE; i++, itemPtr++) {
149 if (*itemPtr == ITEM_NONE) {
160 script->varTable[1] = FALSE;
165API_CALLABLE(LoadMysteryItemScript) {
183 for (i = 0; *itemPtr != ITEM_NONE; i++, itemPtr++) {
189 if (*itemPtr == ITEM_NONE) {
199 script->varTable[1] = TRUE;
205 Call(LoadMysteryItemScript)
struct SelectableTarget targetData[24]
@ ITEM_TYPE_FLAG_FOOD_OR_DRINK
@ TARGET_FLAG_PRIMARY_ONLY
void sort_consumables(void)
Bubbles up player inventory items such that all ITEM_NONE values are at the bottom.
u32 dma_copy(Addr romStart, Addr romEnd, void *vramDest)
void deduct_current_move_fp(void)
void create_current_pos_target_list(Actor *actor)
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
#define ExecWait(EVT_SOURCE)
Launches a new child thread.
#define Wait(NUM_FRAMES)
Blocks for the given number of frames.
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
#define Return
Kills the current EVT thread.
struct Actor * playerActor
EvtScript battle_item_stone_cap_EVS_UseItem
EvtScript battle_item_hustle_drink_EVS_UseItem
EvtScript battle_item_fire_flower_EVS_UseItem
EvtScript battle_item_repel_gel_EVS_UseItem
EvtScript battle_item_volt_shroom_EVS_UseItem
EvtScript battle_item_snowman_doll_EVS_UseItem
EvtScript battle_item_egg_missile_EVS_UseItem
EvtScript battle_item_pow_block_EVS_UseItem
EvtScript battle_item_super_soda_EVS_UseItem
EvtScript battle_item_strange_cake_EVS_UseItem
EvtScript battle_item_pebble_EVS_UseItem
EvtScript battle_item_shooting_star_EVS_UseItem
EvtScript battle_item_mystery_EVS_UseItem
EvtScript battle_item_life_shroom_EVS_UseItem
EvtScript battle_item_fright_jar_EVS_UseItem
EvtScript battle_item_tasty_tonic_EVS_UseItem
EvtScript battle_item_stop_watch_EVS_UseItem
BattleMoveEntry gBattleItemTable[]
EvtScript battle_item_thunder_rage_EVS_UseItem
EvtScript battle_item_insecticide_herb_EVS_UseItem
EvtScript battle_item_dusty_hammer_EVS_UseItem
EvtScript battle_item_please_come_back_EVS_UseItem
EvtScript battle_item_dizzy_dial_EVS_UseItem
#define GENERIC_FOOD_ITEM
EvtScript battle_item_sleepy_sheep_EVS_UseItem
EvtScript battle_item_mushroom_EVS_UseItem
EvtScript battle_item_thunder_bolt_EVS_UseItem
EvtScript battle_item_coconut_EVS_UseItem
EvtScript battle_item_food_EVS_UseItem
EvtScript battle_item_electro_pop_EVS_UseItem
BattleStatus gBattleStatus