Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
super_jump.c
Go to the documentation of this file.
1#include "common.h"
2#include "script_api/battle.h"
4
5#define NAMESPACE battle_move_super_jump
6
8
12
18 CaseEq(0)
20 CaseEq(1)
22 CaseEq(2)
26 Return
27 End
28};
29
32 Thread
33 Call(ShakeCam, CAM_BATTLE, 0, 2, Float(1.0))
34 Call(ShakeCam, CAM_BATTLE, 0, 2, Float(4.0))
35 Call(ShakeCam, CAM_BATTLE, 0, 2, Float(3.0))
36 Call(ShakeCam, CAM_BATTLE, 0, 2, Float(2.0))
37 Call(ShakeCam, CAM_BATTLE, 0, 2, Float(1.0))
38 Call(ShakeCam, CAM_BATTLE, 0, 2, Float(0.5))
40 Return
41 End
42};
43
49 Return
50 EndIf
52 Wait(1)
55 CaseGt(0)
68 Return
69 End
70};
71
77 Return
78 EndIf
80 Wait(1)
83 CaseGt(0)
96 Return
97 End
98};
99
105 Return
106 EndIf
107 Wait(1)
110 CaseGt(0)
123 Return
124 End
125};
BSS s32 PopupMenu_SelectedIndex
Bytecode EvtScript[]
@ ACTOR_SOUND_HURT
Definition enums.h:2070
@ BS_FLAGS1_NICE_HIT
Definition enums.h:3609
@ BS_FLAGS1_TRIGGER_EVENTS
Definition enums.h:3608
@ BS_FLAGS1_INCLUDE_POWER_UPS
Definition enums.h:3604
@ HIT_RESULT_HIT
Definition enums.h:1976
@ HIT_RESULT_MISS
Definition enums.h:1982
@ SOUND_ACTOR_JUMPED_2
Definition enums.h:781
@ SOUND_ACTOR_JUMPED_1
Definition enums.h:780
@ SOUND_NONE
Definition enums.h:550
@ SOUND_ACTOR_JUMPED_3
Definition enums.h:782
@ BTL_RUMBLE_PLAYER_EXTREME
Definition enums.h:3861
@ ACTOR_PLAYER
Definition enums.h:2118
@ ACTOR_BLUR_ENABLE
Definition enums.h:6005
@ ACTOR_BLUR_DISABLE
Definition enums.h:6004
@ CAM_BATTLE
Definition enums.h:1827
@ DAMAGE_TYPE_JUMP
Definition enums.h:2892
ApiStatus ShakeCam(Evt *script, b32 isInitialCall)
#define Switch(LVAR)
Marks the start of a switch statement.
Definition macros.h:312
#define CaseEq(RVAR)
Marks the start of a switch case that executes only if LVAR == RVAR. It also marks the end of any pre...
Definition macros.h:320
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
Definition macros.h:214
#define Float(DOUBLE)
Definition macros.h:52
#define EndIf
Marks the end of an if statement or an else block.
Definition macros.h:299
#define CaseDefault
Marks the start of a switch case that executes unconditionally. It also marks the end of any previous...
Definition macros.h:338
#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 LVar2
Definition macros.h:151
#define LVar1
Definition macros.h:150
#define Wait(NUM_FRAMES)
Blocks for the given number of frames.
Definition macros.h:255
#define EndSwitch
Marks the end of a switch statement and any case.
Definition macros.h:363
#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 CaseGt(RVAR)
Marks the start of a switch case that executes only if LVAR <= RVAR. It also marks the end of any pre...
Definition macros.h:329
#define LVar0
Definition macros.h:149
#define Return
Kills the current EVT thread.
Definition macros.h:218