Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
use_items.c File Reference

Go to the source code of this file.

Macros

#define GENERIC_FOOD_ITEM   -1
 

Variables

EvtScript battle_item_food_EVS_UseItem
 
EvtScript battle_item_mushroom_EVS_UseItem
 
EvtScript battle_item_fire_flower_EVS_UseItem
 
EvtScript battle_item_dusty_hammer_EVS_UseItem
 
EvtScript battle_item_pow_block_EVS_UseItem
 
EvtScript battle_item_pebble_EVS_UseItem
 
EvtScript battle_item_volt_shroom_EVS_UseItem
 
EvtScript battle_item_thunder_rage_EVS_UseItem
 
EvtScript battle_item_snowman_doll_EVS_UseItem
 
EvtScript battle_item_shooting_star_EVS_UseItem
 
EvtScript battle_item_sleepy_sheep_EVS_UseItem
 
EvtScript battle_item_stone_cap_EVS_UseItem
 
EvtScript battle_item_tasty_tonic_EVS_UseItem
 
EvtScript battle_item_thunder_bolt_EVS_UseItem
 
EvtScript battle_item_super_soda_EVS_UseItem
 
EvtScript battle_item_hustle_drink_EVS_UseItem
 
EvtScript battle_item_stop_watch_EVS_UseItem
 
EvtScript battle_item_dizzy_dial_EVS_UseItem
 
EvtScript battle_item_please_come_back_EVS_UseItem
 
EvtScript battle_item_egg_missile_EVS_UseItem
 
EvtScript battle_item_insecticide_herb_EVS_UseItem
 
EvtScript battle_item_fright_jar_EVS_UseItem
 
EvtScript battle_item_mystery_EVS_UseItem
 
EvtScript battle_item_repel_gel_EVS_UseItem
 
EvtScript battle_item_life_shroom_EVS_UseItem
 
EvtScript battle_item_coconut_EVS_UseItem
 
EvtScript battle_item_electro_pop_EVS_UseItem
 
EvtScript battle_item_strange_cake_EVS_UseItem
 
s32 ItemKeys []
 
BattleMoveEntry gBattleItemTable []
 
u16 D_80293E04 []
 
EvtScript EVS_UseMystery
 

Macro Definition Documentation

◆ GENERIC_FOOD_ITEM

#define GENERIC_FOOD_ITEM   -1

Definition at line 34 of file use_items.c.

Variable Documentation

◆ battle_item_food_EVS_UseItem

EvtScript battle_item_food_EVS_UseItem
extern

◆ battle_item_mushroom_EVS_UseItem

EvtScript battle_item_mushroom_EVS_UseItem
extern

◆ battle_item_fire_flower_EVS_UseItem

EvtScript battle_item_fire_flower_EVS_UseItem
extern

◆ battle_item_dusty_hammer_EVS_UseItem

EvtScript battle_item_dusty_hammer_EVS_UseItem
extern

◆ battle_item_pow_block_EVS_UseItem

EvtScript battle_item_pow_block_EVS_UseItem
extern

◆ battle_item_pebble_EVS_UseItem

EvtScript battle_item_pebble_EVS_UseItem
extern

◆ battle_item_volt_shroom_EVS_UseItem

EvtScript battle_item_volt_shroom_EVS_UseItem
extern

◆ battle_item_thunder_rage_EVS_UseItem

EvtScript battle_item_thunder_rage_EVS_UseItem
extern

◆ battle_item_snowman_doll_EVS_UseItem

EvtScript battle_item_snowman_doll_EVS_UseItem
extern

◆ battle_item_shooting_star_EVS_UseItem

EvtScript battle_item_shooting_star_EVS_UseItem
extern

◆ battle_item_sleepy_sheep_EVS_UseItem

EvtScript battle_item_sleepy_sheep_EVS_UseItem
extern

◆ battle_item_stone_cap_EVS_UseItem

EvtScript battle_item_stone_cap_EVS_UseItem
extern

◆ battle_item_tasty_tonic_EVS_UseItem

EvtScript battle_item_tasty_tonic_EVS_UseItem
extern

◆ battle_item_thunder_bolt_EVS_UseItem

EvtScript battle_item_thunder_bolt_EVS_UseItem
extern

◆ battle_item_super_soda_EVS_UseItem

EvtScript battle_item_super_soda_EVS_UseItem
extern

◆ battle_item_hustle_drink_EVS_UseItem

EvtScript battle_item_hustle_drink_EVS_UseItem
extern

◆ battle_item_stop_watch_EVS_UseItem

EvtScript battle_item_stop_watch_EVS_UseItem
extern

◆ battle_item_dizzy_dial_EVS_UseItem

EvtScript battle_item_dizzy_dial_EVS_UseItem
extern

◆ battle_item_please_come_back_EVS_UseItem

EvtScript battle_item_please_come_back_EVS_UseItem
extern

◆ battle_item_egg_missile_EVS_UseItem

EvtScript battle_item_egg_missile_EVS_UseItem
extern

◆ battle_item_insecticide_herb_EVS_UseItem

