Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
green_magikoopa.inc.c
Go to the documentation of this file.
1
2#include "battle/battle.h"
3#include "script_api/battle.h"
4#include "effects.h"
5#include "sprite/npc/Magikoopa.h"
6#include "sprite/npc/FlyingMagikoopa.h"
7
8#define NAMESPACE A(green_magikoopa)
9
10extern EvtScript N(EVS_Init);
11extern EvtScript N(EVS_Init_Flying);
12extern EvtScript N(EVS_Idle);
13extern EvtScript N(EVS_HandleEvent);
14extern EvtScript N(EVS_TakeTurn);
15extern EvtScript N(EVS_Flee);
16
17extern s32 N(GroundAnims)[];
18extern s32 N(FlyingAnims)[];
19extern s32 N(BroomAnims)[];
20
21enum N(ActorPartIDs) {
22 PRT_GROUND = 1,
23 PRT_FLYING = 2,
24 PRT_BROOM = 3,
25};
26
27enum N(ActorVars) {
28 AVAR_ShouldKnockDown = 0,
29};
30
31enum N(ActorParams) {
32 DMG_MAGIC_BLAST = 3,
33 DMG_WAND_STRIKE = 3,
34};
35
36s32 N(DefenseTable)[] = {
39};
40
41s32 N(FlyingDefense)[] = {
44};
45
46s32 N(StatusTable)[] = {
69};
70
71s32 N(FlyingStatusTable)[] = {
94};
95
96ActorPartBlueprint N(GroundParts)[] = {
97 {
99 .index = PRT_GROUND,
100 .posOffset = { 0, 0, 0 },
101 .targetOffset = { 2, 35 },
102 .opacity = 255,
103 .idleAnimations = N(GroundAnims),
104 .defenseTable = N(DefenseTable),
105 .eventFlags = 0,
106 .elementImmunityFlags = 0,
107 .projectileTargetOffset = { -5, -12 },
108 },
109};
110
111ActorPartBlueprint N(FlyingParts)[] = {
112 {
114 .index = PRT_GROUND,
115 .posOffset = { 0, 0, 0 },
116 .targetOffset = { 2, 35 },
117 .opacity = 255,
118 .idleAnimations = N(GroundAnims),
119 .defenseTable = N(FlyingDefense),
120 .eventFlags = 0,
121 .elementImmunityFlags = 0,
122 .projectileTargetOffset = { -5, -12 },
123 },
124 {
126 .index = PRT_FLYING,
127 .posOffset = { 0, 0, 0 },
128 .targetOffset = { -10, 35 },
129 .opacity = 255,
130 .idleAnimations = N(FlyingAnims),
131 .defenseTable = N(FlyingDefense),
133 .elementImmunityFlags = 0,
134 .projectileTargetOffset = { 0, -8 },
135 },
136 {
138 .index = PRT_BROOM,
139 .posOffset = { 0, 0, 0 },
140 .targetOffset = { 0, 0 },
141 .opacity = 255,
142 .idleAnimations = N(BroomAnims),
143 .defenseTable = N(FlyingDefense),
144 .eventFlags = 0,
145 .elementImmunityFlags = 0,
146 .projectileTargetOffset = { 0, 0 },
147 },
148};
149
150ActorBlueprint NAMESPACE = {
151 .flags = 0,
152 .type = ACTOR_TYPE_GREEN_MAGIKOOPA,
153 .level = ACTOR_LEVEL_GREEN_MAGIKOOPA,
154 .maxHP = 11,
155 .partCount = ARRAY_COUNT(N(GroundParts)),
156 .partsData = N(GroundParts),
157 .initScript = &N(EVS_Init),
158 .statusTable = N(StatusTable),
159 .escapeChance = 40,
160 .airLiftChance = 80,
161 .hurricaneChance = 70,
162 .spookChance = 40,
163 .upAndAwayChance = 95,
164 .spinSmashReq = 0,
165 .powerBounceChance = 75,
166 .coinReward = 2,
167 .size = { 36, 40 },
168 .healthBarOffset = { 0, 0 },
169 .statusIconOffset = { -10, 20 },
170 .statusTextOffset = { 10, 32 },
171};
172
173ActorBlueprint N(flying) = {
174 .flags = ACTOR_FLAG_FLYING,
175 .type = ACTOR_TYPE_FLYING_GREEN_MAGIKOOPA,
176 .level = ACTOR_LEVEL_FLYING_GREEN_MAGIKOOPA,
177 .maxHP = 11,
178 .partCount = ARRAY_COUNT(N(FlyingParts)),
179 .partsData = N(FlyingParts),
180 .initScript = &N(EVS_Init_Flying),
181 .statusTable = N(FlyingStatusTable),
182 .escapeChance = 40,
183 .airLiftChance = 95,
184 .hurricaneChance = 75,
185 .spookChance = 40,
186 .upAndAwayChance = 95,
187 .spinSmashReq = 0,
188 .powerBounceChance = 75,
189 .coinReward = 2,
190 .size = { 48, 40 },
191 .healthBarOffset = { 0, 0 },
192 .statusIconOffset = { -25, 20 },
193 .statusTextOffset = { 1, 34 },
194};
195
196s32 N(GroundAnims)[] = {
197 STATUS_KEY_NORMAL, ANIM_Magikoopa_Green_Anim01,
198 STATUS_KEY_STONE, ANIM_Magikoopa_Green_Anim00,
199 STATUS_KEY_SLEEP, ANIM_Magikoopa_Green_Anim08,
200 STATUS_KEY_POISON, ANIM_Magikoopa_Green_Anim01,
201 STATUS_KEY_STOP, ANIM_Magikoopa_Green_Anim00,
202 STATUS_KEY_STATIC, ANIM_Magikoopa_Green_Anim01,
203 STATUS_KEY_PARALYZE, ANIM_Magikoopa_Green_Anim00,
204 STATUS_KEY_DIZZY, ANIM_Magikoopa_Green_Anim07,
205 STATUS_KEY_FEAR, ANIM_Magikoopa_Green_Anim07,
207};
208
209s32 N(FlyingAnims)[] = {
210 STATUS_KEY_NORMAL, ANIM_FlyingMagikoopa_Green_Anim01,
211 STATUS_KEY_STONE, ANIM_FlyingMagikoopa_Green_Anim00,
212 STATUS_KEY_SLEEP, ANIM_FlyingMagikoopa_Green_Anim08,
213 STATUS_KEY_POISON, ANIM_FlyingMagikoopa_Green_Anim01,
214 STATUS_KEY_STOP, ANIM_FlyingMagikoopa_Green_Anim00,
215 STATUS_KEY_STATIC, ANIM_FlyingMagikoopa_Green_Anim01,
216 STATUS_KEY_PARALYZE, ANIM_FlyingMagikoopa_Green_Anim00,
217 STATUS_KEY_DIZZY, ANIM_FlyingMagikoopa_Green_Anim07,
218 STATUS_KEY_FEAR, ANIM_FlyingMagikoopa_Green_Anim07,
220};
221
222s32 N(BroomAnims)[] = {
223 STATUS_KEY_NORMAL, ANIM_FlyingMagikoopa_Green_Anim0A,
225};
226
227EvtScript N(EVS_Idle) = {
228 Return
229 End
230};
231
237
238EvtScript N(EVS_HandleEvent) = {
239 Call(UseIdleAnimation, ACTOR_SELF, FALSE)
240 Call(EnableIdleScript, ACTOR_SELF, IDLE_SCRIPT_DISABLE)
241 Call(GetLastEvent, ACTOR_SELF, LVar0)
245 SetConst(LVar0, PRT_GROUND)
246 SetConst(LVar1, ANIM_Magikoopa_Green_Anim04)
250 SetConst(LVar0, PRT_GROUND)
251 SetConst(LVar1, ANIM_Magikoopa_Green_Anim05)
252 SetConst(LVar2, ANIM_Magikoopa_Green_Anim06)
255 SetConst(LVar0, PRT_GROUND)
256 SetConst(LVar1, ANIM_Magikoopa_Green_Anim05)
257 SetConst(LVar2, ANIM_Magikoopa_Green_Anim06)
259 SetConst(LVar0, PRT_GROUND)
260 SetConst(LVar1, ANIM_Magikoopa_Green_Anim06)
262 Return
264 SetConst(LVar0, PRT_GROUND)
265 SetConst(LVar1, ANIM_Magikoopa_Green_Anim04)
268 SetConst(LVar0, PRT_GROUND)
269 SetConst(LVar1, ANIM_Magikoopa_Green_Anim04)
271 SetConst(LVar0, PRT_GROUND)
272 SetConst(LVar1, ANIM_Magikoopa_Green_Anim04)
274 Return
278 SetConst(LVar0, PRT_GROUND)
279 SetConst(LVar1, ANIM_Magikoopa_Green_Anim01)
283 SetConst(LVar0, PRT_GROUND)
284 SetConst(LVar1, ANIM_Magikoopa_Green_Anim04)
286 Wait(10)
287 SetConst(LVar0, PRT_GROUND)
288 SetConst(LVar1, ANIM_Magikoopa_Green_Anim04)
290 Return
292 SetConst(LVar0, PRT_GROUND)
293 SetConst(LVar1, ANIM_Magikoopa_Green_Anim01)
296 Call(SetAnimation, ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Green_Anim04)
297 Call(SetActorJumpGravity, ACTOR_SELF, Float(1.5))
298 Call(GetActorPos, ACTOR_SELF, LVar0, LVar1, LVar2)
299 Call(SetGoalPos, ACTOR_SELF, LVar0, LVar1, LVar2)
300 Call(JumpToGoal, ACTOR_SELF, 15, FALSE, TRUE, FALSE)
301 Wait(15)
302 Call(SetAnimation, ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Green_Anim02)
303 ExecWait(N(EVS_Flee))
304 Return
306 SetConst(LVar0, PRT_GROUND)
307 SetConst(LVar1, ANIM_Magikoopa_Green_Anim02)
310 Call(GetStatusFlags, ACTOR_SELF, LVar0)
313 Call(SetPartDispOffset, ACTOR_SELF, PRT_GROUND, 0, 2, 0)
314 Else
315 Call(SetPartDispOffset, ACTOR_SELF, PRT_GROUND, -4, 5, 0)
316 EndIf
317 EndIf
318 SetConst(LVar0, PRT_GROUND)
319 SetConst(LVar1, ANIM_Magikoopa_Green_Anim04)
321 Return
324 Call(EnableIdleScript, ACTOR_SELF, IDLE_SCRIPT_ENABLE)
325 Call(UseIdleAnimation, ACTOR_SELF, TRUE)
326 Return
327 End
328};
329
330EvtScript N(EVS_KnockDownCheck) = {
331 Call(GetBattleFlags, LVar0)
334 Call(SetActorVar, ACTOR_SELF, AVAR_ShouldKnockDown, TRUE)
335 EndIf
336 Else
337 Call(N(GetSelectedMoveID), LVar0)
339 CaseOrEq(MOVE_HEADBONK1)
340 CaseOrEq(MOVE_HEADBONK2)
341 CaseOrEq(MOVE_HEADBONK3)
342 CaseOrEq(MOVE_MULTIBONK)
343 Call(GetBattleFlags, LVar0)
345 Call(SetActorVar, ACTOR_SELF, AVAR_ShouldKnockDown, TRUE)
346 EndIf
349 EndIf
350 Return
351 End
352};
353
354EvtScript N(EVS_KnockDown) = {
355 Call(GetActorVar, ACTOR_SELF, AVAR_ShouldKnockDown, LVar0)
356 IfEq(LVar0, TRUE)
357 Call(SetAnimation, ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Green_Anim04)
358 Goto(0)
359 EndIf
360 Call(GetLastElement, LVar0)
362 Call(SetAnimation, ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Green_Anim04)
363 Goto(0)
364 EndIf
365 Return
366 Label(0)
367 Call(HideHealthBar, ACTOR_SELF)
368 Call(GetStatusFlags, ACTOR_SELF, LVar0)
370 Call(SetPartScale, ACTOR_SELF, PRT_BROOM, Float(0.4), Float(0.4), Float(0.4))
371 EndIf
372 Call(SetPartFlagBits, ACTOR_SELF, PRT_GROUND, ACTOR_PART_FLAG_PRIMARY_TARGET, TRUE)
373 Call(SetPartFlagBits, ACTOR_SELF, PRT_GROUND, ACTOR_PART_FLAG_INVISIBLE | ACTOR_PART_FLAG_NO_TARGET, FALSE)
374 Call(SetPartFlagBits, ACTOR_SELF, PRT_FLYING, ACTOR_PART_FLAG_INVISIBLE | ACTOR_PART_FLAG_NO_TARGET, TRUE)
375 Call(SetPartFlagBits, ACTOR_SELF, PRT_FLYING, ACTOR_PART_FLAG_PRIMARY_TARGET, FALSE)
376 Call(SetPartFlagBits, ACTOR_SELF, PRT_BROOM, ACTOR_PART_FLAG_USE_ABSOLUTE_POSITION, TRUE)
377 Call(SetPartFlagBits, ACTOR_SELF, PRT_BROOM, ACTOR_PART_FLAG_INVISIBLE, FALSE)
378 Call(GetActorPos, ACTOR_SELF, LVar0, LVar1, LVar2)
379 Sub(LVar2, 1)
380 Call(SetPartPos, ACTOR_SELF, PRT_BROOM, LVar0, LVar1, LVar2)
381 Call(PlaySoundAtActor, ACTOR_SELF, SOUND_FALL_QUICK)
382 Call(GetActorPos, ACTOR_SELF, LVar0, LVar1, LVar2)
383 Set(LVar1, 0)
384 Call(SetActorJumpGravity, ACTOR_SELF, Float(0.8))
385 Call(SetGoalPos, ACTOR_SELF, LVar0, LVar1, LVar2)
386 Call(JumpToGoal, ACTOR_SELF, 15, FALSE, TRUE, FALSE)
387 Call(N(StartRumbleWithParams), 150, 10)
388 Thread
389 Call(ShakeCam, CAM_BATTLE, 0, 5, Float(0.7))
391 Call(GetLastEvent, ACTOR_SELF, LVar3)
393 Call(SetAnimation, ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Green_Anim04)
394 Call(GetActorPos, ACTOR_SELF, LVar3, LVar4, LVar5)
395 Add(LVar4, 10)
396 Add(LVar5, 5)
397 PlayEffect(EFFECT_SMOKE_BURST, 0, LVar3, LVar4, LVar5, Float(1.0), 10, 0)
398 EndIf
399 Call(SetGoalPos, ACTOR_SELF, LVar0, LVar1, LVar2)
400 Call(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
401 Call(SetGoalPos, ACTOR_SELF, LVar0, LVar1, LVar2)
402 Call(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
403 Loop(20)
404 Call(SetPartFlagBits, ACTOR_SELF, PRT_BROOM, ACTOR_PART_FLAG_INVISIBLE, TRUE)
405 Wait(1)
406 Call(SetPartFlagBits, ACTOR_SELF, PRT_BROOM, ACTOR_PART_FLAG_INVISIBLE, FALSE)
407 Wait(1)
408 EndLoop
409 Call(SetPartFlagBits, ACTOR_SELF, PRT_BROOM, ACTOR_PART_FLAG_INVISIBLE, TRUE)
410 Call(SetAnimation, ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Green_Anim01)
411 Call(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLYING, FALSE)
412 Call(BindHandleEvent, ACTOR_SELF, Ref(N(EVS_HandleEvent)))
413 Call(SetActorType, ACTOR_SELF, ACTOR_TYPE_GREEN_MAGIKOOPA)
414 Call(SetStatusTable, ACTOR_SELF, Ref(N(StatusTable)))
415 Call(N(SetAbsoluteStatusOffsets), -10, 20, 10, 32)
416 Call(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_TYPE_CHANGED, TRUE)
417 Call(ResetAllActorSounds, ACTOR_SELF)
418 Call(GetIndexFromPos, ACTOR_SELF, LVar0)
419 Mod(LVar0, 4)
420 Call(SetGoalToIndex, ACTOR_SELF, LVar0)
421 Call(SetActorSpeed, ACTOR_SELF, Float(4.0))
422 Call(RunToGoal, ACTOR_SELF, 0, FALSE)
423 Call(GetGoalPos, ACTOR_SELF, LVar0, LVar1, LVar2)
424 Call(ForceHomePos, ACTOR_SELF, LVar0, LVar1, LVar2)
425 Call(HPBarToHome, ACTOR_SELF)
426 Return
427 End
428};
429
430EvtScript N(EVS_HandleEvent_Flying) = {
431 Call(UseIdleAnimation, ACTOR_SELF, FALSE)
432 Call(EnableIdleScript, ACTOR_SELF, IDLE_SCRIPT_DISABLE)
433 Call(GetLastEvent, ACTOR_SELF, LVar0)
436 ExecWait(N(EVS_KnockDownCheck))
437 SetConst(LVar0, PRT_FLYING)
438 SetConst(LVar1, ANIM_FlyingMagikoopa_Green_Anim04)
442 ExecWait(N(EVS_KnockDownCheck))
443 SetConst(LVar0, PRT_FLYING)
444 SetConst(LVar1, ANIM_FlyingMagikoopa_Green_Anim04)
446 ExecWait(N(EVS_KnockDown))
450 ExecWait(N(EVS_KnockDownCheck))
451 SetConst(LVar0, PRT_FLYING)
452 SetConst(LVar1, ANIM_FlyingMagikoopa_Green_Anim05)
453 SetConst(LVar2, ANIM_FlyingMagikoopa_Green_Anim06)
455 ExecWait(N(EVS_KnockDown))
458 SetConst(LVar0, PRT_FLYING)
459 SetConst(LVar1, ANIM_FlyingMagikoopa_Green_Anim05)
460 SetConst(LVar2, ANIM_FlyingMagikoopa_Green_Anim06)
462 SetConst(LVar0, PRT_FLYING)
463 SetConst(LVar1, ANIM_FlyingMagikoopa_Green_Anim06)
465 Return
467 SetConst(LVar0, PRT_FLYING)
468 SetConst(LVar1, ANIM_FlyingMagikoopa_Green_Anim04)
471 SetConst(LVar0, PRT_FLYING)
472 SetConst(LVar1, ANIM_FlyingMagikoopa_Green_Anim04)
474 SetConst(LVar0, PRT_FLYING)
475 SetConst(LVar1, ANIM_FlyingMagikoopa_Green_Anim04)
477 Return
481 SetConst(LVar0, PRT_FLYING)
482 SetConst(LVar1, ANIM_FlyingMagikoopa_Green_Anim01)
486 SetConst(LVar0, PRT_FLYING)
487 SetConst(LVar1, ANIM_FlyingMagikoopa_Green_Anim04)
489 Wait(10)
490 SetConst(LVar0, PRT_FLYING)
491 SetConst(LVar1, ANIM_FlyingMagikoopa_Green_Anim04)
493 Return
495 Call(SetActorPos, ACTOR_SELF, 20, 0, 0)
496 Call(HPBarToCurrent, ACTOR_SELF)
498 Call(SetAnimation, ACTOR_SELF, PRT_FLYING, ANIM_FlyingMagikoopa_Green_Anim01)
499 Call(SetGoalToHome, ACTOR_SELF)
500 Call(SetActorSpeed, ACTOR_SELF, Float(4.0))
501 Call(FlyToGoal, ACTOR_SELF, 0, 1, EASING_LINEAR)
502 Call(SetAnimation, ACTOR_SELF, PRT_FLYING, ANIM_FlyingMagikoopa_Green_Anim01)
503 Call(HPBarToHome, ACTOR_SELF)
505 SetConst(LVar0, PRT_FLYING)
506 SetConst(LVar1, ANIM_FlyingMagikoopa_Green_Anim01)
509 Call(SetAnimation, ACTOR_SELF, PRT_FLYING, ANIM_FlyingMagikoopa_Green_Anim04)
510 Call(SetActorJumpGravity, ACTOR_SELF, Float(1.5))
511 Call(GetActorPos, ACTOR_SELF, LVar0, LVar1, LVar2)
512 Call(SetGoalPos, ACTOR_SELF, LVar0, LVar1, LVar2)
513 Call(JumpToGoal, ACTOR_SELF, 15, FALSE, TRUE, FALSE)
514 Wait(15)
515 Call(SetAnimation, ACTOR_SELF, PRT_FLYING, ANIM_FlyingMagikoopa_Green_Anim02)
516 ExecWait(N(EVS_Flee))
517 Return
519 SetConst(LVar0, PRT_FLYING)
520 SetConst(LVar1, ANIM_FlyingMagikoopa_Green_Anim02)
523 Call(GetStatusFlags, ACTOR_SELF, LVar0)
526 Call(SetPartDispOffset, ACTOR_SELF, PRT_FLYING, -3, 0, 0)
527 Else
528 Call(SetPartDispOffset, ACTOR_SELF, PRT_FLYING, -15, 0, 0)
529 EndIf
530 EndIf
531 SetConst(LVar0, PRT_FLYING)
532 SetConst(LVar1, ANIM_FlyingMagikoopa_Green_Anim04)
534 Return
537 Call(EnableIdleScript, ACTOR_SELF, IDLE_SCRIPT_ENABLE)
538 Call(UseIdleAnimation, ACTOR_SELF, TRUE)
539 Return
540 End
541};
542
543EvtScript N(EVS_Attack_MagicBlast) = {
544 Call(UseIdleAnimation, ACTOR_SELF, FALSE)
545 Call(EnableIdleScript, ACTOR_SELF, IDLE_SCRIPT_DISABLE)
546 Call(SetTargetActor, ACTOR_SELF, ACTOR_PLAYER)
547 Call(GetBattlePhase, LVar0)
549 Call(UseBattleCamPreset, BTL_CAM_DEFAULT)
550 Call(MoveBattleCamOver, 1)
551 Else
552 Call(UseBattleCamPreset, BTL_CAM_DEFAULT)
553 Call(MoveBattleCamOver, 10)
554 EndIf
555 Call(PlaySoundAtActor, ACTOR_SELF, SOUND_SPELL_CAST1)
556 Call(GetActorPos, ACTOR_SELF, LVar0, LVar1, LVar2)
557 Call(GetStatusFlags, ACTOR_SELF, LVarA)
559 Sub(LVar0, 12)
560 Add(LVar1, 14)
561 Else
562 Sub(LVar0, 30)
563 Add(LVar1, 36)
564 EndIf
565 PlayEffect(EFFECT_GATHER_MAGIC, 0, LVar0, LVar1, LVar2, Float(0.5), 30, 0)
566 Call(SetAnimation, ACTOR_SELF, PRT_FLYING, ANIM_FlyingMagikoopa_Green_Anim02)
567 Wait(30)
568 Call(EnemyTestTarget, ACTOR_SELF, LVar0, 0, 0, 1, BS_FLAGS1_INCLUDE_POWER_UPS)
572 Set(LVarA, LVar0)
573 Call(PlaySoundAtActor, ACTOR_SELF, SOUND_SPELL_CAST2)
574 Call(SetAnimation, ACTOR_SELF, PRT_FLYING, ANIM_FlyingMagikoopa_Green_Anim03)
575 Wait(5)
576 Call(GetActorPos, ACTOR_SELF, LVar0, LVar1, LVar2)
577 Call(GetStatusFlags, ACTOR_SELF, LVar9)
579 Sub(LVar0, 8)
580 Add(LVar1, 8)
581 Else
582 Sub(LVar0, 20)
583 Add(LVar1, 20)
584 EndIf
585 Call(SetGoalToTarget, ACTOR_SELF)
586 Call(GetGoalPos, ACTOR_SELF, LVar3, LVar4, LVar5)
587 Sub(LVar3, 50)
588 Set(LVar4, 0)
589 Call(N(ShrinkActor), LVar0, LVar1, LVar5, LVar3, LVar4, LVar5, 25)
590 Wait(50)
592 Call(EnemyTestTarget, ACTOR_SELF, LVar0, DAMAGE_TYPE_TRIGGER_LUCKY, 0, 0, 0)
593 EndIf
594 Wait(14)
595 Call(YieldTurn)
596 Call(AddActorDecoration, ACTOR_SELF, PRT_FLYING, 0, ACTOR_DECORATION_SWEAT)
597 Wait(30)
598 Call(RemoveActorDecoration, ACTOR_SELF, PRT_FLYING, 0)
599 Call(EnableIdleScript, ACTOR_SELF, IDLE_SCRIPT_ENABLE)
600 Call(UseIdleAnimation, ACTOR_SELF, TRUE)
601 Return
604 Call(PlaySoundAtActor, ACTOR_SELF, SOUND_SPELL_CAST2)
605 Call(SetAnimation, ACTOR_SELF, PRT_FLYING, ANIM_FlyingMagikoopa_Green_Anim03)
606 Wait(5)
607 Call(GetActorPos, ACTOR_SELF, LVar0, LVar1, LVar2)
608 Call(GetStatusFlags, ACTOR_SELF, LVarA)
610 Sub(LVar0, 8)
611 Add(LVar1, 8)
612 Else
613 Sub(LVar0, 20)
614 Add(LVar1, 20)
615 EndIf
616 Call(SetGoalToTarget, ACTOR_SELF)
617 Call(GetGoalPos, ACTOR_SELF, LVar3, LVar4, LVar5)
618 Sub(LVar3, 10)
619 Call(N(ShrinkActor), LVar0, LVar1, LVar5, LVar3, LVar4, LVar5, 20)
620 Wait(18)
621 Wait(2)
622 Call(EnemyDamageTarget, ACTOR_SELF, LVar0, DAMAGE_TYPE_MAGIC | DAMAGE_TYPE_NO_CONTACT, 0, 0, DMG_MAGIC_BLAST, BS_FLAGS1_TRIGGER_EVENTS)
626 Wait(19)
627 Call(YieldTurn)
630 Call(EnableIdleScript, ACTOR_SELF, IDLE_SCRIPT_ENABLE)
631 Call(UseIdleAnimation, ACTOR_SELF, TRUE)
632 Return
633 End
634};
635
636EvtScript N(EVS_Attack_WandStrike) = {
637 Call(UseIdleAnimation, ACTOR_SELF, FALSE)
638 Call(EnableIdleScript, ACTOR_SELF, IDLE_SCRIPT_DISABLE)
639 Call(SetTargetActor, ACTOR_SELF, ACTOR_PLAYER)
640 Call(UseBattleCamPreset, BTL_CAM_ENEMY_APPROACH)
641 Call(BattleCamTargetActor, ACTOR_SELF)
642 Call(SetBattleCamTargetingModes, BTL_CAM_YADJ_TARGET, BTL_CAM_XADJ_AVG, FALSE)
643 Call(PlaySoundAtActor, ACTOR_SELF, SOUND_MAGIKOOPA_VANISH)
644 Thread
645 Call(SetAnimation, ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Green_Anim02)
646 Set(LVar0, 200)
647 Loop(20)
648 Sub(LVar0, 10)
649 Call(SetPartAlpha, ACTOR_SELF, PRT_GROUND, LVar0)
650 Wait(1)
651 EndLoop
653 Wait(10)
654 Call(SetGoalToTarget, ACTOR_SELF)
655 Call(GetGoalPos, ACTOR_SELF, LVar0, LVar1, LVar2)
656 Call(GetStatusFlags, ACTOR_SELF, LVarA)
658 Add(LVar0, 5)
659 Else
660 Add(LVar0, 25)
661 EndIf
662 Set(LVar1, 0)
663 Call(SetGoalPos, ACTOR_SELF, LVar0, LVar1, LVar2)
664 Call(FlyToGoal, ACTOR_SELF, 30, 0, EASING_COS_IN_OUT)
665 Set(LVar0, 55)
666 Loop(20)
667 Add(LVar0, 10)
668 Call(SetPartAlpha, ACTOR_SELF, PRT_GROUND, LVar0)
669 Wait(1)
670 EndLoop
671 Call(SetPartAlpha, ACTOR_SELF, PRT_GROUND, 255)
672 Call(SetAnimation, ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Green_Anim03)
673 Wait(11)
675 Call(EnemyTestTarget, ACTOR_SELF, LVar0, 0, 0, 1, BS_FLAGS1_INCLUDE_POWER_UPS)
679 Set(LVarA, LVar0)
680 Call(UseBattleCamPreset, BTL_CAM_DEFAULT)
682 Call(EnemyTestTarget, ACTOR_SELF, LVar0, DAMAGE_TYPE_TRIGGER_LUCKY, 0, 0, 0)
683 EndIf
684 Wait(15)
685 Set(LVar0, 200)
686 Loop(20)
687 Sub(LVar0, 10)
688 Call(SetPartAlpha, ACTOR_SELF, PRT_GROUND, LVar0)
689 Wait(1)
690 EndLoop
691 Call(YieldTurn)
692 Call(SetGoalToHome, ACTOR_SELF)
693 Call(SetAnimation, ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Green_Anim01)
694 Call(FlyToGoal, ACTOR_SELF, 30, 0, EASING_COS_IN_OUT)
695 Set(LVar0, 55)
696 Loop(20)
697 Add(LVar0, 10)
698 Call(SetPartAlpha, ACTOR_SELF, PRT_GROUND, LVar0)
699 Wait(1)
700 EndLoop
701 Call(SetPartAlpha, ACTOR_SELF, PRT_GROUND, 255)
702 Call(EnableIdleScript, ACTOR_SELF, IDLE_SCRIPT_ENABLE)
703 Call(UseIdleAnimation, ACTOR_SELF, TRUE)
704 Return
707 Call(SetGoalToTarget, ACTOR_SELF)
708 Wait(2)
709 Call(EnemyDamageTarget, ACTOR_SELF, LVar0, DAMAGE_TYPE_NO_CONTACT, 0, 0, DMG_WAND_STRIKE, BS_FLAGS1_TRIGGER_EVENTS)
713 Call(UseBattleCamPreset, BTL_CAM_DEFAULT)
714 Wait(10)
715 Set(LVar0, 200)
716 Loop(20)
717 Sub(LVar0, 10)
718 Call(SetPartAlpha, ACTOR_SELF, PRT_GROUND, LVar0)
719 Wait(1)
720 EndLoop
721 Call(YieldTurn)
722 Call(SetGoalToHome, ACTOR_SELF)
723 Call(SetAnimation, ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Green_Anim01)
724 Call(FlyToGoal, ACTOR_SELF, 20, 0, EASING_COS_IN_OUT)
725 Set(LVar0, 55)
726 Loop(20)
727 Add(LVar0, 10)
728 Call(SetPartAlpha, ACTOR_SELF, PRT_GROUND, LVar0)
729 Wait(1)
730 EndLoop
731 Call(SetPartAlpha, ACTOR_SELF, PRT_GROUND, 255)
734 Call(EnableIdleScript, ACTOR_SELF, IDLE_SCRIPT_ENABLE)
735 Call(UseIdleAnimation, ACTOR_SELF, TRUE)
736 Return
737 End
738};
739
740EvtScript N(EVS_Flee) = {
741 Call(UseIdleAnimation, ACTOR_SELF, FALSE)
742 Call(EnableIdleScript, ACTOR_SELF, IDLE_SCRIPT_DISABLE)
743 Call(HideHealthBar, ACTOR_SELF)
744 Call(GetLastEvent, ACTOR_SELF, LVar0)
746 Call(UseBattleCamPreset, BTL_CAM_ACTOR)
747 Call(BattleCamTargetActor, ACTOR_SELF)
748 Call(MoveBattleCamOver, 15)
749 Wait(15)
750 Call(UseBattleCamPreset, BTL_CAM_INTERRUPT)
751 EndIf
752 Call(SetActorSpeed, ACTOR_SELF, Float(1.0))
753 Call(GetActorPos, ACTOR_SELF, LVar0, LVar1, LVar2)
754 Add(LVar0, 20)
755 Call(SetGoalPos, ACTOR_SELF, LVar0, LVar1, LVar2)
756 Call(RunToGoal, ACTOR_SELF, 0, FALSE)
757 Wait(10)
758 Call(SetActorYaw, ACTOR_SELF, 180)
759 Call(EnableActorBlur, ACTOR_SELF, ACTOR_BLUR_ENABLE)
760 Call(SetActorSpeed, ACTOR_SELF, Float(10.0))
761 Call(GetActorPos, ACTOR_SELF, LVar0, LVar1, LVar2)
762 Add(LVar0, 200)
763 Call(SetGoalPos, ACTOR_SELF, LVar0, LVar1, LVar2)
764 Call(RunToGoal, ACTOR_SELF, 0, FALSE)
765 Call(YieldTurn)
766 Call(UseBattleCamPreset, BTL_CAM_DEFAULT)
768 Call(HideHealthBar, ACTOR_SELF)
769 Call(RemoveActor, ACTOR_SELF)
770 Return
771 End
772};
773
774EvtScript N(EVS_Init) = {
775 Call(BindIdle, ACTOR_SELF, Ref(N(EVS_Idle)))
776 Call(BindTakeTurn, ACTOR_SELF, Ref(N(EVS_TakeTurn)))
777 Call(BindHandleEvent, ACTOR_SELF, Ref(N(EVS_HandleEvent)))
779 IfEq(LVar0, 0)
781 EndIf
782 Call(SetActorVar, ACTOR_SELF, AVAR_ShouldKnockDown, FALSE)
783 Return
784 End
785};
786
787EvtScript N(EVS_Init_Flying) = {
788 Call(BindIdle, ACTOR_SELF, Ref(N(EVS_Idle)))
789 Call(BindTakeTurn, ACTOR_SELF, Ref(N(EVS_TakeTurn)))
790 Call(BindHandleEvent, ACTOR_SELF, Ref(N(EVS_HandleEvent_Flying)))
792 IfEq(LVar0, 0)
794 EndIf
795 Call(SetActorVar, ACTOR_SELF, AVAR_ShouldKnockDown, FALSE)
796 Return
797 End
798};
799
800EvtScript N(EVS_TakeTurn) = {
801 Set(LFlag0, FALSE)
802 Label(10)
803 Call(CreateHomeTargetList, TARGET_FLAG_2 | TARGET_FLAG_PRIMARY_ONLY)
804 Call(InitTargetIterator)
805 Label(0)
806 Call(GetOwnerTarget, LVar0, LVar1)
807 Call(GetIndexFromHome, LVar0, LVar1)
810 Call(N(CheckMagikoopaCastTarget), LVar0, LVar3)
811 IfEq(LVar3, 0)
812 Call(GetActorDefenseBoost, LVar0, LVar4)
813 IfLt(LVar4, 3)
814 Set(LVar8, LVar0)
816 Goto(100)
817 EndIf
818 EndIf
819 EndIf
820 Call(ChooseNextTarget, ITER_NEXT, LVar0)
822 Goto(0)
823 EndIf
824 IfEq(LFlag0, FALSE)
825 Set(LFlag0, TRUE)
827 Goto(10)
828 EndIf
830 IfEq(LVar0, 1)
831 ExecWait(N(EVS_Flee))
832 Return
833 EndIf
834 Call(GetActorFlags, ACTOR_SELF, LVar0)
836 ExecWait(N(EVS_Attack_MagicBlast))
837 Else
838 ExecWait(N(EVS_Attack_WandStrike))
839 EndIf
840 Return
841 Label(100)
842 Call(UseIdleAnimation, ACTOR_SELF, FALSE)
843 Call(EnableIdleScript, ACTOR_SELF, IDLE_SCRIPT_DISABLE)
844 Call(SetTargetActor, ACTOR_SELF, ACTOR_PLAYER)
845 Call(UseBattleCamPreset, BTL_CAM_ACTOR)
846 Call(BattleCamTargetActor, ACTOR_SELF)
847 Call(MoveBattleCamOver, 15)
848 Wait(15)
849 Call(GetActorFlags, ACTOR_SELF, LVar0)
851 Call(SetAnimation, ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Green_Anim02)
852 Else
853 Call(SetAnimation, ACTOR_SELF, PRT_FLYING, ANIM_FlyingMagikoopa_Green_Anim02)
854 EndIf
855 Wait(5)
856 Call(PlaySoundAtActor, ACTOR_SELF, SOUND_SPELL_CAST1)
857 Call(GetActorFlags, ACTOR_SELF, LVar0)
859 Call(GetActorPos, ACTOR_SELF, LVar0, LVar1, LVar2)
860 Call(GetStatusFlags, ACTOR_SELF, LVarA)
862 Sub(LVar0, 6)
863 Add(LVar1, 12)
864 Sub(LVar2, 2)
865 PlayEffect(EFFECT_RADIAL_SHIMMER, 5, LVar0, LVar1, LVar2, Float(0.12), 30, 0)
866 Else
867 Sub(LVar0, 16)
868 Add(LVar1, 31)
869 Sub(LVar2, 2)
870 PlayEffect(EFFECT_RADIAL_SHIMMER, 5, LVar0, LVar1, LVar2, Float(0.3), 30, 0)
871 EndIf
872 Else
873 Call(GetActorPos, ACTOR_SELF, LVar0, LVar1, LVar2)
874 Call(GetStatusFlags, ACTOR_SELF, LVarA)
876 Sub(LVar0, 12)
877 Add(LVar1, 14)
878 Sub(LVar2, 2)
879 PlayEffect(EFFECT_RADIAL_SHIMMER, 5, LVar0, LVar1, LVar2, Float(0.12), 30, 0)
880 Else
881 Sub(LVar0, 30)
882 Add(LVar1, 36)
883 Sub(LVar2, 2)
884 PlayEffect(EFFECT_RADIAL_SHIMMER, 5, LVar0, LVar1, LVar2, Float(0.3), 30, 0)
885 EndIf
886 EndIf
887 Wait(30)
888 Call(GetActorFlags, ACTOR_SELF, LVar0)
890 Call(SetAnimation, ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Green_Anim01)
891 Else
892 Call(SetAnimation, ACTOR_SELF, PRT_FLYING, ANIM_FlyingMagikoopa_Green_Anim01)
893 EndIf
894 Wait(5)
895 Thread
896 Wait(10)
897 Call(PlaySoundAtActor, LVar8, SOUND_MAGIKOOPA_POWER_UP)
899 Thread
900 Call(FreezeBattleState, TRUE)
901 Call(BoostDefense, LVar8, 1)
902 Call(FreezeBattleState, FALSE)
904 Call(WaitForBuffDone)
905 Call(UseBattleCamPreset, BTL_CAM_DEFAULT)
906 Wait(10)
907 Call(YieldTurn)
908 Call(EnableIdleScript, ACTOR_SELF, IDLE_SCRIPT_ENABLE)
909 Call(UseIdleAnimation, ACTOR_SELF, TRUE)
910 Return
911 End
912};
Bytecode EvtScript[]
#define STATUS_FLAGS_IMMOBILIZED
Definition enums.h:2834
@ BTL_CAM_XADJ_AVG
Definition enums.h:4900
@ BS_FLAGS1_PARTNER_ACTING
Definition enums.h:3588
@ BS_FLAGS1_SUPER_HIT
Definition enums.h:3579
@ 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
@ ELEMENT_END
Definition enums.h:2114
@ ELEMENT_NORMAL
Definition enums.h:2115
@ ITER_NO_MORE
Definition enums.h:2030
@ ITER_NEXT
Definition enums.h:2025
@ ACTOR_EVENT_FLAG_RIDING_BROOMSTICK
Actor is on Magikoopa Broomstick, effect seems to be redundant.
Definition enums.h:3390
@ ACTOR_DECORATION_SWEAT
Definition enums.h:2045
@ PHASE_FIRST_STRIKE
Definition enums.h:2059
@ STATUS_KEY_PARALYZE
Definition enums.h:2201
@ STATUS_TURN_MOD_DEFAULT
Definition enums.h:2227
@ STATUS_TURN_MOD_PARALYZE
Definition enums.h:2234
@ STATUS_KEY_FROZEN
Definition enums.h:2203
@ STATUS_TURN_MOD_SLEEP
Definition enums.h:2228
@ STATUS_TURN_MOD_DIZZY
Definition enums.h:2232
@ STATUS_KEY_STATIC
Definition enums.h:2207
@ STATUS_END
Definition enums.h:2196
@ STATUS_TURN_MOD_POISON
Definition enums.h:2233
@ STATUS_KEY_FEAR
Definition enums.h:2199
@ STATUS_TURN_MOD_STOP
Definition enums.h:2237
@ STATUS_KEY_SLEEP
Definition enums.h:2202
@ STATUS_KEY_STONE
Definition enums.h:2208
@ STATUS_KEY_STOP
Definition enums.h:2204
@ STATUS_TURN_MOD_FROZEN
Definition enums.h:2230
@ STATUS_KEY_SHRINK
Definition enums.h:2206
@ STATUS_KEY_DIZZY
Definition enums.h:2200
@ STATUS_KEY_POISON
Definition enums.h:2205
@ STATUS_TURN_MOD_STATIC
Definition enums.h:2229
@ STATUS_TURN_MOD_FEAR
Definition enums.h:2231
@ STATUS_KEY_NORMAL
Definition enums.h:2197
@ STATUS_TURN_MOD_SHRINK
Definition enums.h:2235
@ STATUS_KEY_DEFAULT
Definition enums.h:2198
@ HIT_RESULT_NO_DAMAGE
Definition enums.h:1952
@ HIT_RESULT_HIT
Definition enums.h:1950
@ HIT_RESULT_LUCKY
Definition enums.h:1955
@ HIT_RESULT_MISS
Definition enums.h:1956
@ BTL_CAM_DEFAULT
Definition enums.h:4824
@ BTL_CAM_INTERRUPT
Definition enums.h:4823
@ BTL_CAM_ACTOR
Definition enums.h:4836
@ BTL_CAM_ENEMY_APPROACH
Definition enums.h:4885
@ TARGET_FLAG_PRIMARY_ONLY
Definition enums.h:1863
@ TARGET_FLAG_2
Definition enums.h:1850
@ EASING_COS_IN_OUT
Definition enums.h:520
@ EASING_LINEAR
Definition enums.h:510
@ IDLE_SCRIPT_ENABLE
Definition enums.h:6408
@ IDLE_SCRIPT_DISABLE
Definition enums.h:6407
@ STATUS_FLAG_SHRINK
Definition enums.h:2819
@ SOUND_MAGIKOOPA_WAND_STRIKE
Definition enums.h:1054
@ SOUND_SPELL_CAST1
Definition enums.h:1498
@ SOUND_SPELL_CAST2
Definition enums.h:1499
@ SOUND_MAGIKOOPA_VANISH
Definition enums.h:1053
@ SOUND_FALL_QUICK
Definition enums.h:1090
@ SOUND_MAGIKOOPA_POWER_UP
Definition enums.h:1055
@ ACTOR_PLAYER
Definition enums.h:2085
@ ACTOR_SELF
Definition enums.h:2084
@ ACTOR_FLAG_FLYING
Quake Hammer can't hit.
Definition enums.h:3329
@ ACTOR_FLAG_TYPE_CHANGED
Indicates actors type has changed, triggers recheck for if HP bar should be shown based on tattle sta...
Definition enums.h:3332
@ BTL_CAM_YADJ_TARGET
Definition enums.h:4905
@ ACTOR_BLUR_ENABLE
Definition enums.h:6414
@ EVENT_HIT
Definition enums.h:2132
@ EVENT_SCARE_AWAY
Definition enums.h:2174
@ EVENT_BURN_HIT
Definition enums.h:2136
@ EVENT_BEGIN_FIRST_STRIKE
Definition enums.h:2173
@ EVENT_END_FIRST_STRIKE
Definition enums.h:2171
@ EVENT_IMMUNE
Definition enums.h:2146
@ EVENT_FALL_TRIGGER
Definition enums.h:2134
@ EVENT_BURN_DEATH
Definition enums.h:2157
@ EVENT_ZERO_DAMAGE
Definition enums.h:2144
@ EVENT_SPIN_SMASH_HIT
Definition enums.h:2133
@ EVENT_SPIN_SMASH_DEATH
Definition enums.h:2154
@ EVENT_HIT_COMBO
Definition enums.h:2131
@ EVENT_15
Definition enums.h:2137
@ EVENT_AIR_LIFT_FAILED
Definition enums.h:2152
@ EVENT_BEGIN_AIR_LIFT
Definition enums.h:2175
@ EVENT_DEATH
Definition enums.h:2153
@ EVENT_RECOVER_STATUS
Definition enums.h:2167
@ EVENT_BLOW_AWAY
Definition enums.h:2143
@ ACTOR_PART_FLAG_PRIMARY_TARGET
Definition enums.h:3362
@ ACTOR_PART_FLAG_USE_ABSOLUTE_POSITION
Definition enums.h:3361
@ ACTOR_PART_FLAG_NO_TARGET
Cannot be targeted.
Definition enums.h:3360
@ ACTOR_PART_FLAG_INVISIBLE
Definition enums.h:3350
@ CAM_BATTLE
Definition enums.h:1801
@ DAMAGE_TYPE_POW
Definition enums.h:2861
@ DAMAGE_TYPE_MAGIC
Definition enums.h:2855
@ DAMAGE_TYPE_TRIGGER_LUCKY
Definition enums.h:2881
@ DAMAGE_TYPE_NO_CONTACT
Definition enums.h:2878
EvtScript EVS_Enemy_Hit
EvtScript EVS_Enemy_Death
EvtScript EVS_Enemy_SpinSmashHit
EvtScript EVS_Enemy_AirLift
EvtScript EVS_ForceNextTarget
EvtScript EVS_Enemy_BlowAway
EvtScript EVS_Enemy_Recover
EvtScript EVS_Enemy_BurnHit
EvtScript EVS_Enemy_NoDamageHit
ApiStatus ShakeCam(Evt *script, b32 isInitialCall)
#define Else
Marks the end of an if statement and the start of the else block.
Definition macros.h:295
#define Switch(LVAR)
Marks the start of a switch statement.
Definition macros.h:311
#define Ref(sym)
Address/pointer constant.
Definition macros.h:60
#define Set(VAR, INT_VALUE)
Sets the given variable to a given value casted to an integer.
Definition macros.h:365
#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 Sub(VAR, INT_VALUE)
Definition macros.h:377
#define IfNe(LVAR, RVAR)
Marks the beginning of an if statement that only executes if LVAR != RVAR.
Definition macros.h:272
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
Definition macros.h:213
#define Mod(VAR, INT_VALUE)
Definition macros.h:380
#define Add(VAR, INT_VALUE)
Definition macros.h:376
#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 Goto(LABEL_ID)
Moves execution to the given label.
Definition macros.h:232
#define ARRAY_COUNT(arr)
Definition macros.h:40
#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 Label(LABEL_ID)
Marks this point in the script as a Goto target.
Definition macros.h:227
#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 Thread
Marks the start of a thread block.
Definition macros.h:544
#define EndThread
Marks the end of a thread block.
Definition macros.h:547
#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 LVar8
Definition macros.h:156
#define LVar2
Definition macros.h:150
#define LVar1
Definition macros.h:149
#define LFlag0
Definition macros.h:167
#define LVarA
Definition macros.h:158
#define IfNotFlag(LVAR, RVAR)
Marks the beginning of an if statement that only executes if the RVAR flag is unset on LVAR,...
Definition macros.h:292
#define Wait(NUM_FRAMES)
Blocks for the given number of frames.
Definition macros.h:254
#define LVar9
Definition macros.h:157
#define PlayEffect(args...)
Definition macros.h:807
#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 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 SetConst(VAR, CONST)
Sets the given variable to a given value, skipping the evt_get_variable call.
Definition macros.h:370
#define Return
Kills the current EVT thread.
Definition macros.h:217
@ BTL_VAR_Magikoopa_LastIndexBoosted
Definition battle.h:90