Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
attack.c
Go to the documentation of this file.
1#include "common.h"
2#include "script_api/battle.h"
4#include "sprite/player.h"
5
6#define NAMESPACE battle_move_jump_attack
7
9
10API_CALLABLE(N(GetJumpDamage)) {
11 script->varTable[15] = 1;
12
13 switch (gPlayerData.bootsLevel) {
14 case 0:
15 script->varTable[15] = 1;
16 break;
17 case 1:
18 script->varTable[15] = 2;
19 break;
20 case 2:
21 script->varTable[15] = 3;
22 break;
23 }
24
25 return ApiStatus_DONE2;
26}
27
28extern EvtScript N(EVS_UseMove_Normal);
29extern EvtScript N(EVS_UseMove_Super);
30extern EvtScript N(EVS_UseMove_Ultra);
31extern EvtScript N(EVS_UseMove_Tutorial);
32
33EvtScript N(EVS_UseMove) = {
34 Call(ShowActionHud, TRUE)
35 Call(GetBattleFlags2, LVar0)
37 ExecWait(N(EVS_UseMove_Tutorial))
38 Return
39 EndIf
40 Call(GetMenuSelection, LVar0, LVar1, LVar2)
42 CaseEq(0)
43 ExecWait(N(EVS_UseMove_Normal))
44 CaseEq(1)
45 ExecWait(N(EVS_UseMove_Super))
46 CaseEq(2)
47 ExecWait(N(EVS_UseMove_Ultra))
49 Return
50 End
51};
52
53EvtScript N(EVS_UseMove_Normal) = {
54 ExecWait(N(EVS_JumpSupport_ApproachAndJump))
55 Call(GetActionCommandMode, LVar0)
58 Loop(0)
59 Call(GetActionCommandMode, LVar0)
62 EndIf
63 Wait(1)
65 EndIf
66 Call(PlayerTestEnemy, LVar0, DAMAGE_TYPE_JUMP, 0, 0, 1, 0)
68 ExecWait(N(EVS_JumpSupport_Miss))
69 Return
70 EndIf
71 Call(GetActionCommandMode, LVar0)
73 Wait(1)
74 EndIf
75 Call(GetPlayerActionSuccess, LVar0)
77 CaseGt(FALSE)
87 // missed action command, end the script here
88 ExecWait(N(EVS_JumpSupport_NoFollowUp))
89 Return
93 // successful action command, continue with script
97 Call(UseBattleCamPreset, BTL_CAM_PLAYER_PRE_JUMP_FINISH)
98 Wait(5)
99 Call(SetGoalToTarget, ACTOR_PLAYER)
100 Call(UseBattleCamPreset, BTL_CAM_PLAYER_JUMP_FINISH)
102 Call(GetActionResult, LVarF)
103 Call(CloseActionCommandInfo)
104 Call(LoadActionCommand, ACTION_COMMAND_JUMP)
105 Call(action_command_jump_init)
106 Call(ShowActionHud, FALSE)
107 Call(action_command_jump_start, 24, 3)
108 Call(SetGoalToTarget, ACTOR_PLAYER)
109 Call(SetJumpAnimations, ACTOR_PLAYER, 0, ANIM_Mario1_Jump, ANIM_Mario1_Fall, ANIM_Mario1_SpinFall)
110 Call(PlayerBasicJumpToGoal, 24, PLAYER_BASIC_JUMP_3)
111 Wait(1)
114 Call(SetActionResult, LVarF)
115 ExecWait(N(EVS_JumpSupport_Rebound))
116 Return
117 End
118};
119
120EvtScript N(EVS_UseMove_Super) = {
121 ExecWait(N(EVS_JumpSupport_ApproachAndJump))
122 Call(PlayerTestEnemy, LVar0, DAMAGE_TYPE_JUMP, 0, 0, 1, 0)
124 ExecWait(N(EVS_JumpSupport_Miss))
125 Return
126 EndIf
127 Wait(1)
128 Call(GetPlayerActionSuccess, LVar0)
130 CaseGt(FALSE)
140 ExecWait(N(EVS_JumpSupport_NoFollowUp))
141 Return
147 Call(GetActionResult, LVarF)
149 Call(UseBattleCamPreset, BTL_CAM_PLAYER_PRE_JUMP_FINISH)
150 Wait(5)
151 Call(SetGoalToTarget, ACTOR_PLAYER)
152 Call(UseBattleCamPreset, BTL_CAM_PLAYER_JUMP_FINISH)
154 Call(CloseActionCommandInfo)
155 Call(LoadActionCommand, ACTION_COMMAND_JUMP)
156 Call(action_command_jump_init)
157 Call(ShowActionHud, FALSE)
158 Call(action_command_jump_start, 37, 3)
159 Call(SetGoalToTarget, ACTOR_PLAYER)
160 Call(EnablePlayerBlur, ACTOR_BLUR_ENABLE)
161 Call(SetJumpAnimations, ACTOR_PLAYER, 0, ANIM_Mario1_Jump, ANIM_Mario1_Sit, ANIM_Mario1_SpinJump)
162 Call(PlayerSuperJumpToGoal, 20, PLAYER_SUPER_JUMP_4)
163 Wait(7)
164 Call(PlayerSuperJumpToGoal, 3, PLAYER_SUPER_JUMP_5)
165 Call(EnablePlayerBlur, ACTOR_BLUR_RESET)
166 Wait(1)
169 Call(SetActionResult, LVarF)
170 ExecWait(N(EVS_JumpSupport_Rebound))
171 Return
172 End
173};
174
175EvtScript N(EVS_UseMove_Ultra) = {
176 ExecWait(N(EVS_JumpSupport_ApproachAndJump))
177 Call(PlayerTestEnemy, LVar0, DAMAGE_TYPE_JUMP, 0, 0, 1, 0)
179 ExecWait(N(EVS_JumpSupport_Miss))
180 Return
181 EndIf
182 Wait(1)
183 Call(GetPlayerActionSuccess, LVar0)
185 CaseGt(FALSE)
195 ExecWait(N(EVS_JumpSupport_NoFollowUp))
196 Return
202 Call(GetActionResult, LVarF)
204 Call(UseBattleCamPreset, BTL_CAM_PLAYER_PRE_ULTRA_JUMP_FINISH)
205 Wait(5)
206 Call(SetGoalToTarget, ACTOR_PLAYER)
207 Call(UseBattleCamPreset, BTL_CAM_PLAYER_JUMP_FINISH)
209 Call(CloseActionCommandInfo)
210 Call(LoadActionCommand, ACTION_COMMAND_JUMP)
211 Call(action_command_jump_init)
212 Call(ShowActionHud, FALSE)
213 Call(action_command_jump_start, 25, 3)
214 Call(SetGoalToTarget, ACTOR_PLAYER)
215 Call(EnablePlayerBlur, ACTOR_BLUR_ENABLE)
216 Call(SetJumpAnimations, ACTOR_PLAYER, 0, ANIM_Mario1_Jump, ANIM_Mario1_Jump, ANIM_Mario1_SpinFall)
217 Call(PlayerUltraJumpToGoal, 25, PLAYER_ULTRA_JUMP_4)
218 Call(EnablePlayerBlur, ACTOR_BLUR_RESET)
219 Wait(1)
222 Call(SetActionResult, LVarF)
223 ExecWait(N(EVS_JumpSupport_Rebound))
224 Return
225 End
226};
227
228extern EvtScript N(EVS_FirstStrike_Normal);
229extern EvtScript N(EVS_FirstStrike_Super);
230extern EvtScript N(EVS_FirstStrike_Ultra);
231
232EvtScript N(EVS_FirstStrike) = {
233 Call(ShowActionHud, TRUE)
234 Call(GetMenuSelection, LVar0, LVar1, LVar2)
236 CaseEq(0)
237 ExecWait(N(EVS_FirstStrike_Normal))
238 CaseEq(1)
239 ExecWait(N(EVS_FirstStrike_Super))
240 CaseEq(2)
241 ExecWait(N(EVS_FirstStrike_Ultra))
243 Return
244 End
245};
246
247EvtScript N(EVS_FirstStrike_Normal) = {
248 Call(SetGoalToTarget, ACTOR_PLAYER)
249 Call(GetGoalPos, ACTOR_PLAYER, LVar3, LVar4, LVar5)
250 Sub(LVar3, 40)
251 Set(LVar4, 40)
252 Call(SetActorPos, ACTOR_PLAYER, LVar3, LVar4, LVar5)
253 Call(SetGoalToTarget, ACTOR_PLAYER)
254 Call(SetGoalToTarget, ACTOR_PLAYER)
255 Call(UseBattleCamPresetImmediately, BTL_CAM_PLAYER_JUMP_MIDAIR)
256 Call(SetGoalToTarget, ACTOR_PLAYER)
257 Call(GetGoalPos, ACTOR_PLAYER, LVar0, LVar1, LVar2)
258 Call(GetActorPos, ACTOR_PLAYER, LVar3, LVar4, LVar5)
259 Sub(LVar0, LVar3)
260 Sub(LVar0, 20)
261 DivF(LVar0, Float(10.588))
262 AddF(LVar0, 15)
263 Set(LVarA, LVar0)
264 Call(SetGoalToTarget, ACTOR_PLAYER)
265 Call(SetActorJumpGravity, ACTOR_PLAYER, Float(1.0))
266 Call(SetJumpAnimations, ACTOR_PLAYER, 0, ANIM_Mario1_Jump, ANIM_Mario1_Fall, ANIM_MarioB1_Stomp)
267 Call(PlayerBasicJumpToGoal, LVarA, PLAYER_BASIC_JUMP_0)
268 Call(N(GetJumpDamage))
271 ExecWait(N(EVS_JumpSupport_Rebound))
272 Return
273 End
274};
275
276EvtScript N(EVS_FirstStrike_Super) = {
277 Call(SetGoalToTarget, ACTOR_PLAYER)
278 Call(GetGoalPos, ACTOR_PLAYER, LVar3, LVar4, LVar5)
279 Sub(LVar3, 40)
280 Set(LVar4, 40)
281 Call(SetActorPos, ACTOR_PLAYER, LVar3, LVar4, LVar5)
282 Call(SetGoalToTarget, ACTOR_PLAYER)
283 ExecWait(N(EVS_JumpSupport_CalcJumpTime_Alt1))
284 Call(UseBattleCamPreset, BTL_CAM_PLAYER_SUPER_JUMP_MIDAIR)
285 Call(SetGoalToTarget, ACTOR_PLAYER)
286 Call(SetJumpAnimations, ACTOR_PLAYER, 0, ANIM_Mario1_Jump, ANIM_Mario1_Sit, ANIM_Mario1_SpinJump)
287 Call(PlayerSuperJumpToGoal, LVarA, PLAYER_SUPER_JUMP_0)
288 Wait(7)
289 Call(PlayerSuperJumpToGoal, 3, PLAYER_SUPER_JUMP_1)
290 Call(SetGoalToTarget, ACTOR_PLAYER)
291 Call(UseBattleCamPresetImmediately, BTL_CAM_PLAYER_JUMP_MIDAIR)
294 ExecWait(N(EVS_JumpSupport_Rebound))
295 Return
296 End
297};
298
299EvtScript N(EVS_FirstStrike_Ultra) = {
300 Call(SetGoalToTarget, ACTOR_PLAYER)
301 Call(GetGoalPos, ACTOR_PLAYER, LVar3, LVar4, LVar5)
302 Sub(LVar3, 40)
303 Set(LVar4, 40)
304 Call(SetActorPos, ACTOR_PLAYER, LVar3, LVar4, LVar5)
305 Call(SetGoalToTarget, ACTOR_PLAYER)
306 ExecWait(N(EVS_JumpSupport_CalcJumpTime_Alt2))
307 Call(UseBattleCamPreset, BTL_CAM_PLAYER_ULTRA_JUMP_MIDAIR)
308 Call(SetGoalToTarget, ACTOR_PLAYER)
309 Call(SetJumpAnimations, ACTOR_PLAYER, 0, ANIM_Mario1_Jump, ANIM_Mario1_Jump, ANIM_MarioB1_Stomp)
310 Call(PlayerUltraJumpToGoal, LVarA, PLAYER_ULTRA_JUMP_0)
311 Set(LVarA, 4)
312 Call(PlayerUltraJumpToGoal, LVarA, PLAYER_ULTRA_JUMP_1)
315 ExecWait(N(EVS_JumpSupport_Rebound))
316 Return
317 End
318};
319
320extern EvtScript N(EVS_UseBerserker_Normal);
321extern EvtScript N(EVS_UseBerserker_Super);
322extern EvtScript N(EVS_UseBerserker_Ultra);
323
324EvtScript N(EVS_UseBerserker) = {
325 Call(ShowActionHud, TRUE)
326 Call(GetMenuSelection, LVar0, LVar1, LVar2)
328 CaseEq(0)
329 ExecWait(N(EVS_UseBerserker_Normal))
330 CaseEq(1)
331 ExecWait(N(EVS_UseBerserker_Super))
332 CaseEq(2)
333 ExecWait(N(EVS_UseBerserker_Ultra))
335 Return
336 End
337};
338
339EvtScript N(EVS_UseBerserker_Normal) = {
340 ExecWait(N(EVS_JumpSupport_ApproachAndJump))
341 Call(PlayerTestEnemy, LVar0, DAMAGE_TYPE_JUMP, 0, 0, 1, 0)
343 ExecWait(N(EVS_JumpSupport_Miss))
344 Return
345 EndIf
346 Wait(1)
347 Call(GetPlayerActionSuccess, LVar0)
349 CaseGt(FALSE)
359 ExecWait(N(EVS_JumpSupport_NoFollowUp))
360 Return
367 Call(UseBattleCamPreset, BTL_CAM_PLAYER_PRE_JUMP_FINISH)
368 Wait(5)
369 Call(SetGoalToTarget, ACTOR_PLAYER)
370 Call(UseBattleCamPreset, BTL_CAM_PLAYER_JUMP_FINISH)
372 Call(GetActionResult, LVarF)
373 Call(CloseActionCommandInfo)
374 Call(LoadActionCommand, ACTION_COMMAND_JUMP)
375 Call(action_command_jump_init)
376 Call(ShowActionHud, FALSE)
377 Call(action_command_jump_start, 24, 3)
378 Call(SetGoalToTarget, ACTOR_PLAYER)
379 Call(SetJumpAnimations, ACTOR_PLAYER, 0, ANIM_Mario1_Jump, ANIM_Mario1_Fall, ANIM_Mario1_SpinFall)
380 Call(PlayerBasicJumpToGoal, 24, PLAYER_BASIC_JUMP_3)
381 Wait(1)
384 Call(SetActionResult, LVarF)
385 ExecWait(N(EVS_JumpSupport_Rebound))
386 Return
387 End
388};
389
390EvtScript N(EVS_UseBerserker_Super) = {
391 ExecWait(N(EVS_JumpSupport_ApproachAndJump))
392 Call(PlayerTestEnemy, LVar0, DAMAGE_TYPE_JUMP, 0, 0, 1, 0)
394 ExecWait(N(EVS_JumpSupport_Miss))
395 Return
396 EndIf
397 Wait(1)
398 Call(GetPlayerActionSuccess, LVar0)
400 CaseGt(FALSE)
410 ExecWait(N(EVS_JumpSupport_NoFollowUp))
411 Return
417 Call(GetActionResult, LVarF)
419 Call(UseBattleCamPreset, BTL_CAM_PLAYER_PRE_JUMP_FINISH)
420 Wait(5)
421 Call(SetGoalToTarget, ACTOR_PLAYER)
422 Call(UseBattleCamPreset, BTL_CAM_PLAYER_JUMP_FINISH)
424 Call(CloseActionCommandInfo)
425 Call(LoadActionCommand, ACTION_COMMAND_JUMP)
426 Call(action_command_jump_init)
427 Call(ShowActionHud, FALSE)
428 Call(action_command_jump_start, 37, 3)
429 Call(SetGoalToTarget, ACTOR_PLAYER)
430 Call(EnablePlayerBlur, ACTOR_BLUR_ENABLE)
431 Call(SetJumpAnimations, ACTOR_PLAYER, 0, ANIM_Mario1_Jump, ANIM_Mario1_Sit, ANIM_Mario1_SpinJump)
432 Call(PlayerSuperJumpToGoal, 20, PLAYER_SUPER_JUMP_4)
433 Wait(7)
434 Call(PlayerSuperJumpToGoal, 3, PLAYER_SUPER_JUMP_5)
435 Call(EnablePlayerBlur, ACTOR_BLUR_RESET)
436 Wait(1)
439 Call(SetActionResult, LVarF)
440 ExecWait(N(EVS_JumpSupport_Rebound))
441 Return
442 End
443};
444
445EvtScript N(EVS_UseBerserker_Ultra) = {
446 Call(InitTargetIterator)
447 Call(SetGoalToTarget, ACTOR_PLAYER)
448 ExecWait(N(EVS_JumpSupport_ApproachAndJump))
449 Call(PlayerTestEnemy, LVar0, DAMAGE_TYPE_JUMP, 0, 0, 1, 0)
451 ExecWait(N(EVS_JumpSupport_Miss))
452 Return
453 EndIf
454 Wait(1)
455 Call(GetPlayerActionSuccess, LVar0)
457 CaseGt(FALSE)
467 ExecWait(N(EVS_JumpSupport_NoFollowUp))
468 Return
474 Call(GetActionResult, LVarF)
476 Call(UseBattleCamPreset, BTL_CAM_PLAYER_PRE_ULTRA_JUMP_FINISH)
477 Wait(5)
478 Call(SetGoalToTarget, ACTOR_PLAYER)
479 Call(UseBattleCamPreset, BTL_CAM_PLAYER_JUMP_FINISH)
481 Call(CloseActionCommandInfo)
482 Call(LoadActionCommand, ACTION_COMMAND_JUMP)
483 Call(action_command_jump_init)
484 Call(ShowActionHud, FALSE)
485 Call(action_command_jump_start, 25, 3)
486 Call(SetGoalToTarget, ACTOR_PLAYER)
487 Call(EnablePlayerBlur, ACTOR_BLUR_ENABLE)
488 Call(SetJumpAnimations, ACTOR_PLAYER, 0, ANIM_Mario1_Jump, ANIM_Mario1_Jump, ANIM_Mario1_SpinFall)
489 Call(PlayerUltraJumpToGoal, 25, PLAYER_ULTRA_JUMP_4)
490 Call(EnablePlayerBlur, ACTOR_BLUR_RESET)
491 Wait(1)
494 Call(SetActionResult, LVarF)
495 ExecWait(N(EVS_JumpSupport_Rebound))
496 Return
497 End
498};
499
500EvtScript N(EVS_UseMove_Tutorial) = {
501 Call(LoadActionCommand, ACTION_COMMAND_JUMP)
502 Call(action_command_jump_init)
503 ExecWait(N(EVS_JumpSupport_Approach))
504 ExecWait(N(EVS_JumpSupport_CalcJumpTime))
505 Call(action_command_jump_start, LVarA, 3)
506 Call(UseBattleCamPreset, BTL_CAM_PLAYER_JUMP_MIDAIR)
507 Call(SetGoalToTarget, ACTOR_PLAYER)
508 Call(AddGoalPos, ACTOR_PLAYER, -5, 10, 0)
509 Call(SetJumpAnimations, ACTOR_PLAYER, 0, ANIM_Mario1_Jump, ANIM_Mario1_Fall, ANIM_MarioB1_Stomp)
510 Call(PlayerBasicJumpToGoal, LVarA, PLAYER_BASIC_JUMP_0)
511 Call(GetActionCommandMode, LVar0)
512 IfEq(LVar0, 2)
513 Call(SetActionCommandMode, 3)
514 Loop(0)
515 Call(GetActionCommandMode, LVar0)
516 IfLt(LVar0, 2)
518 EndIf
519 Wait(1)
520 EndLoop
521 EndIf
522 Call(PlayerTestEnemy, LVar0, DAMAGE_TYPE_JUMP, 0, 0, 1, 0)
524 ExecWait(N(EVS_JumpSupport_Miss))
525 Return
526 EndIf
527 Call(GetActionCommandMode, LVar0)
528 IfGt(LVar0, 0)
529 Wait(1)
530 EndIf
531 Call(GetPlayerActionSuccess, LVar0)
533 CaseGt(FALSE)
543 ExecWait(N(EVS_JumpSupport_NoFollowUp))
544 Return
551 Call(UseBattleCamPreset, BTL_CAM_PLAYER_PRE_JUMP_FINISH)
552 Wait(5)
553 Call(SetGoalToTarget, ACTOR_PLAYER)
554 Call(UseBattleCamPreset, BTL_CAM_PLAYER_JUMP_FINISH)
556 Call(GetActionResult, LVarF)
557 Call(CloseActionCommandInfo)
558 Call(LoadActionCommand, ACTION_COMMAND_JUMP)
559 Call(action_command_jump_init)
560 Call(ShowActionHud, FALSE)
561 Call(action_command_jump_start, 24, 3)
562 Call(SetGoalToTarget, ACTOR_PLAYER)
563 Call(SetJumpAnimations, ACTOR_PLAYER, 0, ANIM_Mario1_Jump, ANIM_Mario1_Fall, ANIM_Mario1_SpinFall)
564 Call(PlayerBasicJumpToGoal, 24, PLAYER_BASIC_JUMP_3)
565 Wait(1)
568 Call(SetActionResult, LVarF)
569 ExecWait(N(EVS_JumpSupport_Rebound))
570 Return
571 End
572};
@ ACTION_COMMAND_MODE_TUTORIAL_WAIT_INPUT
Definition action_cmd.h:41
@ ACTION_COMMAND_MODE_TUTORIAL
Definition action_cmd.h:40
@ ACTION_COMMAND_MODE_NOT_LEARNED
Definition action_cmd.h:38
Bytecode EvtScript[]
@ ACTION_COMMAND_JUMP
Definition enums.h:3473
@ ACTOR_SOUND_HURT
Definition enums.h:2037
@ BS_FLAGS1_NO_RATING
Definition enums.h:3577
@ BS_FLAGS1_NICE_HIT
Definition enums.h:3576
@ BS_FLAGS1_TRIGGER_EVENTS
Definition enums.h:3575
@ BS_FLAGS1_INCLUDE_POWER_UPS
Definition enums.h:3571
@ PLAYER_ULTRA_JUMP_0
Definition enums.h:4313
@ PLAYER_ULTRA_JUMP_4
Definition enums.h:4317
@ PLAYER_ULTRA_JUMP_1
Definition enums.h:4314
@ PLAYER_SUPER_JUMP_0
Definition enums.h:4303
@ PLAYER_SUPER_JUMP_4
Definition enums.h:4307
@ PLAYER_SUPER_JUMP_1
Definition enums.h:4304
@ PLAYER_SUPER_JUMP_5
Definition enums.h:4308
@ BS_FLAGS2_DOING_JUMP_TUTORIAL
Definition enums.h:3612
@ HIT_RESULT_NO_DAMAGE
Definition enums.h:1952
@ HIT_RESULT_HIT
Definition enums.h:1950
@ HIT_RESULT_NICE_NO_DAMAGE
Definition enums.h:1953
@ HIT_RESULT_NICE
Definition enums.h:1951
@ HIT_RESULT_MISS
Definition enums.h:1956
@ BTL_CAM_PLAYER_PRE_ULTRA_JUMP_FINISH
Definition enums.h:4850
@ BTL_CAM_PLAYER_PRE_JUMP_FINISH
Definition enums.h:4849
@ BTL_CAM_PLAYER_SUPER_JUMP_MIDAIR
Definition enums.h:4859
@ BTL_CAM_PLAYER_JUMP_FINISH
Definition enums.h:4857
@ BTL_CAM_PLAYER_JUMP_MIDAIR
Definition enums.h:4856
@ BTL_CAM_PLAYER_ULTRA_JUMP_MIDAIR
Definition enums.h:4860
@ PLAYER_BASIC_JUMP_3
Definition enums.h:4298
@ PLAYER_BASIC_JUMP_0
Definition enums.h:4295
@ SOUND_ACTOR_JUMPED_2
Definition enums.h:778
@ SOUND_ACTOR_JUMPED_1
Definition enums.h:777
@ SOUND_NONE
Definition enums.h:547
@ SOUND_ACTOR_JUMPED_3
Definition enums.h:779
@ ACTOR_PLAYER
Definition enums.h:2085
@ ACTOR_BLUR_RESET
Definition enums.h:6415
@ ACTOR_BLUR_ENABLE
Definition enums.h:6414
@ DAMAGE_TYPE_JUMP
Definition enums.h:2858
#define ApiStatus_DONE2
Definition evt.h:118
#define Switch(LVAR)
Marks the start of a switch statement.
Definition macros.h:311
#define DivF(VAR, FLOAT_VALUE)
Definition macros.h:386
#define Set(VAR, INT_VALUE)
Sets the given variable to a given value casted to an integer.
Definition macros.h:365
#define AddF(VAR, FLOAT_VALUE)
Definition macros.h:383
#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:319
#define EndChildThread
Marks the end of a child thread block.
Definition macros.h:563
#define Sub(VAR, INT_VALUE)
Definition macros.h:377
#define LVarF
Definition macros.h:163
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
Definition macros.h:213
#define EndLoop
Marks the end of a loop.
Definition macros.h:248
#define EndCaseGroup
Marks the end of a switch case group (CaseOrEq and/or CaseAndEq), stopping fallthrough.
Definition macros.h:352
#define IfGt(LVAR, RVAR)
Marks the beginning of an if statement that only executes if LVAR <= RVAR.
Definition macros.h:278
#define IfLt(LVAR, RVAR)
Marks the beginning of an if statement that only executes if LVAR < RVAR.
Definition macros.h:275
#define Float(DOUBLE)
Definition macros.h:51
#define CaseOrEq(RVAR)
Marks the start of a switch case that executes only if LVAR == RVAR.
Definition macros.h:341
#define EndIf
Marks the end of an if statement or an else block.
Definition macros.h:298
#define LVar5
Definition macros.h:153
#define CaseDefault
Marks the start of a switch case that executes unconditionally. It also marks the end of any previous...
Definition macros.h:337
#define ExecWait(EVT_SOURCE)
Launches a new child thread.
Definition macros.h:475
#define BreakLoop
Breaks out of the innermost loop.
Definition macros.h:251
#define IfFlag(LVAR, RVAR)
Marks the beginning of an if statement that only executes if the RVAR flag is set on LVAR,...
Definition macros.h:288
#define LVar2
Definition macros.h:150
#define LVar1
Definition macros.h:149
#define LVarA
Definition macros.h:158
#define Wait(NUM_FRAMES)
Blocks for the given number of frames.
Definition macros.h:254
#define EndSwitch
Marks the end of a switch statement and any case.
Definition macros.h:362
#define IfEq(LVAR, RVAR)
Marks the beginning of an if statement that only executes if LVAR == RVAR.
Definition macros.h:269
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
Definition macros.h:576
#define ChildThread
Marks the start of a child thread block.
Definition macros.h:560
#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:328
#define Loop(TIMES)
Marks the beginning of a loop.
Definition macros.h:245
#define LVar4
Definition macros.h:152
#define LVar3
Definition macros.h:151
#define LVar0
Definition macros.h:148
#define Return
Kills the current EVT thread.
Definition macros.h:217
PlayerData gPlayerData
Definition 77480.c:40