Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
fright_jar.c
Go to the documentation of this file.
1#include "common.h"
2#include "script_api/battle.h"
3#include "model.h"
4#include "effects.h"
5#include "sprite/player.h"
6
7#define NAMESPACE battle_item_fright_jar
8
10
13
15
20 Thread
21 Wait(5)
28 Add(LVar0, -40)
29 Add(LVar1, 5)
30 SetF(LVar3, Float(0.7))
31 Loop(5)
33 Add(LVar0, 5)
34 AddF(LVar3, Float(0.15))
35 Wait(7)
38 Wait(20)
39 Loop(4)
42 Wait(2)
45 Wait(2)
50 Label(0)
54 Goto(1)
55 EndIf
58 Label(1)
61 Goto(0)
62 EndIf
63 Wait(10)
66 Wait(20)
68 Return
69 End
70};
BSS s32 PopupMenu_SelectedIndex
Bytecode EvtScript[]
@ BS_FLAGS1_TRIGGER_EVENTS
Definition enums.h:3608
@ ITER_NO_MORE
Definition enums.h:2063
@ ITER_NEXT
Definition enums.h:2058
@ HIT_RESULT_MISS
Definition enums.h:1982
@ BTL_CAM_DEFAULT
Definition enums.h:4409
@ BTL_CAM_VIEW_ENEMIES
Definition enums.h:4410
@ DMG_SRC_FRIGHT_JAR
Definition enums.h:2035
@ SOUND_FRIGHT_JAR
Definition enums.h:1178
@ ACTOR_PLAYER
Definition enums.h:2118
@ ACTOR_SELF
Definition enums.h:2117
@ DAMAGE_TYPE_STATUS_ALWAYS_HITS
Definition enums.h:2914
@ DAMAGE_TYPE_FEAR
Definition enums.h:2897
@ DAMAGE_TYPE_NO_CONTACT
Definition enums.h:2912
@ DAMAGE_TYPE_MULTIPLE_POPUPS
Definition enums.h:2913
ApiStatus FadeBackgroundLighten(Evt *script, b32 isInitialCall)
ApiStatus FadeBackgroundDarken(Evt *script, b32 isInitialCall)
#define AddF(VAR, FLOAT_VALUE)
Definition macros.h:384
#define IfNe(LVAR, RVAR)
Marks the beginning of an if statement that only executes if LVAR != RVAR.
Definition macros.h:273
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
Definition macros.h:214
#define Add(VAR, INT_VALUE)
Definition macros.h:377
#define EndLoop
Marks the end of a loop.
Definition macros.h:249
#define Goto(LABEL_ID)
Moves execution to the given label.
Definition macros.h:233
#define Float(DOUBLE)
Definition macros.h:52
#define Label(LABEL_ID)
Marks this point in the script as a Goto target.
Definition macros.h:228
#define EndIf
Marks the end of an if statement or an else block.
Definition macros.h:299
#define ExecWait(EVT_SOURCE)
Launches a new child thread.
Definition macros.h:476
#define Thread
Marks the start of a thread block.
Definition macros.h:545
#define EndThread
Marks the end of a thread block.
Definition macros.h:548
#define SetF(VAR, FLOAT_VALUE)
Sets the given variable to a given value, but supports Floats.
Definition macros.h:374
#define LVar2
Definition macros.h:151
#define LVar1
Definition macros.h:150
#define LVarA
Definition macros.h:159
#define Wait(NUM_FRAMES)
Blocks for the given number of frames.
Definition macros.h:255
#define PlayEffect(args...)
Definition macros.h:811
#define IfEq(LVAR, RVAR)
Marks the beginning of an if statement that only executes if LVAR == RVAR.
Definition macros.h:270
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
Definition macros.h:577
#define Loop(TIMES)
Marks the beginning of a loop.
Definition macros.h:246
#define LVar3
Definition macros.h:152
#define LVar0
Definition macros.h:149
#define SetConst(VAR, CONST)
Sets the given variable to a given value, skipping the evt_get_variable call.
Definition macros.h:371
#define Return
Kills the current EVT thread.
Definition macros.h:218