EvtScript battle_item_insecticide_herb_EVS_UseItem
extern

◆ battle_item_fright_jar_EVS_UseItem

EvtScript battle_item_fright_jar_EVS_UseItem
extern

◆ battle_item_mystery_EVS_UseItem

EvtScript battle_item_mystery_EVS_UseItem
extern

◆ battle_item_repel_gel_EVS_UseItem

EvtScript battle_item_repel_gel_EVS_UseItem
extern

◆ battle_item_life_shroom_EVS_UseItem

EvtScript battle_item_life_shroom_EVS_UseItem
extern

◆ battle_item_coconut_EVS_UseItem

EvtScript battle_item_coconut_EVS_UseItem
extern

◆ battle_item_electro_pop_EVS_UseItem

EvtScript battle_item_electro_pop_EVS_UseItem
extern

◆ battle_item_strange_cake_EVS_UseItem

EvtScript battle_item_strange_cake_EVS_UseItem
extern

◆ ItemKeys

s32 ItemKeys[]

Definition at line 37 of file use_items.c.

37 {
39 ITEM_MUSHROOM,
40 ITEM_FIRE_FLOWER,
41 ITEM_DUSTY_HAMMER,
42 ITEM_POW_BLOCK,
43 ITEM_PEBBLE,
44 ITEM_VOLT_SHROOM,
45 ITEM_THUNDER_RAGE,
46 ITEM_SNOWMAN_DOLL,
47 ITEM_DRIED_SHROOM,
48 ITEM_SHOOTING_STAR,
49 ITEM_SLEEPY_SHEEP,
50 ITEM_STONE_CAP,
51 ITEM_TASTY_TONIC,
52 ITEM_THUNDER_BOLT,
53 ITEM_SUPER_SHROOM,
54 ITEM_ULTRA_SHROOM,
55 ITEM_SUPER_SODA,
56 ITEM_HUSTLE_DRINK,
57 ITEM_STOP_WATCH,
58 ITEM_DIZZY_DIAL,
59 ITEM_PLEASE_COME_BACK,
60 ITEM_EGG_MISSILE,
61 ITEM_INSECTICIDE_HERB,
62 ITEM_FRIGHT_JAR,
63 ITEM_MYSTERY,
64 ITEM_REPEL_GEL,
65 ITEM_LIFE_SHROOM,
66 ITEM_COCONUT,
67 ITEM_ELECTRO_POP,
68 ITEM_STRANGE_CAKE,
69 ITEM_KOOKY_COOKIE,
70 ITEM_NONE
71};
#define GENERIC_FOOD_ITEM
Definition use_items.c:34

◆ gBattleItemTable

BattleMoveEntry gBattleItemTable[]

Definition at line 73 of file use_items.c.

73 {
74 BTL_ITEM(food),
75 BTL_ITEM(mushroom),
76 BTL_ITEM(fire_flower),
77 BTL_ITEM(dusty_hammer),
78 BTL_ITEM(pow_block),
79 BTL_ITEM(pebble),
80 BTL_ITEM(volt_shroom),
81 BTL_ITEM(thunder_rage),
82 BTL_ITEM(snowman_doll),
83 BTL_ITEM(mushroom),
84 BTL_ITEM(shooting_star),
85 BTL_ITEM(sleepy_sheep),
86 BTL_ITEM(stone_cap),
87 BTL_ITEM(tasty_tonic),
88 BTL_ITEM(thunder_bolt),
89 BTL_ITEM(mushroom),
90 BTL_ITEM(mushroom),
91 BTL_ITEM(super_soda),
92 BTL_ITEM(hustle_drink),
93 BTL_ITEM(stop_watch),
94 BTL_ITEM(dizzy_dial),
95 BTL_ITEM(please_come_back),
96 BTL_ITEM(egg_missile),
97 BTL_ITEM(insecticide_herb),
98 BTL_ITEM(fright_jar),
99 BTL_ITEM(mystery),
100 BTL_ITEM(repel_gel),
101 BTL_ITEM(life_shroom),
102 BTL_ITEM(coconut),
103 BTL_ITEM(electro_pop),
104 BTL_ITEM(strange_cake),
105 BTL_ITEM(strange_cake),
106};
#define BTL_ITEM(name)
Definition battle.h:122

◆ D_80293E04

u16 D_80293E04[]
Initial value:
= {
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,
}

Definition at line 109 of file use_items.c.

109 {
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,
111};

◆ EVS_UseMystery

EvtScript EVS_UseMystery
Initial value:
= {
Wait(2)
Call(LoadMysteryItemScript)
}
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
Definition macros.h:213
#define ExecWait(EVT_SOURCE)
Launches a new child thread.
Definition macros.h:475
#define Wait(NUM_FRAMES)
Blocks for the given number of frames.
Definition macros.h:254
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
Definition macros.h:576
#define LVar0
Definition macros.h:148
#define Return
Kills the current EVT thread.
Definition macros.h:217

Definition at line 203 of file use_items.c.

203 {
204 Wait(2)
205 Call(LoadMysteryItemScript)
207 Return
208 End
209};