Disassemble 3 Battle Maps (#622)

* Disassemble ISK Part 2 Battle Map

* Disassemble MIM BTL Map and fix script maps

* Delete mim

* Disasm Script

* Disassemble ARN Battle Map

* Remove files

* Remove struct

* Handle comments and merge conflicts
This commit is contained in:
JoshDuMan 2022-01-16 12:22:23 -05:00 committed by GitHub
parent b87012a0da
commit 44dd710d54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
121 changed files with 10033 additions and 2167 deletions

View File

@ -2208,26 +2208,6 @@ typedef struct PartnerActionStatus {
/* 0x35C */ char unk_35C[0x4];
} PartnerActionStatus; // size = 0x360
typedef struct Temp8025D160 {
/* 0x00 */ s32 unk_00;
/* 0x04 */ char unk_04[8];
/* 0x0C */ struct Temp8025D160_2* unk_0C;
} Temp8025D160; // size = 0x10 (?)
typedef struct Temp8025D160_2 {
/* 0x00 */ s32 unk_00;
/* 0x04 */ f32 unk_04;
/* 0x08 */ f32 unk_08;
/* 0x0C */ f32 unk_0C;
/* 0x10 */ char unk_10[12];
/* 0x1C */ s32 unk_1C;
/* 0x20 */ s32 unk_20;
/* 0x24 */ char unk_24[8];
/* 0x2C */ s32 unk_2C;
/* 0x30 */ s32 unk_30;
/* 0x34 */ f32 unk_34;
} Temp8025D160_2; // size = 0x38 (?)
typedef struct EntityModel {
/* 0x00 */ s32 flags;
/* 0x04 */ u8 renderMode;

View File

@ -545,6 +545,27 @@ typedef struct EffectWhirlwind {
/* 0x30 */ f32 unk_30;
} EffectWhirlwind;
typedef struct Effect6BData {
/* 0x00 */ s32 unk_00;
/* 0x04 */ Vec3f pos;
/* 0x10 */ char unk_10[12];
/* 0x1C */ s32 unk_1C;
/* 0x20 */ s32 unk_20;
/* 0x24 */ char unk_24[8];
/* 0x2C */ s32 unk_2C;
/* 0x30 */ s32 unk_30;
/* 0x34 */ f32 scale;
/* 0x38 */ f32 unk_38;
/* 0x3C */ s32 unk_3C;
/* 0x40 */ char unk_40[0x4];
} Effect6BData; // size = 0x44
typedef struct Effect6BInstance {
/* 0x00 */ s32 unk_00;
/* 0x04 */ char unk_04[8];
/* 0x0C */ Effect6BData* data;
} Effect6BInstance;
typedef struct Effect6FData {
/* 0x00 */ EffectInstanceDataThing* unk_00;
/* 0x04 */ Vec3f pos;

View File

@ -1652,6 +1652,8 @@ enum PlayerBuffs {
enum StatusFlags {
STATUS_FLAG_1 = 0x00000001,
STATUS_FLAG_8 = 0x00000008,
STATUS_FLAG_20 = 0x00000020,
STATUS_FLAG_100 = 0x00000100,
STATUS_FLAG_200 = 0x00000200,
STATUS_FLAG_SLEEP = 0x00001000,

View File

@ -769,6 +769,12 @@ void render_generic_entities_world(void);
void render_effects_world(void);
s32 get_asset_offset(char*, s32*);
void initialize_status_menu(void);
void status_menu_start_blinking_fp(void);
void status_menu_start_blinking_hp(void);
void status_menu_start_blinking_sp(void);
void status_menu_stop_blinking_fp(void);
void status_menu_stop_blinking_hp(void);
void status_menu_stop_blinking_sp(void);
void set_background_size(s16, s16, s16, s16);
void read_background_size(BackgroundHeader*);
void set_max_SP(s8);

View File

@ -175,6 +175,7 @@ ApiStatus RemovePlayerBuffs(Evt* script, s32 isInitialCall);
ApiStatus SetPartAlpha(Evt* script, s32 isInitialCall);
ApiStatus CreatePartShadow(Evt* script, s32 isInitialCall);
ApiStatus RemovePartShadow(Evt* script, s32 isInitialCall);
ApiStatus func_8026F60C(Evt* script, s32 isInitialCall);
ApiStatus SetBattleVar(Evt* script, s32 isInitialCall);
ApiStatus GetBattleVar(Evt* script, s32 isInitialCall);
ApiStatus ResetAllActorSounds(Evt* script, s32 isInitialCall);
@ -324,6 +325,7 @@ ApiStatus func_8026ED20(Evt* script, s32 isInitialCall);
ApiStatus func_8026EBF8(Evt* script, s32 isInitialCall);
ApiStatus SetupMashMeter(Evt* script, s32 isInitialCall);
ApiStatus SetActionResult(Evt* script, s32 isInitialCall);
ApiStatus func_8024EB84(Evt* script, s32 isInitialCall);
extern EvtScript PlayerScriptDispatcher;
extern EvtScript PeachScriptDispatcher;
@ -376,6 +378,7 @@ extern EvtScript D_8029A76C;
extern EvtScript D_80294720;
extern EvtScript DoImmune;
extern EvtScript DoDeath;
extern EvtScript D_8029AF08;
extern EvtScript Collapse;
extern EvtScript DoScareAway;
extern EvtScript DoSpinSmashHit;

View File

@ -16,7 +16,10 @@
/// Decimal constant.
/// Despite the name, "floats" are actually stored as fixed-point values.
#define EVT_FLOAT(DOUBLE) (((Bytecode)(DOUBLE * 1024.0f) + -230000000))
// This fixes an issue with fixed point numbers not being correct. POtentially a truncation vs round difference.
#define EVT_FLOAT_ROUND(x) ((x)>=0?(f64)((x) + 0.9):(f64)(x))
#define EVT_FLOAT(DOUBLE) (((Bytecode)EVT_FLOAT_ROUND((DOUBLE * 1024.0f)) + -230000000))
/// Address/pointer constant.
#define EVT_ADDR(sym) (((Bytecode) &((sym))))

View File

@ -63,7 +63,7 @@ EvtScript BtlBringPartnerOut = {
EVT_SETF(EVT_VAR(0), EVT_FIXED(0.1))
EVT_LOOP(20)
EVT_CALL(SetActorScale, 256, EVT_VAR(0), EVT_VAR(0), EVT_FIXED(1.0))
EVT_ADDF(EVT_VAR(0), EVT_FIXED(0.05078125))
EVT_ADDF(EVT_VAR(0), EVT_FIXED(0.05))
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
EVT_CALL(SetActorScale, 256, EVT_FIXED(1.0), EVT_FIXED(1.0), EVT_FIXED(1.0))

View File

@ -4,8 +4,6 @@
#include "script_api/battle.h"
extern EvtScript D_80299828;
extern EvtScript D_8029AF08;
extern EvtScript D_8029A76C;
extern EvtScript D_8029B818;
ApiStatus GetDamageIntensity(Evt* script, s32 isInitialCall) {
@ -93,7 +91,7 @@ EvtScript D_80294AFC = {
EVT_CALL(SetAnimation, ACTOR_SELF, LW(0), LW(1))
EVT_WAIT_FRAMES(10)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2001953125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2))
EVT_CALL(SetGoalPos, ACTOR_PARTNER, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_PARTNER, 10, FALSE, TRUE, FALSE)
EVT_CALL(SetGoalPos, ACTOR_PARTNER, LW(0), LW(1), LW(2))
@ -119,7 +117,7 @@ EvtScript D_80294C68 = {
EVT_CALL(GetGoalPos, ACTOR_PARTNER, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 60)
EVT_ADD(LW(1), 40)
EVT_CALL(SetActorJumpGravity, ACTOR_PARTNER, EVT_FLOAT(0.1005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_PARTNER, EVT_FLOAT(0.1))
EVT_CALL(SetJumpAnimations, ACTOR_PARTNER, 0, LW(10), LW(10), LW(10))
EVT_CALL(SetGoalPos, ACTOR_PARTNER, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_PARTNER, 5, FALSE, FALSE, FALSE)
@ -141,7 +139,7 @@ EvtScript D_80294C68 = {
EVT_CALL(GetGoalPos, ACTOR_PARTNER, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 30)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_PARTNER, EVT_FLOAT(1.400390625))
EVT_CALL(SetActorJumpGravity, ACTOR_PARTNER, EVT_FLOAT(1.4))
EVT_CALL(SetGoalPos, ACTOR_PARTNER, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_PARTNER, 15, FALSE, TRUE, FALSE)
EVT_SUB(LW(0), 20)
@ -165,7 +163,7 @@ EvtScript D_80294FE4 = {
EVT_CALL(GetGoalPos, ACTOR_PARTNER, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 60)
EVT_ADD(LW(1), 40)
EVT_CALL(SetActorJumpGravity, ACTOR_PARTNER, EVT_FLOAT(0.1005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_PARTNER, EVT_FLOAT(0.1))
EVT_CALL(SetJumpAnimations, ACTOR_PARTNER, 0, LW(10), LW(10), LW(10))
EVT_CALL(SetGoalPos, ACTOR_PARTNER, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_PARTNER, 5, FALSE, FALSE, FALSE)
@ -187,7 +185,7 @@ EvtScript D_80294FE4 = {
EVT_CALL(GetGoalPos, ACTOR_PARTNER, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 30)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_PARTNER, EVT_FLOAT(1.400390625))
EVT_CALL(SetActorJumpGravity, ACTOR_PARTNER, EVT_FLOAT(1.4))
EVT_CALL(SetGoalPos, ACTOR_PARTNER, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_PARTNER, 15, FALSE, TRUE, FALSE)
EVT_SUB(LW(0), 20)
@ -212,7 +210,7 @@ EvtScript D_80295350 = {
EVT_CALL(GetGoalPos, ACTOR_PARTNER, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 60)
EVT_ADD(LW(1), 40)
EVT_CALL(SetActorJumpGravity, ACTOR_PARTNER, EVT_FLOAT(0.1005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_PARTNER, EVT_FLOAT(0.1))
EVT_CALL(SetJumpAnimations, ACTOR_PARTNER, 0, LW(10), LW(10), LW(10))
EVT_CALL(SetGoalPos, ACTOR_PARTNER, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_PARTNER, 5, FALSE, FALSE, FALSE)
@ -234,7 +232,7 @@ EvtScript D_80295350 = {
EVT_CALL(GetGoalPos, ACTOR_PARTNER, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 30)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_PARTNER, EVT_FLOAT(1.400390625))
EVT_CALL(SetActorJumpGravity, ACTOR_PARTNER, EVT_FLOAT(1.4))
EVT_CALL(SetGoalPos, ACTOR_PARTNER, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_PARTNER, 15, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_PARTNER, -1, LW(12))
@ -264,7 +262,7 @@ EvtScript D_80295744 = {
EVT_CALL(GetGoalPos, ACTOR_PARTNER, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 60)
EVT_ADD(LW(1), 40)
EVT_CALL(SetActorJumpGravity, ACTOR_PARTNER, EVT_FLOAT(0.1005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_PARTNER, EVT_FLOAT(0.1))
EVT_CALL(SetJumpAnimations, ACTOR_PARTNER, 0, LW(10), LW(10), LW(10))
EVT_CALL(SetGoalPos, ACTOR_PARTNER, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_PARTNER, 5, FALSE, FALSE, FALSE)
@ -287,7 +285,7 @@ EvtScript D_80295744 = {
EVT_CALL(GetGoalPos, ACTOR_PARTNER, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 30)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_PARTNER, EVT_FLOAT(1.400390625))
EVT_CALL(SetActorJumpGravity, ACTOR_PARTNER, EVT_FLOAT(1.4))
EVT_CALL(SetGoalPos, ACTOR_PARTNER, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_PARTNER, 15, FALSE, TRUE, FALSE)
EVT_SUB(LW(0), 20)
@ -312,7 +310,7 @@ EvtScript D_80295AC0 = {
EVT_CALL(GetGoalPos, ACTOR_PARTNER, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 60)
EVT_ADD(LW(1), 40)
EVT_CALL(SetActorJumpGravity, ACTOR_PARTNER, EVT_FLOAT(0.1005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_PARTNER, EVT_FLOAT(0.1))
EVT_CALL(SetJumpAnimations, ACTOR_PARTNER, 0, LW(10), LW(10), LW(10))
EVT_CALL(SetGoalPos, ACTOR_PARTNER, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_PARTNER, 5, FALSE, FALSE, FALSE)
@ -335,7 +333,7 @@ EvtScript D_80295AC0 = {
EVT_CALL(GetGoalPos, ACTOR_PARTNER, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 30)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_PARTNER, EVT_FLOAT(1.400390625))
EVT_CALL(SetActorJumpGravity, ACTOR_PARTNER, EVT_FLOAT(1.4))
EVT_CALL(SetGoalPos, ACTOR_PARTNER, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_PARTNER, 15, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_PARTNER, -1, LW(12))
@ -356,7 +354,7 @@ EvtScript D_80295AC0 = {
EvtScript D_80295EC4 = {
EVT_SET(LW(6), LW(3))
EVT_CALL(SetActorJumpGravity, ACTOR_PARTNER, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_PARTNER, EVT_FLOAT(1.8))
EVT_CALL(GetActorPos, ACTOR_PARTNER, LW(7), LW(8), LW(9))
EVT_CALL(SetAnimation, ACTOR_PARTNER, -1, LW(2))
EVT_IF_EQ(LW(6), 000000)
@ -688,15 +686,15 @@ EvtScript D_802975C8 = {
EVT_SETF(LW(0), EVT_FLOAT(1.0))
EVT_SETF(LW(1), EVT_FLOAT(1.0))
EVT_LOOP(10)
EVT_ADDF(LW(0), EVT_FLOAT(0.1005859375))
EVT_SUBF(LW(1), EVT_FLOAT(0.080078125))
EVT_ADDF(LW(0), EVT_FLOAT(0.1))
EVT_SUBF(LW(1), EVT_FLOAT(0.08))
EVT_CALL(SetActorScale, ACTOR_PARTNER, LW(0), LW(1), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
EVT_WAIT_FRAMES(45)
EVT_LOOP(5)
EVT_SUBF(LW(0), EVT_FLOAT(0.220703125))
EVT_ADDF(LW(1), EVT_FLOAT(0.2001953125))
EVT_ADDF(LW(1), EVT_FLOAT(0.2))
EVT_CALL(SetActorScale, ACTOR_PARTNER, LW(0), LW(1), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
@ -907,15 +905,15 @@ EvtScript D_80298374 = {
EVT_SETF(LW(0), EVT_FLOAT(1.0))
EVT_SETF(LW(1), EVT_FLOAT(1.0))
EVT_LOOP(10)
EVT_ADDF(LW(0), EVT_FLOAT(0.1005859375))
EVT_SUBF(LW(1), EVT_FLOAT(0.080078125))
EVT_ADDF(LW(0), EVT_FLOAT(0.1))
EVT_SUBF(LW(1), EVT_FLOAT(0.08))
EVT_CALL(SetActorScale, ACTOR_PLAYER, LW(0), LW(1), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
EVT_WAIT_FRAMES(45)
EVT_LOOP(5)
EVT_SUBF(LW(0), EVT_FLOAT(0.220703125))
EVT_ADDF(LW(1), EVT_FLOAT(0.2001953125))
EVT_ADDF(LW(1), EVT_FLOAT(0.2))
EVT_CALL(SetActorScale, ACTOR_PLAYER, LW(0), LW(1), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
@ -1132,7 +1130,7 @@ EvtScript D_80298E20 = {
EVT_END_IF
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(5))
EVT_IF_FLAG(LW(5), STATUS_FLAG_SHRINK)
EVT_MULF(LW(3), EVT_FLOAT(0.400390625))
EVT_MULF(LW(3), EVT_FLOAT(0.4))
EVT_END_IF
EVT_CALL(GetActorFlags, ACTOR_SELF, LW(6))
EVT_IF_FLAG(LW(6), ACTOR_FLAG_HP_OFFSET_BELOW)
@ -1171,7 +1169,7 @@ EvtScript DoNormalHit = {
EVT_END_CASE_GROUP
EVT_CASE_DEFAULT
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.0107421875))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.01))
EVT_ADD(LW(1), 55)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, FALSE, FALSE)
@ -1190,7 +1188,7 @@ EvtScript DoNormalHit = {
EVT_END_CASE_GROUP
EVT_CASE_DEFAULT
EVT_SUB(LW(1), 55)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_IF_EQ(LW(1), 0)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 15, FALSE, TRUE, FALSE)
@ -1442,7 +1440,7 @@ EvtScript DoBurnHit = {
EVT_END_CASE_GROUP
EVT_CASE_DEFAULT
EVT_CALL(GetActorPos, ACTOR_SELF, LW(4), LW(5), LW(6))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.0107421875))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.01))
EVT_ADD(LW(5), 55)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(4), LW(5), LW(6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 8, FALSE, FALSE, FALSE)
@ -1461,7 +1459,7 @@ EvtScript DoBurnHit = {
EVT_END_CASE_GROUP
EVT_CASE_DEFAULT
EVT_SUB(LW(5), 55)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_IF_EQ(LW(5), 0)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(4), LW(5), LW(6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 15, FALSE, TRUE, FALSE)
@ -1494,8 +1492,8 @@ EvtScript DoBurnHit = {
EVT_CALL(GetActorSize, ACTOR_SELF, LW(3), LW(4))
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(5))
EVT_IF_FLAG(LW(5), STATUS_FLAG_SHRINK)
EVT_MULF(LW(3), EVT_FLOAT(0.400390625))
EVT_MULF(LW(4), EVT_FLOAT(0.400390625))
EVT_MULF(LW(3), EVT_FLOAT(0.4))
EVT_MULF(LW(4), EVT_FLOAT(0.4))
EVT_END_IF
EVT_DIVF(LW(3), EVT_FLOAT(2.0))
EVT_CALL(GetActorFlags, ACTOR_SELF, LW(5))
@ -1508,7 +1506,7 @@ EvtScript DoBurnHit = {
EVT_DIVF(LW(3), EVT_FLOAT(10.0))
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(5))
EVT_IF_FLAG(LW(5), STATUS_FLAG_SHRINK)
EVT_MULF(LW(3), EVT_FLOAT(0.400390625))
EVT_MULF(LW(3), EVT_FLOAT(0.4))
EVT_IF_LT(LW(3), 1)
EVT_SETF(LW(3), EVT_FLOAT(1.0))
EVT_END_IF
@ -1699,7 +1697,7 @@ EvtScript DoScareAway = {
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(SetAnimation, ACTOR_SELF, LW(0), LW(2))
EVT_CALL(GetActorFlags, ACTOR_SELF, LW(9))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.05078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.05))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(10), LW(11), LW(12))
EVT_SET(LW(13), LW(11))
EVT_ADD(LW(13), 20)
@ -1758,7 +1756,7 @@ EvtScript D_8029B494 = {
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), 0, LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.1005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.1))
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(7.0))
EVT_CALL(JumpToGoal, ACTOR_SELF, 0, FALSE, TRUE, FALSE)
EVT_CHILD_THREAD
@ -1782,7 +1780,7 @@ EvtScript D_8029B494 = {
EVT_WAIT_FRAMES(20)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_E)
EVT_END_CHILD_THREAD
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.1005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.1))
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(6.0))
EVT_CALL(SetGoalPos, ACTOR_SELF, 296, 0, 0)
EVT_CALL(JumpToGoal, ACTOR_SELF, 0, FALSE, TRUE, FALSE)
@ -1810,15 +1808,15 @@ EvtScript D_8029B8A8 = {
EVT_SWITCH(LW(0))
EVT_CASE_LT(1000)
EVT_CHILD_THREAD
EVT_CALL(ShakeCam, 1, 0, 3, EVT_FLOAT(0.30078125))
EVT_CALL(ShakeCam, 1, 0, 3, EVT_FLOAT(0.3))
EVT_END_CHILD_THREAD
EVT_CASE_LT(2000)
EVT_CHILD_THREAD
EVT_CALL(ShakeCam, 1, 0, 3, EVT_FLOAT(0.6005859375))
EVT_CALL(ShakeCam, 1, 0, 3, EVT_FLOAT(0.6))
EVT_END_CHILD_THREAD
EVT_CASE_DEFAULT
EVT_CHILD_THREAD
EVT_CALL(ShakeCam, 1, 0, 3, EVT_FLOAT(0.900390625))
EVT_CALL(ShakeCam, 1, 0, 3, EVT_FLOAT(0.9))
EVT_END_CHILD_THREAD
EVT_END_SWITCH
EVT_RETURN
@ -1832,7 +1830,7 @@ EvtScript DoSpinSmashHit = {
EVT_EXEC_WAIT(D_8029B494)
EVT_CALL(SetActorPos, ACTOR_SELF, -200, 30, 0)
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.400390625))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.4))
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(10.0))
EVT_CALL(AddGoalPos, ACTOR_SELF, -30, 0, 0)
EVT_CALL(JumpToGoal, ACTOR_SELF, 0, FALSE, TRUE, FALSE)
@ -1892,7 +1890,7 @@ EvtScript DoJumpBack = {
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SET(LW(1), 0)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.400390625))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.4))
EVT_CALL(AddGoalPos, ACTOR_SELF, 30, 0, 0)
EVT_CALL(JumpToGoal, ACTOR_SELF, 15, FALSE, TRUE, FALSE)
EVT_CALL(AddGoalPos, ACTOR_SELF, 15, 0, 0)
@ -1920,7 +1918,7 @@ EvtScript DoReturnHome = {
EvtScript DoRecover = {
EVT_CALL(SetAnimation, ACTOR_SELF, LW(0), LW(1))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(7), LW(8), LW(9))
EVT_CALL(GetActorFlags, ACTOR_SELF, LW(0))
EVT_IF_FLAG(LW(0), ACTOR_FLAG_FLYING)

View File

@ -1,7 +0,0 @@
#include "common.h"
#define NAMESPACE b_area_arn
#include "common/StartRumbleWithParams.inc.c"
#include "common/BattleAreaAngleStuff.inc.c"

View File

@ -1,10 +0,0 @@
#include "common.h"
#define NAMESPACE b_area_arn
#define NAMESPACE dup_b_area_arn
#include "common/StartRumbleWithParams.inc.c"
#define NAMESPACE b_area_arn
#define NAMESPACE dup_b_area_arn
#include "common/BattleAreaAngleStuff.inc.c"

View File

@ -1,9 +0,0 @@
#include "battle/battle.h"
#define NAMESPACE b_area_arn
#define NAMESPACE dup2_b_area_arn
#include "common/StartRumbleWithParams.inc.c"
#define NAMESPACE b_area_arn
#include "common/SetSpinSmashable.inc.c"

View File

@ -1,20 +0,0 @@
#include "common.h"
#define NAMESPACE b_area_arn
ApiStatus func_80218680_4FF0D0(Evt* script, s32 isInitialCall) {
Bytecode *args = script->ptrReadPos;
Temp8025D160* temp8025D160 = (Temp8025D160*)evt_get_variable(script, *args++);
s32 var1 = evt_get_variable(script, *args++);
s32 var2 = evt_get_variable(script, *args++);
s32 var3 = evt_get_variable(script, *args++);
f32 var4 = evt_get_float_variable(script, *args++);
temp8025D160->unk_0C->unk_04 = var1;
temp8025D160->unk_0C->unk_08 = var2;
temp8025D160->unk_0C->unk_0C = var3;
temp8025D160->unk_0C->unk_34 = var4;
return ApiStatus_DONE2;
}

View File

@ -0,0 +1,840 @@
#include "common.h"
#include "effects.h"
#include "battle/battle.h"
#include "script_api/battle.h"
#include "sprite/npc/cleft.h"
#define NAMESPACE b_area_arn_hyper_cleft
extern s32 N(idleAnimations_80221CD4)[];
extern EvtScript N(init_80220CAC);
extern EvtScript N(idle_80221DD0);
extern EvtScript N(handleEvent_80222140);
extern EvtScript N(takeTurn_80221A58);
extern EvtScript N(takeTurn_80223B5C);
extern EvtScript N(nextTurn_80220D3C);
extern EvtScript N(80222F1C);
extern EvtScript N(80223310);
s32 N(defenseTable_80220B40)[] = {
ELEMENT_NORMAL, 3,
ELEMENT_FIRE, 99,
ELEMENT_END,
};
s32 N(defenseTable_80220B54)[] = {
ELEMENT_NORMAL, 1,
ELEMENT_FIRE, 99,
ELEMENT_END,
};
s32 N(statusTable_80220B68)[] = {
STATUS_NORMAL, 0,
STATUS_DEFAULT, 0,
STATUS_SLEEP, 40,
STATUS_POISON, 50,
STATUS_FROZEN, 0,
STATUS_DIZZY, 50,
STATUS_FEAR, 0,
STATUS_STATIC, 50,
STATUS_PARALYZE, 50,
STATUS_SHRINK, 90,
STATUS_STOP, 90,
STATUS_DEFAULT_TURN_MOD, 0,
STATUS_SLEEP_TURN_MOD, -1,
STATUS_POISON_TURN_MOD, 0,
STATUS_FROZEN_TURN_MOD, 0,
STATUS_DIZZY_TURN_MOD, -1,
STATUS_FEAR_TURN_MOD, 0,
STATUS_STATIC_TURN_MOD, 0,
STATUS_PARALYZE_TURN_MOD, 0,
STATUS_SHRINK_TURN_MOD, 0,
STATUS_STOP_TURN_MOD, 0,
STATUS_END,
};
ActorPartBlueprint N(partsTable_80220C14)[] = {
{
.flags = ACTOR_PART_FLAG_MULTI_TARGET,
.index = 1,
.posOffset = { 0, 0, 0 },
.targetOffset = { 0, 22 },
.opacity = 255,
.idleAnimations = N(idleAnimations_80221CD4),
.defenseTable = N(defenseTable_80220B40),
.eventFlags = ACTOR_EVENT_FLAG_SPIKY_TOP,
.elementImmunityFlags = 0,
.unk_1C = 246,
},
};
ActorBlueprint NAMESPACE = {
.flags = 0,
.type = ACTOR_TYPE_HYPER_CLEFT,
.level = 15,
.maxHP = 4,
.partCount = ARRAY_COUNT(N(partsTable_80220C14)),
.partsData = N(partsTable_80220C14),
.script = N(init_80220CAC),
.statusTable = N(statusTable_80220B68),
.escapeChance = 70,
.airLiftChance = 30,
.spookChance = 30,
.baseStatusChance = 30,
.upAndAwayChance = 95,
.spinSmashReq = 0,
.powerBounceChance = 95,
.coinReward = 2,
.size = { 44, 36 },
.hpBarOffset = { 0, 0 },
.statusIconOffset = { -10, 20 },
.statusMessageOffset = { 10, 20 },
};
s32 N(idleAnimations_80220C60)[] = {
STATUS_NORMAL, NPC_ANIM_cleft_hyper_Anim_4,
STATUS_STONE, NPC_ANIM_cleft_hyper_still,
STATUS_SLEEP, NPC_ANIM_cleft_hyper_sleep,
STATUS_POISON, NPC_ANIM_cleft_hyper_Anim_4,
STATUS_STOP, NPC_ANIM_cleft_hyper_still,
STATUS_STATIC, NPC_ANIM_cleft_hyper_Anim_4,
STATUS_PARALYZE, NPC_ANIM_cleft_hyper_still,
STATUS_DIZZY, NPC_ANIM_cleft_hyper_dizzy,
STATUS_FEAR, NPC_ANIM_cleft_hyper_dizzy,
STATUS_END,
};
EvtScript N(init_80220CAC) = {
EVT_CALL(BindIdle, ACTOR_SELF, EVT_ADDR(N(idle_80221DD0)))
EVT_CALL(BindHandleEvent, ACTOR_SELF, EVT_ADDR(N(handleEvent_80222140)))
EVT_CALL(BindTakeTurn, ACTOR_SELF, EVT_ADDR(N(takeTurn_80221A58)))
EVT_CALL(BindNextTurn, ACTOR_SELF, EVT_ADDR(N(nextTurn_80220D3C)))
EVT_CALL(SetActorVar, ACTOR_SELF, 0, 0)
EVT_CALL(SetActorVar, ACTOR_SELF, 2, 0)
EVT_RETURN
EVT_END
};
EvtScript N(nextTurn_80220D3C) = {
EVT_CALL(GetBattlePhase, LW(0))
EVT_SWITCH(LW(0))
EVT_CASE_EQ(PHASE_PLAYER_BEGIN)
EVT_CASE_EQ(PHASE_ENEMY_BEGIN)
EVT_CASE_EQ(PHASE_ENEMY_END)
EVT_CALL(SetBattleVar, 1, 0)
EVT_CALL(SetActorVar, ACTOR_SELF, 2, 1)
EVT_END_SWITCH
EVT_RETURN
EVT_END
};
#include "common/StartRumbleWithParams.inc.c"
EvtScript N(80220DC0) = {
EVT_CALL(UseIdleAnimation, ACTOR_SELF, FALSE)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 0)
EVT_CALL(SetTargetActor, ACTOR_SELF, ACTOR_PLAYER)
EVT_CALL(GetActorVar, ACTOR_SELF, 0, LW(0))
EVT_IF_EQ(LW(0), 0)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_14)
EVT_CALL(BattleCamTargetActor, ACTOR_SELF)
EVT_CALL(MoveBattleCamOver, 20)
EVT_WAIT_FRAMES(20)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, SOUND_POWER_UP)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(1), 10)
EVT_CALL(PlayEffect, EFFECT_ID_6B, 6, LW(0), LW(1), LW(2), EVT_FLOAT(1.0), 45, 0, 0, 0, 0, 0, 0, 0)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_cleft_hyper_Anim_4)
EVT_WAIT_FRAMES(30)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(MoveBattleCamOver, 20)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.0))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 15, FALSE, TRUE, FALSE)
EVT_CALL(N(StartRumbleWithParams), 200, 10)
EVT_THREAD
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(1.5))
EVT_END_THREAD
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x2D9)
EVT_CALL(PlayEffect, EFFECT_ID_06, 4, LW(0), LW(1), LW(2), 0, 0, 0, 0, 0, 0, 0, 0, 0)
EVT_THREAD
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(1.0))
EVT_END_THREAD
EVT_CALL(SetActorVar, ACTOR_SELF, 0, 2)
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_ADDR(N(idleAnimations_80220C60)))
EVT_CALL(EnableActorGlow, ACTOR_SELF, TRUE)
EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, 1)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_RETURN
EVT_END_IF
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_63)
EVT_CALL(BattleCamTargetActor, ACTOR_SELF)
EVT_CALL(func_8024ECF8, -1, 1, 0)
EVT_CALL(MoveBattleCamOver, 30)
EVT_LOOP(20)
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 1, 0, 0)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorDispOffset, ACTOR_SELF, -1, 0, 0)
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, 0, 0)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x2DA)
EVT_CALL(SetActorSounds, ACTOR_SELF, 0, 0, 0)
EVT_CALL(EnemyTestTarget, ACTOR_SELF, LW(0), 0, 0, 3, BS_FLAGS1_10)
EVT_SWITCH(LW(0))
EVT_CASE_OR_EQ(HIT_RESULT_MISS)
EVT_CASE_OR_EQ(HIT_RESULT_LUCKY)
EVT_SET(LW(10), LW(0))
EVT_THREAD
EVT_LOOP(0)
EVT_CALL(GetActorPos, ACTOR_PLAYER, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 30)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(3), LW(4), LW(5))
EVT_IF_GT(LW(0), LW(3))
EVT_BREAK_LOOP
EVT_END_IF
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_B)
EVT_IF_EQ(LW(10), HIT_RESULT_LUCKY)
EVT_CALL(EnemyTestTarget, ACTOR_SELF, LW(0), DAMAGE_TYPE_TRIGGER_LUCKY, 0, 0, 0)
EVT_END_IF
EVT_WAIT_FRAMES(15)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_END_THREAD
EVT_THREAD
EVT_LOOP(30)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(PlayEffect, EFFECT_ID_07, 2, LW(0), LW(1), LW(2), 0, 0, 0, 0, 0, 0, 0, 0, 0)
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
EVT_END_THREAD
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_cleft_hyper_charge)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(AddGoalPos, ACTOR_SELF, -200, 0, 0)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(12.0))
EVT_CALL(RunToGoal, ACTOR_SELF, 0, FALSE)
EVT_WAIT_FRAMES(15)
EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE)
EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, 0)
EVT_CALL(YieldTurn)
EVT_CALL(ResetAllActorSounds, ACTOR_SELF)
EVT_CALL(SetActorPos, ACTOR_SELF, 300, 0, 0)
EVT_CALL(AddActorDecoration, ACTOR_SELF, 1, 0, 2)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_cleft_hyper_run)
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(8.0))
EVT_CALL(RunToGoal, ACTOR_SELF, 0, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_cleft_hyper_idle)
EVT_CALL(RemoveActorDecoration, ACTOR_SELF, 1, 0)
EVT_CALL(SetActorVar, ACTOR_SELF, 0, 0)
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_ADDR(N(idleAnimations_80221CD4)))
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_RETURN
EVT_END_CASE_GROUP
EVT_END_SWITCH
EVT_THREAD
EVT_LOOP(25)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(PlayEffect, EFFECT_ID_07, 2, LW(0), LW(1), LW(2), 0, 0, 0, 0, 0, 0, 0, 0, 0)
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
EVT_END_THREAD
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_cleft_hyper_charge)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(12.0))
EVT_CALL(RunToGoal, ACTOR_SELF, 0, FALSE)
EVT_CALL(ResetAllActorSounds, ACTOR_SELF)
EVT_WAIT_FRAMES(2)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LW(0), 0, 0, 0, 8, BS_FLAGS1_SP_EVT_ACTIVE)
EVT_SWITCH(LW(0))
EVT_CASE_OR_EQ(HIT_RESULT_HIT)
EVT_CASE_OR_EQ(HIT_RESULT_QUAKE_IMMUNE)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_THREAD
EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 16, 0)
EVT_SET(LW(0), 0)
EVT_LOOP(60)
EVT_ADD(LW(0), 18)
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, LW(0))
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 0, 0)
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 0)
EVT_END_THREAD
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.0))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 50)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 30, FALSE, TRUE, FALSE)
EVT_SUB(LW(0), 40)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 20, FALSE, TRUE, FALSE)
EVT_SUB(LW(0), 30)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_WAIT_FRAMES(20)
EVT_CALL(YieldTurn)
EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE)
EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, 0)
EVT_CALL(SetActorYaw, ACTOR_SELF, 180)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_cleft_hyper_run)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(8.0))
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(RunToGoal, ACTOR_SELF, 0, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_cleft_hyper_idle)
EVT_CALL(SetActorYaw, ACTOR_SELF, 0)
EVT_CALL(SetActorVar, ACTOR_SELF, 0, 0)
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_ADDR(N(idleAnimations_80221CD4)))
EVT_END_CASE_GROUP
EVT_END_SWITCH
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_RETURN
EVT_END
};
EvtScript N(takeTurn_80221A58) = {
EVT_CALL(GetBattlePhase, LW(0))
EVT_IF_EQ(LW(0), PHASE_FIRST_STRIKE)
EVT_CALL(SetBattleVar, 1, 1)
EVT_EXEC_WAIT(N(80223310))
EVT_RETURN
EVT_END_IF
EVT_CALL(GetActorVar, ACTOR_SELF, 0, LW(0))
EVT_IF_EQ(LW(0), 1)
EVT_EXEC_WAIT(N(80222F1C))
EVT_RETURN
EVT_END_IF
EVT_CALL(GetActorVar, ACTOR_SELF, 0, LW(0))
EVT_IF_EQ(LW(0), 2)
EVT_EXEC_WAIT(N(80220DC0))
EVT_RETURN
EVT_END_IF
EVT_CALL(GetBattleVar, 1, LW(0))
EVT_SWITCH(LW(0))
EVT_CASE_EQ(0)
EVT_CALL(GetActorVar, ACTOR_SELF, 2, LW(0))
EVT_IF_EQ(LW(0), 0)
EVT_CALL(RandInt, 1000, LW(0))
EVT_IF_LT(LW(0), 750)
EVT_CALL(SetBattleVar, 1, 2)
EVT_EXEC_WAIT(N(80220DC0))
EVT_ELSE
EVT_CALL(SetBattleVar, 1, 1)
EVT_EXEC_WAIT(N(80223310))
EVT_END_IF
EVT_ELSE
EVT_CALL(RandInt, 1000, LW(0))
EVT_IF_LT(LW(0), 500)
EVT_CALL(SetBattleVar, 1, 2)
EVT_EXEC_WAIT(N(80220DC0))
EVT_ELSE
EVT_CALL(SetBattleVar, 1, 1)
EVT_EXEC_WAIT(N(80223310))
EVT_END_IF
EVT_END_IF
EVT_CASE_EQ(1)
EVT_EXEC_WAIT(N(80223310))
EVT_RETURN
EVT_CASE_EQ(2)
EVT_EXEC_WAIT(N(80220DC0))
EVT_RETURN
EVT_END_SWITCH
EVT_RETURN
EVT_END
};
s32 N(idleAnimations_80221CD4)[] = {
STATUS_NORMAL, NPC_ANIM_cleft_hyper_idle,
STATUS_STONE, NPC_ANIM_cleft_hyper_still,
STATUS_SLEEP, NPC_ANIM_cleft_hyper_sleep,
STATUS_POISON, NPC_ANIM_cleft_hyper_idle,
STATUS_STOP, NPC_ANIM_cleft_hyper_still,
STATUS_STATIC, NPC_ANIM_cleft_hyper_idle,
STATUS_PARALYZE, NPC_ANIM_cleft_hyper_still,
STATUS_DIZZY, NPC_ANIM_cleft_hyper_dizzy,
STATUS_FEAR, NPC_ANIM_cleft_hyper_dizzy,
STATUS_END,
};
s32 N(idleAnimations_80221D20)[] = {
STATUS_NORMAL, NPC_ANIM_cleft_hyper_Anim_5,
STATUS_STONE, NPC_ANIM_cleft_hyper_inverted_still,
STATUS_SLEEP, NPC_ANIM_cleft_hyper_inverted_sleep,
STATUS_POISON, NPC_ANIM_cleft_hyper_Anim_5,
STATUS_STOP, NPC_ANIM_cleft_hyper_inverted_still,
STATUS_STATIC, NPC_ANIM_cleft_hyper_Anim_5,
STATUS_PARALYZE, NPC_ANIM_cleft_hyper_inverted_still,
STATUS_DIZZY, NPC_ANIM_cleft_hyper_inverted_dizzy,
STATUS_FEAR, NPC_ANIM_cleft_hyper_inverted_dizzy,
STATUS_END,
};
EvtScript N(80221D6C) = {
EVT_CALL(BindIdle, ACTOR_SELF, EVT_ADDR(N(idle_80221DD0)))
EVT_CALL(BindTakeTurn, ACTOR_SELF, EVT_ADDR(N(takeTurn_80223B5C)))
EVT_CALL(BindHandleEvent, ACTOR_SELF, EVT_ADDR(N(handleEvent_80222140)))
EVT_CALL(SetActorVar, ACTOR_SELF, 0, 0)
EVT_RETURN
EVT_END
};
EvtScript N(idle_80221DD0) = {
EVT_RETURN
EVT_END
};
#include "common/SetSpinSmashable.inc.c"
EvtScript N(80221DE0) = {
EVT_CALL(SetActorVar, ACTOR_SELF, 0, 1)
EVT_CALL(SetActorVar, ACTOR_SELF, 1, 2)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_cleft_hyper_run)
EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 16, 0)
EVT_THREAD
EVT_SET(LW(0), 0)
EVT_LOOP(5)
EVT_ADD(LW(0), -36)
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, LW(0))
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
EVT_END_THREAD
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.3))
EVT_SUB(LW(1), 6)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 20, FALSE, TRUE, FALSE)
EVT_CALL(N(StartRumbleWithParams), 200, 10)
EVT_THREAD
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(1.0))
EVT_END_THREAD
EVT_CALL(PlayEffect, EFFECT_ID_1D, 0, LW(0), LW(1), LW(2), 40, 8, EVT_FLOAT(0.0), 20, 0, 0, 0, 0, 0)
EVT_CALL(SetActorPos, ACTOR_SELF, LW(0), 0, LW(2))
EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 0, 0)
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 0)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_cleft_hyper_inverted_idle)
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_ADDR(N(idleAnimations_80221D20)))
EVT_CALL(SetDefenseTable, ACTOR_SELF, 1, EVT_ADDR(N(defenseTable_80220B54)))
EVT_CALL(SetTargetOffset, ACTOR_SELF, 1, 0, 15)
EVT_CALL(func_8027D4C8, ACTOR_SELF, 1, 0, -7)
EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_SPIKY_TOP, 0)
EVT_CALL(N(SetSpinSmashable), 0)
EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, 1)
EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 0, 0)
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 0)
EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE)
EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, 0)
EVT_RETURN
EVT_END
};
EvtScript N(handleEvent_80222140) = {
EVT_CALL(UseIdleAnimation, ACTOR_SELF, FALSE)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 0)
EVT_CALL(GetLastEvent, ACTOR_SELF, LW(0))
EVT_SWITCH(LW(0))
EVT_CASE_OR_EQ(EVENT_HIT_COMBO)
EVT_CASE_OR_EQ(EVENT_HIT)
EVT_CALL(GetLastElement, LW(0))
EVT_SWITCH(LW(0))
EVT_CASE_FLAG(DAMAGE_TYPE_BLAST)
EVT_EXEC_WAIT(N(80221DE0))
EVT_CASE_DEFAULT
EVT_CALL(GetActorVar, ACTOR_SELF, 0, LW(0))
EVT_IF_EQ(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_Anim_9)
EVT_ELSE
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_skid)
EVT_END_IF
EVT_SET_CONST(LW(0), 1)
EVT_EXEC_WAIT(DoNormalHit)
EVT_END_SWITCH
EVT_END_CASE_GROUP
EVT_CASE_EQ(EVENT_BURN_HIT)
EVT_CALL(GetLastElement, LW(0))
EVT_SWITCH(LW(0))
EVT_CASE_FLAG(DAMAGE_TYPE_BLAST)
EVT_EXEC_WAIT(N(80221DE0))
EVT_CASE_DEFAULT
EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_EXPLOSIVE, 1)
EVT_CALL(GetActorVar, ACTOR_SELF, 0, LW(0))
EVT_IF_EQ(LW(0), 1)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_Anim_9)
EVT_SET_CONST(LW(2), -1)
EVT_EXEC_WAIT(DoBurnHit)
EVT_ELSE
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_skid)
EVT_SET_CONST(LW(2), -1)
EVT_EXEC_WAIT(DoBurnHit)
EVT_END_IF
EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_EXPLOSIVE, 0)
EVT_END_SWITCH
EVT_CASE_EQ(EVENT_BURN_DEATH)
EVT_CALL(GetActorVar, ACTOR_SELF, 0, LW(0))
EVT_IF_EQ(LW(0), 1)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_Anim_9)
EVT_SET_CONST(LW(2), -1)
EVT_EXEC_WAIT(DoBurnHit)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_Anim_9)
EVT_EXEC_WAIT(DoDeath)
EVT_ELSE
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_skid)
EVT_SET_CONST(LW(2), -1)
EVT_EXEC_WAIT(DoBurnHit)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_skid)
EVT_EXEC_WAIT(DoDeath)
EVT_END_IF
EVT_RETURN
EVT_CASE_EQ(EVENT_SPIN_SMASH_HIT)
EVT_CALL(GetActorVar, ACTOR_SELF, 0, LW(0))
EVT_IF_EQ(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_Anim_9)
EVT_ELSE
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_skid)
EVT_END_IF
EVT_SET_CONST(LW(0), 1)
EVT_EXEC_WAIT(DoSpinSmashHit)
EVT_CASE_EQ(EVENT_SPIN_SMASH_DEATH)
EVT_CALL(GetActorVar, ACTOR_SELF, 0, LW(0))
EVT_IF_EQ(LW(0), 1)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_Anim_9)
EVT_EXEC_WAIT(DoSpinSmashHit)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_Anim_9)
EVT_EXEC_WAIT(DoDeath)
EVT_ELSE
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_skid)
EVT_EXEC_WAIT(DoSpinSmashHit)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_skid)
EVT_EXEC_WAIT(DoDeath)
EVT_END_IF
EVT_RETURN
EVT_CASE_EQ(EVENT_SHOCK_HIT)
EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 0, 0)
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 0)
EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE)
EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, 0)
EVT_CALL(SetActorVar, ACTOR_SELF, 0, 0)
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_ADDR(N(idleAnimations_80221CD4)))
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_skid)
EVT_EXEC_WAIT(DoShockHit)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_skid)
EVT_EXEC_WAIT(DoJumpBack)
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_run)
EVT_EXEC_WAIT(DoReturnHome)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CASE_EQ(EVENT_SHOCK_DEATH)
EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 0, 0)
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 0)
EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE)
EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, 0)
EVT_CALL(SetActorVar, ACTOR_SELF, 0, 0)
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_ADDR(N(idleAnimations_80221CD4)))
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_skid)
EVT_EXEC_WAIT(DoShockHit)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_skid)
EVT_EXEC_WAIT(DoDeath)
EVT_RETURN
EVT_CASE_EQ(EVENT_STAR_BEAM)
EVT_CALL(GetActorVar, ACTOR_SELF, 0, LW(0))
EVT_IF_EQ(LW(0), 2)
EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 0, 0)
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 0)
EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE)
EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, 0)
EVT_CALL(SetActorVar, ACTOR_SELF, 0, 0)
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_ADDR(N(idleAnimations_80221CD4)))
EVT_END_IF
EVT_CALL(GetActorVar, ACTOR_SELF, 0, LW(0))
EVT_IF_EQ(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_inverted_idle)
EVT_ELSE
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_idle)
EVT_END_IF
EVT_SET_CONST(LW(0), 1)
EVT_EXEC_WAIT(DoImmune)
EVT_CASE_EQ(EVENT_SPIKE_TAUNT)
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_SLEEP | STATUS_FLAG_FROZEN | STATUS_FLAG_FEAR | STATUS_FLAG_PARALYZE | STATUS_FLAG_DIZZY | STATUS_FLAG_STONE | STATUS_FLAG_STOP)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_cleft_hyper_laugh)
EVT_END_IF
EVT_WAIT_FRAMES(10)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(3))
EVT_IF_FLAG(LW(3), STATUS_FLAG_SHRINK)
EVT_ADD(LW(0), -3)
EVT_ADD(LW(1), 10)
EVT_ELSE
EVT_ADD(LW(0), -8)
EVT_ADD(LW(1), 27)
EVT_END_IF
EVT_CALL(PlayEffect, EFFECT_ID_1A, 0, LW(0), LW(1), LW(2), 20, 0, 0, 0, 0, 0, 0, 0, 0)
EVT_WAIT_FRAMES(20)
EVT_CASE_OR_EQ(EVENT_UNKNOWN_TRIGGER)
EVT_CASE_OR_EQ(EVENT_IMMUNE)
EVT_CASE_OR_EQ(EVENT_AIR_LIFT_FAILED)
EVT_CALL(GetActorVar, ACTOR_SELF, 0, LW(0))
EVT_IF_EQ(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_inverted_idle)
EVT_ELSE
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_idle)
EVT_END_IF
EVT_SET_CONST(LW(0), 1)
EVT_EXEC_WAIT(DoImmune)
EVT_END_CASE_GROUP
EVT_CASE_EQ(EVENT_DEATH)
EVT_CALL(GetActorVar, ACTOR_SELF, 0, LW(0))
EVT_IF_EQ(LW(0), 1)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_Anim_9)
EVT_EXEC_WAIT(DoNormalHit)
EVT_WAIT_FRAMES(10)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_Anim_9)
EVT_EXEC_WAIT(DoDeath)
EVT_ELSE
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_skid)
EVT_EXEC_WAIT(DoNormalHit)
EVT_WAIT_FRAMES(10)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_skid)
EVT_EXEC_WAIT(DoDeath)
EVT_END_IF
EVT_RETURN
EVT_CASE_EQ(EVENT_RECOVER_STATUS)
EVT_CALL(GetActorVar, ACTOR_SELF, 0, LW(0))
EVT_IF_EQ(LW(0), 0)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_idle)
EVT_EXEC_WAIT(DoRecover)
EVT_END_IF
EVT_CASE_EQ(EVENT_SCARE_AWAY)
EVT_CALL(GetActorVar, ACTOR_SELF, 0, LW(0))
EVT_IF_EQ(LW(0), 1)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_inverted_idle)
EVT_EXEC_WAIT(DoImmune)
EVT_ELSE
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_run)
EVT_SET_CONST(LW(2), NPC_ANIM_cleft_hyper_skid)
EVT_EXEC_WAIT(DoScareAway)
EVT_RETURN
EVT_END_IF
EVT_CASE_EQ(EVENT_BEGIN_AIR_LIFT)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_inverted_dizzy)
EVT_EXEC_WAIT(DoAirLift)
EVT_CASE_EQ(EVENT_BLOW_AWAY)
EVT_CALL(GetActorVar, ACTOR_SELF, 0, LW(0))
EVT_IF_EQ(LW(0), 1)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_inverted_dizzy)
EVT_ELSE
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_hyper_skid)
EVT_END_IF
EVT_EXEC_WAIT(DoBlowAway)
EVT_RETURN
EVT_CASE_DEFAULT
EVT_END_SWITCH
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_RETURN
EVT_END
};
EvtScript N(80222F1C) = {
EVT_CALL(UseIdleAnimation, ACTOR_SELF, FALSE)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 0)
EVT_CALL(AddActorDecoration, ACTOR_SELF, 1, 0, 2)
EVT_CALL(SetAnimationRate, ACTOR_SELF, 1, EVT_FLOAT(3.0))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_cleft_hyper_inverted_idle)
EVT_WAIT_FRAMES(20)
EVT_CALL(SetAnimationRate, ACTOR_SELF, 1, EVT_FLOAT(1.0))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_cleft_hyper_Anim_5)
EVT_CALL(RemoveActorDecoration, ACTOR_SELF, 1, 0)
EVT_CALL(GetActorVar, ACTOR_SELF, 1, LW(0))
EVT_IF_GT(LW(0), 0)
EVT_SUB(LW(0), 1)
EVT_CALL(SetActorVar, ACTOR_SELF, 1, LW(0))
EVT_ELSE
EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 16, 0)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_cleft_hyper_inverted_idle)
EVT_THREAD
EVT_WAIT_FRAMES(3)
EVT_LOOP(5)
EVT_ADD(LW(0), 36)
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, LW(0))
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
EVT_END_THREAD
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(1), 6)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.3))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_CALL(N(StartRumbleWithParams), 200, 10)
EVT_THREAD
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(1.0))
EVT_END_THREAD
EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 0, 0)
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 0)
EVT_CALL(SetActorPos, ACTOR_SELF, LW(0), 0, LW(2))
EVT_CALL(SetActorVar, ACTOR_SELF, 0, 0)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_cleft_hyper_idle)
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_ADDR(N(idleAnimations_80221CD4)))
EVT_CALL(SetDefenseTable, ACTOR_SELF, 1, EVT_ADDR(N(defenseTable_80220B40)))
EVT_CALL(SetTargetOffset, ACTOR_SELF, 1, 0, 22)
EVT_CALL(func_8027D4C8, ACTOR_SELF, 1, 0, -10)
EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_SPIKY_TOP, 1)
EVT_WAIT_FRAMES(1)
EVT_CALL(N(SetSpinSmashable), 1)
EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, 0)
EVT_END_IF
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_RETURN
EVT_END
};
EvtScript N(80223310) = {
EVT_CALL(UseIdleAnimation, ACTOR_SELF, FALSE)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 0)
EVT_CALL(SetTargetActor, ACTOR_SELF, ACTOR_PLAYER)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_63)
EVT_CALL(BattleCamTargetActor, ACTOR_SELF)
EVT_CALL(func_8024ECF8, -1, 1, 0)
EVT_CALL(MoveBattleCamOver, 30)
EVT_THREAD
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(PlayEffect, EFFECT_ID_1D, 1, LW(0), LW(1), LW(2), 32, 4, 0, 10, 0, 0, 0, 0, 0)
EVT_WAIT_FRAMES(10)
EVT_CALL(PlayEffect, EFFECT_ID_1D, 1, LW(0), LW(1), LW(2), 32, 4, 0, 10, 0, 0, 0, 0, 0)
EVT_WAIT_FRAMES(5)
EVT_CALL(PlayEffect, EFFECT_ID_1D, 1, LW(0), LW(1), LW(2), 32, 4, 0, 10, 0, 0, 0, 0, 0)
EVT_END_THREAD
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_cleft_hyper_charge_still)
EVT_WAIT_FRAMES(10)
EVT_CALL(SetTargetActor, ACTOR_SELF, ACTOR_PLAYER)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_cleft_hyper_charge)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(AddGoalPos, ACTOR_SELF, 50, 0, -5)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(4.0))
EVT_CALL(RunToGoal, ACTOR_SELF, 0, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_cleft_hyper_still)
EVT_WAIT_FRAMES(8)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x20D1)
EVT_CALL(SetActorSounds, ACTOR_SELF, 0, 0, 0)
EVT_CALL(EnemyTestTarget, ACTOR_SELF, LW(0), 0, 0, 3, BS_FLAGS1_10)
EVT_SWITCH(LW(0))
EVT_CASE_OR_EQ(HIT_RESULT_MISS)
EVT_CASE_OR_EQ(HIT_RESULT_LUCKY)
EVT_SET(LW(10), LW(0))
EVT_IF_EQ(LW(10), HIT_RESULT_LUCKY)
EVT_THREAD
EVT_WAIT_FRAMES(10)
EVT_CALL(EnemyTestTarget, ACTOR_SELF, LW(0), DAMAGE_TYPE_TRIGGER_LUCKY, 0, 0, 0)
EVT_END_THREAD
EVT_END_IF
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_cleft_hyper_charge)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 100)
EVT_SET(LW(1), 0)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(8.0))
EVT_CALL(RunToGoal, ACTOR_SELF, 0, FALSE)
EVT_CALL(SetPartRotation, ACTOR_SELF, 1, 0, 0, 45)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_cleft_hyper_skid)
EVT_WAIT_FRAMES(15)
EVT_WAIT_FRAMES(8)
EVT_CALL(ResetAllActorSounds, ACTOR_SELF)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(YieldTurn)
EVT_CALL(SetPartRotation, ACTOR_SELF, 1, 0, 0, 0)
EVT_CALL(SetActorYaw, ACTOR_SELF, 180)
EVT_CALL(AddActorDecoration, ACTOR_SELF, 1, 0, 2)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_cleft_hyper_run)
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(8.0))
EVT_CALL(RunToGoal, ACTOR_SELF, 0, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_cleft_hyper_idle)
EVT_CALL(RemoveActorDecoration, ACTOR_SELF, 1, 0)
EVT_CALL(SetActorYaw, ACTOR_SELF, 0)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_RETURN
EVT_END_CASE_GROUP
EVT_END_SWITCH
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_cleft_hyper_charge)
EVT_CALL(GetActorPos, ACTOR_PLAYER, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 20)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(8.0))
EVT_CALL(RunToGoal, ACTOR_SELF, 0, FALSE)
EVT_CALL(ResetAllActorSounds, ACTOR_SELF)
EVT_WAIT_FRAMES(2)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LW(0), 0, 0, 0, 3, BS_FLAGS1_SP_EVT_ACTIVE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_cleft_hyper_idle)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_SWITCH(LW(0))
EVT_CASE_OR_EQ(HIT_RESULT_HIT)
EVT_CASE_OR_EQ(HIT_RESULT_QUAKE_IMMUNE)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 15)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(2.4))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 6, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_cleft_hyper_idle)
EVT_WAIT_FRAMES(5)
EVT_CALL(YieldTurn)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_cleft_hyper_run)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(8.0))
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(RunToGoal, ACTOR_SELF, 0, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_cleft_hyper_idle)
EVT_END_CASE_GROUP
EVT_END_SWITCH
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_RETURN
EVT_END
};
EvtScript N(takeTurn_80223B5C) = {
EVT_CALL(GetActorVar, ACTOR_SELF, 0, LW(0))
EVT_IF_EQ(LW(0), 1)
EVT_EXEC_WAIT(N(80222F1C))
EVT_ELSE
EVT_EXEC_WAIT(N(80223310))
EVT_END_IF
EVT_RETURN
EVT_END
};

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,725 @@
#include "common.h"
#include "effects.h"
#include "battle/battle.h"
#include "script_api/battle.h"
#include "sprite/npc/goomba.h"
#define NAMESPACE b_area_arn_hypergoomba
extern s32 N(idleAnimations_80219818)[];
extern EvtScript N(init_802188C0);
extern EvtScript N(idle_802198FC);
extern EvtScript N(handleEvent_80219BD8);
extern EvtScript N(takeTurn_802195F0);
extern EvtScript N(nextTurn_80218950);
extern EvtScript N(takeTurn_8021A628);
s32 N(defenseTable_80218770)[] = {
ELEMENT_NORMAL, 0,
ELEMENT_END,
};
s32 N(statusTable_8021877C)[] = {
STATUS_NORMAL, 0,
STATUS_DEFAULT, 0,
STATUS_SLEEP, 80,
STATUS_POISON, 100,
STATUS_FROZEN, 0,
STATUS_DIZZY, 80,
STATUS_FEAR, 100,
STATUS_STATIC, 100,
STATUS_PARALYZE, 100,
STATUS_SHRINK, 80,
STATUS_STOP, 90,
STATUS_DEFAULT_TURN_MOD, 0,
STATUS_SLEEP_TURN_MOD, 0,
STATUS_POISON_TURN_MOD, 0,
STATUS_FROZEN_TURN_MOD, 0,
STATUS_DIZZY_TURN_MOD, 0,
STATUS_FEAR_TURN_MOD, 0,
STATUS_STATIC_TURN_MOD, 0,
STATUS_PARALYZE_TURN_MOD, 0,
STATUS_SHRINK_TURN_MOD, 0,
STATUS_STOP_TURN_MOD, 0,
STATUS_END,
};
ActorPartBlueprint N(partsTable_80218828)[] = {
{
.flags = ACTOR_PART_FLAG_MULTI_TARGET,
.index = 1,
.posOffset = { 0, 0, 0 },
.targetOffset = { 0, 22 },
.opacity = 255,
.idleAnimations = N(idleAnimations_80219818),
.defenseTable = N(defenseTable_80218770),
.eventFlags = ACTOR_EVENT_FLAG_0,
.elementImmunityFlags = 0,
.unk_1C = 246,
},
};
ActorBlueprint NAMESPACE = {
.flags = 0,
.type = ACTOR_TYPE_HYPER_GOOMBA,
.level = 12,
.maxHP = 7,
.partCount = ARRAY_COUNT(N(partsTable_80218828)),
.partsData = N(partsTable_80218828),
.script = N(init_802188C0),
.statusTable = N(statusTable_8021877C),
.escapeChance = 60,
.airLiftChance = 90,
.spookChance = 90,
.baseStatusChance = 80,
.upAndAwayChance = 95,
.spinSmashReq = 0,
.powerBounceChance = 100,
.coinReward = 1,
.size = { 24, 24 },
.hpBarOffset = { 0, 0 },
.statusIconOffset = { -10, 20 },
.statusMessageOffset = { 10, 20 },
};
s32 N(idleAnimations_80218874)[] = {
STATUS_NORMAL, NPC_ANIM_goomba_hyper_asleep,
STATUS_STONE, NPC_ANIM_goomba_hyper_still,
STATUS_SLEEP, NPC_ANIM_goomba_hyper_asleep,
STATUS_POISON, NPC_ANIM_goomba_hyper_asleep,
STATUS_STOP, NPC_ANIM_goomba_hyper_still,
STATUS_STATIC, NPC_ANIM_goomba_hyper_asleep,
STATUS_PARALYZE, NPC_ANIM_goomba_hyper_still,
STATUS_DIZZY, NPC_ANIM_goomba_hyper_dizzy,
STATUS_FEAR, NPC_ANIM_goomba_hyper_dizzy,
STATUS_END,
};
EvtScript N(init_802188C0) = {
EVT_CALL(BindIdle, ACTOR_SELF, EVT_ADDR(N(idle_802198FC)))
EVT_CALL(BindHandleEvent, ACTOR_SELF, EVT_ADDR(N(handleEvent_80219BD8)))
EVT_CALL(BindTakeTurn, ACTOR_SELF, EVT_ADDR(N(takeTurn_802195F0)))
EVT_CALL(BindNextTurn, ACTOR_SELF, EVT_ADDR(N(nextTurn_80218950)))
EVT_CALL(SetActorVar, ACTOR_SELF, 0, 0)
EVT_CALL(SetActorVar, ACTOR_SELF, 1, 0)
EVT_RETURN
EVT_END
};
EvtScript N(nextTurn_80218950) = {
EVT_CALL(GetBattlePhase, LW(0))
EVT_SWITCH(LW(0))
EVT_CASE_EQ(PHASE_PLAYER_BEGIN)
EVT_CASE_EQ(PHASE_ENEMY_BEGIN)
EVT_CASE_EQ(PHASE_ENEMY_END)
EVT_CALL(SetBattleVar, 1, 0)
EVT_CALL(SetActorVar, ACTOR_SELF, 1, 1)
EVT_END_SWITCH
EVT_RETURN
EVT_END
};
#include "common/StartRumbleWithParams.inc.c"
EvtScript N(802189D4) = {
EVT_CALL(UseIdleAnimation, ACTOR_SELF, FALSE)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 0)
EVT_CALL(SetTargetActor, ACTOR_SELF, ACTOR_PLAYER)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetActorVar, ACTOR_SELF, 0, LW(0))
EVT_IF_EQ(LW(0), 0)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_14)
EVT_CALL(BattleCamTargetActor, ACTOR_SELF)
EVT_CALL(MoveBattleCamOver, 20)
EVT_WAIT_FRAMES(20)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, SOUND_POWER_UP)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(1), 10)
EVT_CALL(PlayEffect, EFFECT_ID_6B, 6, LW(0), LW(1), LW(2), EVT_FLOAT(1.0), 45, 0, 0, 0, 0, 0, 0, 0)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_hyper_run)
EVT_WAIT_FRAMES(30)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(MoveBattleCamOver, 20)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.0))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), 0, LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 20, FALSE, TRUE, FALSE)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x20DD)
EVT_CALL(N(StartRumbleWithParams), 128, 10)
EVT_THREAD
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.5))
EVT_END_THREAD
EVT_CALL(SetActorVar, ACTOR_SELF, 0, 1)
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_ADDR(N(idleAnimations_80218874)))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_hyper_idle)
EVT_CALL(EnableActorGlow, ACTOR_SELF, TRUE)
EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, 1)
EVT_WAIT_FRAMES(2)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_RETURN
EVT_END_IF
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_63)
EVT_CALL(BattleCamTargetActor, ACTOR_SELF)
EVT_CALL(func_8024ECF8, -1, 1, 0)
EVT_LOOP(20)
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 1, 0, 0)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorDispOffset, ACTOR_SELF, -1, 0, 0)
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, 0, 0)
EVT_CALL(EnemyTestTarget, ACTOR_SELF, LW(0), 0, 0, 1, BS_FLAGS1_10)
EVT_SWITCH(LW(0))
EVT_CASE_OR_EQ(HIT_RESULT_MISS)
EVT_CASE_OR_EQ(HIT_RESULT_LUCKY)
EVT_SET(LW(10), LW(0))
EVT_THREAD
EVT_LOOP(0)
EVT_CALL(GetActorPos, ACTOR_PLAYER, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 30)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(3), LW(4), LW(5))
EVT_IF_GT(LW(0), LW(3))
EVT_BREAK_LOOP
EVT_END_IF
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_B)
EVT_IF_EQ(LW(10), HIT_RESULT_LUCKY)
EVT_CALL(EnemyTestTarget, ACTOR_SELF, LW(0), DAMAGE_TYPE_TRIGGER_LUCKY, 0, 0, 0)
EVT_END_IF
EVT_WAIT_FRAMES(15)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_END_THREAD
EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 12, 0)
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 80)
EVT_CALL(SetActorSounds, ACTOR_SELF, 2, 271, 0)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(AddGoalPos, ACTOR_SELF, -200, 0, 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.01))
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(15.0))
EVT_CALL(JumpToGoal, ACTOR_SELF, 0, FALSE, TRUE, FALSE)
EVT_CALL(ResetAllActorSounds, ACTOR_SELF)
EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 0, 0)
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 0)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorPos, ACTOR_SELF, LW(0), 0, LW(2))
EVT_WAIT_FRAMES(20)
EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE)
EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, 0)
EVT_CALL(YieldTurn)
EVT_CALL(SetActorPos, ACTOR_SELF, 300, 0, 0)
EVT_CALL(AddActorDecoration, ACTOR_SELF, 1, 0, 2)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_hyper_run)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(8.0))
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(RunToGoal, ACTOR_SELF, 0, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_hyper_idle)
EVT_CALL(RemoveActorDecoration, ACTOR_SELF, 1, 0)
EVT_CALL(SetActorVar, ACTOR_SELF, 0, 0)
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_ADDR(N(idleAnimations_80219818)))
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_RETURN
EVT_END_CASE_GROUP
EVT_END_SWITCH
EVT_CALL(SetActorSounds, ACTOR_SELF, 2, 271, 0)
EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 12, 0)
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 80)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.01))
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(15.0))
EVT_CALL(JumpToGoal, ACTOR_SELF, 0, FALSE, TRUE, FALSE)
EVT_WAIT_FRAMES(2)
EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LW(0), 0, 0, 0, 8, BS_FLAGS1_SP_EVT_ACTIVE)
EVT_SWITCH(LW(0))
EVT_CASE_OR_EQ(HIT_RESULT_HIT)
EVT_CASE_OR_EQ(HIT_RESULT_QUAKE_IMMUNE)
EVT_THREAD
EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 12, 0)
EVT_SET(LW(0), 80)
EVT_LOOP(60)
EVT_ADD(LW(0), 18)
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, LW(0))
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 0, 0)
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 0)
EVT_END_THREAD
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(ResetAllActorSounds, ACTOR_SELF)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SET(LW(1), 0)
EVT_SUB(LW(0), 50)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 30, FALSE, TRUE, FALSE)
EVT_SUB(LW(0), 40)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 20, FALSE, TRUE, FALSE)
EVT_SUB(LW(0), 30)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_WAIT_FRAMES(10)
EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE)
EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, 0)
EVT_CALL(YieldTurn)
EVT_CALL(SetActorYaw, ACTOR_SELF, 180)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_hyper_run)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(8.0))
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(RunToGoal, ACTOR_SELF, 0, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_hyper_idle)
EVT_CALL(SetActorYaw, ACTOR_SELF, 0)
EVT_CALL(SetActorVar, ACTOR_SELF, 0, 0)
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_ADDR(N(idleAnimations_80219818)))
EVT_END_CASE_GROUP
EVT_END_SWITCH
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_RETURN
EVT_END
};
EvtScript N(takeTurn_802195F0) = {
EVT_CALL(GetBattlePhase, LW(0))
EVT_IF_EQ(LW(0), PHASE_FIRST_STRIKE)
EVT_CALL(SetBattleVar, 1, 1)
EVT_EXEC_WAIT(N(takeTurn_8021A628))
EVT_RETURN
EVT_END_IF
EVT_CALL(GetActorVar, ACTOR_SELF, 0, LW(0))
EVT_IF_EQ(LW(0), 1)
EVT_EXEC_WAIT(N(802189D4))
EVT_RETURN
EVT_END_IF
EVT_CALL(GetBattleVar, 1, LW(0))
EVT_SWITCH(LW(0))
EVT_CASE_EQ(0)
EVT_CALL(GetActorVar, ACTOR_SELF, 1, LW(0))
EVT_IF_EQ(LW(0), 0)
EVT_CALL(RandInt, 1000, LW(0))
EVT_IF_LT(LW(0), 750)
EVT_CALL(SetBattleVar, 1, 2)
EVT_EXEC_WAIT(N(802189D4))
EVT_ELSE
EVT_CALL(SetBattleVar, 1, 1)
EVT_EXEC_WAIT(N(takeTurn_8021A628))
EVT_END_IF
EVT_ELSE
EVT_CALL(RandInt, 1000, LW(0))
EVT_IF_LT(LW(0), 500)
EVT_CALL(SetBattleVar, 1, 2)
EVT_EXEC_WAIT(N(802189D4))
EVT_ELSE
EVT_CALL(SetBattleVar, 1, 1)
EVT_EXEC_WAIT(N(takeTurn_8021A628))
EVT_END_IF
EVT_END_IF
EVT_CASE_EQ(1)
EVT_EXEC_WAIT(N(takeTurn_8021A628))
EVT_CASE_EQ(2)
EVT_EXEC_WAIT(N(802189D4))
EVT_END_SWITCH
EVT_RETURN
EVT_END
};
s32 N(idleAnimations_80219818)[] = {
STATUS_NORMAL, NPC_ANIM_goomba_hyper_idle,
STATUS_STONE, NPC_ANIM_goomba_hyper_still,
STATUS_SLEEP, NPC_ANIM_goomba_hyper_asleep,
STATUS_POISON, NPC_ANIM_goomba_hyper_idle,
STATUS_STOP, NPC_ANIM_goomba_hyper_still,
STATUS_STATIC, NPC_ANIM_goomba_hyper_idle,
STATUS_PARALYZE, NPC_ANIM_goomba_hyper_still,
STATUS_DIZZY, NPC_ANIM_goomba_hyper_dizzy,
STATUS_FEAR, NPC_ANIM_goomba_hyper_dizzy,
STATUS_END,
};
s32 N(idleAnimations_80219864)[] = {
STATUS_NORMAL, NPC_ANIM_goomba_hyper_run,
STATUS_STONE, NPC_ANIM_goomba_hyper_still,
STATUS_SLEEP, NPC_ANIM_goomba_hyper_asleep,
STATUS_POISON, NPC_ANIM_goomba_hyper_idle,
STATUS_STOP, NPC_ANIM_goomba_hyper_still,
STATUS_STATIC, NPC_ANIM_goomba_hyper_run,
STATUS_PARALYZE, NPC_ANIM_goomba_hyper_still,
STATUS_DIZZY, NPC_ANIM_goomba_hyper_dizzy,
STATUS_FEAR, NPC_ANIM_goomba_hyper_dizzy,
STATUS_END,
};
EvtScript N(802198B0) = {
EVT_CALL(BindTakeTurn, ACTOR_SELF, EVT_ADDR(N(takeTurn_8021A628)))
EVT_CALL(BindIdle, ACTOR_SELF, EVT_ADDR(N(idle_802198FC)))
EVT_CALL(BindHandleEvent, ACTOR_SELF, EVT_ADDR(N(handleEvent_80219BD8)))
EVT_RETURN
EVT_END
};
EvtScript N(idle_802198FC) = {
EVT_LABEL(10)
EVT_CALL(RandInt, 80, LW(0))
EVT_ADD(LW(0), 80)
EVT_LOOP(LW(0))
EVT_LABEL(0)
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(1))
EVT_IF_FLAG(LW(1), STATUS_FLAG_SLEEP | STATUS_FLAG_FROZEN | STATUS_FLAG_FEAR | STATUS_FLAG_PARALYZE | STATUS_FLAG_DIZZY | STATUS_FLAG_STONE | STATUS_FLAG_STOP)
EVT_WAIT_FRAMES(1)
EVT_GOTO(0)
EVT_END_IF
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 5)
EVT_CALL(SetActorIdleSpeed, ACTOR_SELF, EVT_FLOAT(1.0))
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_ADDR(N(idleAnimations_80219864)))
EVT_CALL(SetIdleGoal, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(IdleRunToGoal, ACTOR_SELF, 0)
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_ADDR(N(idleAnimations_80219818)))
EVT_LOOP(20)
EVT_LABEL(1)
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(1))
EVT_IF_FLAG(LW(1), STATUS_FLAG_SLEEP | STATUS_FLAG_FROZEN | STATUS_FLAG_FEAR | STATUS_FLAG_PARALYZE | STATUS_FLAG_DIZZY | STATUS_FLAG_STONE | STATUS_FLAG_STOP)
EVT_WAIT_FRAMES(1)
EVT_GOTO(1)
EVT_END_IF
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 5)
EVT_CALL(SetActorIdleSpeed, ACTOR_SELF, EVT_FLOAT(1.0))
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_ADDR(N(idleAnimations_80219864)))
EVT_CALL(SetIdleGoal, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(IdleRunToGoal, ACTOR_SELF, 0)
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_ADDR(N(idleAnimations_80219818)))
EVT_LOOP(80)
EVT_LABEL(2)
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(1))
EVT_IF_FLAG(LW(1), STATUS_FLAG_SLEEP | STATUS_FLAG_FROZEN | STATUS_FLAG_FEAR | STATUS_FLAG_PARALYZE | STATUS_FLAG_DIZZY | STATUS_FLAG_STONE | STATUS_FLAG_STOP)
EVT_WAIT_FRAMES(1)
EVT_GOTO(2)
EVT_END_IF
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
EVT_GOTO(10)
EVT_RETURN
EVT_END
};
EvtScript N(handleEvent_80219BD8) = {
EVT_CALL(UseIdleAnimation, ACTOR_SELF, FALSE)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 0)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
EVT_CALL(GetLastEvent, ACTOR_SELF, LW(0))
EVT_SWITCH(LW(0))
EVT_CASE_OR_EQ(EVENT_HIT_COMBO)
EVT_CASE_OR_EQ(EVENT_HIT)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_goomba_hyper_pain)
EVT_EXEC_WAIT(DoNormalHit)
EVT_END_CASE_GROUP
EVT_CASE_EQ(EVENT_BURN_HIT)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_goomba_hyper_burn_pain)
EVT_SET_CONST(LW(2), NPC_ANIM_goomba_hyper_burn_dead)
EVT_EXEC_WAIT(DoBurnHit)
EVT_CASE_EQ(EVENT_BURN_DEATH)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_goomba_hyper_burn_pain)
EVT_SET_CONST(LW(2), NPC_ANIM_goomba_hyper_burn_dead)
EVT_EXEC_WAIT(DoBurnHit)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_goomba_hyper_burn_dead)
EVT_EXEC_WAIT(DoDeath)
EVT_RETURN
EVT_CASE_EQ(EVENT_SPIN_SMASH_HIT)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_goomba_hyper_pain)
EVT_EXEC_WAIT(DoSpinSmashHit)
EVT_CASE_EQ(EVENT_SPIN_SMASH_DEATH)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_goomba_hyper_pain)
EVT_EXEC_WAIT(DoSpinSmashHit)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_goomba_hyper_dead)
EVT_EXEC_WAIT(DoDeath)
EVT_RETURN
EVT_CASE_EQ(EVENT_SHOCK_HIT)
EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 0, 0)
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 0)
EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE)
EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, 0)
EVT_CALL(SetActorVar, ACTOR_SELF, 0, 0)
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_ADDR(N(idleAnimations_80219818)))
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_goomba_hyper_electrocute)
EVT_EXEC_WAIT(DoShockHit)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_goomba_hyper_pain)
EVT_EXEC_WAIT(DoJumpBack)
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimationRate, ACTOR_SELF, 1, EVT_FLOAT(2.0))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_hyper_dizzy)
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(8.0))
EVT_CALL(RunToGoal, ACTOR_SELF, 0, FALSE)
EVT_CALL(SetAnimationRate, ACTOR_SELF, 1, EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(5)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_hyper_idle)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CASE_EQ(EVENT_SHOCK_DEATH)
EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 0, 0)
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 0)
EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE)
EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, 0)
EVT_CALL(SetActorVar, ACTOR_SELF, 0, 0)
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_ADDR(N(idleAnimations_80219818)))
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_goomba_hyper_electrocute)
EVT_EXEC_WAIT(DoShockHit)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_goomba_hyper_dead)
EVT_EXEC_WAIT(DoDeath)
EVT_RETURN
EVT_CASE_EQ(EVENT_STAR_BEAM)
EVT_CALL(GetActorVar, ACTOR_SELF, 0, LW(0))
EVT_IF_EQ(LW(0), 1)
EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 0, 0)
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 0)
EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE)
EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, 0)
EVT_CALL(SetActorVar, ACTOR_SELF, 0, 0)
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_ADDR(N(idleAnimations_80219818)))
EVT_END_IF
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_goomba_hyper_idle)
EVT_EXEC_WAIT(DoImmune)
EVT_CASE_OR_EQ(EVENT_UNKNOWN_TRIGGER)
EVT_CASE_OR_EQ(EVENT_IMMUNE)
EVT_CASE_OR_EQ(EVENT_AIR_LIFT_FAILED)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_goomba_hyper_idle)
EVT_EXEC_WAIT(DoImmune)
EVT_END_CASE_GROUP
EVT_CASE_EQ(EVENT_DEATH)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_goomba_hyper_pain)
EVT_EXEC_WAIT(DoNormalHit)
EVT_WAIT_FRAMES(10)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_goomba_hyper_dead)
EVT_EXEC_WAIT(DoDeath)
EVT_RETURN
EVT_CASE_EQ(EVENT_END_FIRST_STRIKE)
EVT_CALL(SetAnimationRate, ACTOR_SELF, 1, EVT_FLOAT(2.0))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_hyper_run)
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(4.0))
EVT_CALL(RunToGoal, ACTOR_SELF, 0, FALSE)
EVT_CALL(SetAnimationRate, ACTOR_SELF, 1, EVT_FLOAT(1.0))
EVT_CALL(HPBarToHome, ACTOR_SELF)
EVT_CASE_EQ(EVENT_RECOVER_STATUS)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_goomba_hyper_idle)
EVT_EXEC_WAIT(DoRecover)
EVT_CASE_EQ(EVENT_SCARE_AWAY)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_goomba_hyper_run)
EVT_SET_CONST(LW(2), NPC_ANIM_goomba_hyper_pain)
EVT_EXEC_WAIT(DoScareAway)
EVT_RETURN
EVT_CASE_EQ(EVENT_BEGIN_AIR_LIFT)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_goomba_hyper_run)
EVT_EXEC_WAIT(DoAirLift)
EVT_CASE_EQ(EVENT_BLOW_AWAY)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_goomba_hyper_pain)
EVT_EXEC_WAIT(DoBlowAway)
EVT_RETURN
EVT_CASE_DEFAULT
EVT_END_SWITCH
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_hyper_idle)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_RETURN
EVT_END
};
#include "common/anglestuff.inc.c"
EvtScript N(takeTurn_8021A628) = {
EVT_CALL(UseIdleAnimation, ACTOR_SELF, FALSE)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 0)
EVT_CALL(SetTargetActor, ACTOR_SELF, ACTOR_PLAYER)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_63)
EVT_CALL(BattleCamTargetActor, ACTOR_SELF)
EVT_CALL(func_8024ECF8, -1, 1, 0)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_hyper_run)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(AddGoalPos, ACTOR_SELF, 50, 0, 0)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(6.0))
EVT_CALL(RunToGoal, ACTOR_SELF, 0, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_hyper_idle)
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, -1, 0)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, -2, 0)
EVT_WAIT_FRAMES(5)
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, 0, 0)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_hyper_headbonk)
EVT_CALL(EnemyTestTarget, ACTOR_SELF, LW(0), 0, 0, 1, BS_FLAGS1_10)
EVT_SWITCH(LW(0))
EVT_CASE_OR_EQ(HIT_RESULT_MISS)
EVT_CASE_OR_EQ(HIT_RESULT_LUCKY)
EVT_SET(LW(10), LW(0))
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 10)
EVT_SET(LW(1), 10)
EVT_ADD(LW(2), 3)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2))
EVT_THREAD
EVT_CALL(GetActorPos, ACTOR_SELF, LW(1), LW(2), LW(0))
EVT_SET(LW(0), 0)
EVT_LOOP(16)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(4), LW(5), LW(6))
EVT_CALL(N(AngleCalculate), LW(1), LW(2), LW(4), LW(5), LW(0))
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, LW(0))
EVT_SET(LW(1), LW(4))
EVT_SET(LW(2), LW(5))
EVT_SET(LW(3), LW(6))
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
EVT_END_THREAD
EVT_THREAD
EVT_WAIT_FRAMES(6)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_hyper_headbonk)
EVT_END_THREAD
EVT_CALL(JumpToGoal, ACTOR_SELF, 16, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_hyper_asleep)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, 5, 0)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.3), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, -2, 0)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, 7, 0)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_hyper_pain)
EVT_WAIT_FRAMES(5)
EVT_IF_EQ(LW(10), HIT_RESULT_LUCKY)
EVT_CALL(EnemyTestTarget, ACTOR_SELF, LW(0), DAMAGE_TYPE_TRIGGER_LUCKY, 0, 0, 0)
EVT_END_IF
EVT_WAIT_FRAMES(5)
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, 0, 0)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_hyper_headbonk)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 20)
EVT_SET(LW(1), 0)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(2.0))
EVT_THREAD
EVT_WAIT_FRAMES(4)
EVT_SET(LW(0), 180)
EVT_LOOP(4)
EVT_SUB(LW(0), 45)
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, LW(0))
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_hyper_headbonk)
EVT_END_THREAD
EVT_CALL(JumpToGoal, ACTOR_SELF, 15, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_hyper_dizzy)
EVT_WAIT_FRAMES(5)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(YieldTurn)
EVT_CALL(SetActorYaw, ACTOR_SELF, 180)
EVT_CALL(AddActorDecoration, ACTOR_SELF, 1, 0, 2)
EVT_CALL(SetAnimationRate, ACTOR_SELF, 1, EVT_FLOAT(2.0))
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(8.0))
EVT_CALL(RunToGoal, ACTOR_SELF, 0, FALSE)
EVT_CALL(SetAnimationRate, ACTOR_SELF, 1, EVT_FLOAT(1.0))
EVT_CALL(SetActorYaw, ACTOR_SELF, 0)
EVT_WAIT_FRAMES(5)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_hyper_idle)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CALL(RemoveActorDecoration, ACTOR_SELF, 1, 0)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_RETURN
EVT_END_CASE_GROUP
EVT_CASE_DEFAULT
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2))
EVT_THREAD
EVT_CALL(GetActorPos, ACTOR_SELF, LW(1), LW(2), LW(0))
EVT_SET(LW(0), 0)
EVT_LOOP(16)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(4), LW(5), LW(6))
EVT_CALL(N(AngleCalculate), LW(1), LW(2), LW(4), LW(5), LW(0))
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, LW(0))
EVT_SET(LW(1), LW(4))
EVT_SET(LW(2), LW(5))
EVT_SET(LW(3), LW(6))
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
EVT_END_THREAD
EVT_THREAD
EVT_WAIT_FRAMES(6)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_hyper_headbonk)
EVT_END_THREAD
EVT_CALL(JumpToGoal, ACTOR_SELF, 16, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_hyper_pre_headbonk)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.3), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_END_SWITCH
EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LW(0), 0, 0, 0, 1, BS_FLAGS1_SP_EVT_ACTIVE)
EVT_SWITCH(LW(0))
EVT_CASE_OR_EQ(HIT_RESULT_HIT)
EVT_CASE_OR_EQ(HIT_RESULT_QUAKE_IMMUNE)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 0)
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, 0, 0)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_hyper_idle)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 40)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_ADD(LW(0), 30)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 8, FALSE, TRUE, FALSE)
EVT_ADD(LW(0), 20)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 6, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_hyper_idle)
EVT_WAIT_FRAMES(3)
EVT_CALL(YieldTurn)
EVT_CALL(SetAnimationRate, ACTOR_SELF, 1, EVT_FLOAT(2.0))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_hyper_run)
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(8.0))
EVT_CALL(RunToGoal, ACTOR_SELF, 0, FALSE)
EVT_CALL(SetAnimationRate, ACTOR_SELF, 1, EVT_FLOAT(1.0))
EVT_END_CASE_GROUP
EVT_END_SWITCH
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_RETURN
EVT_END
};

View File

@ -0,0 +1,532 @@
#include "common.h"
#include "effects.h"
#include "battle/battle.h"
#include "script_api/battle.h"
#include "sprite/npc/battle_tubba.h"
#define NAMESPACE b_area_arn_tubba_blubba
extern EvtScript N(init_80225D98);
extern EvtScript N(takeTurn_802264AC);
extern EvtScript N(idle_80225F58);
extern EvtScript N(handleEvent_802260D0);
extern EvtScript N(80225E08);
extern EvtScript N(80226558);
extern EvtScript N(80226B88);
extern EvtScript N(80227878);
s32 N(idleAnimations_80225C40)[] = {
STATUS_NORMAL, NPC_ANIM_battle_tubba_Palette_00_Anim_1,
STATUS_STONE, NPC_ANIM_battle_tubba_Palette_00_Anim_0,
STATUS_SLEEP, NPC_ANIM_battle_tubba_Palette_00_Anim_18,
STATUS_POISON, NPC_ANIM_battle_tubba_Palette_00_Anim_1,
STATUS_STOP, NPC_ANIM_battle_tubba_Palette_00_Anim_0,
STATUS_STATIC, NPC_ANIM_battle_tubba_Palette_00_Anim_0,
STATUS_PARALYZE, NPC_ANIM_battle_tubba_Palette_00_Anim_0,
STATUS_PARALYZE, NPC_ANIM_battle_tubba_Palette_00_Anim_0,
STATUS_DIZZY, NPC_ANIM_battle_tubba_Palette_00_Anim_18,
STATUS_FEAR, NPC_ANIM_battle_tubba_Palette_00_Anim_0,
STATUS_END,
};
s32 N(defenseTable_80225C94)[] = {
ELEMENT_NORMAL, 0,
ELEMENT_END,
};
s32 N(statusTable_80225CA0)[] = {
STATUS_NORMAL, 0,
STATUS_DEFAULT, 0,
STATUS_SLEEP, 80,
STATUS_POISON, 0,
STATUS_FROZEN, 0,
STATUS_DIZZY, 80,
STATUS_FEAR, 0,
STATUS_STATIC, 0,
STATUS_PARALYZE, 80,
STATUS_SHRINK, 90,
STATUS_STOP, 80,
STATUS_DEFAULT_TURN_MOD, 0,
STATUS_SLEEP_TURN_MOD, 0,
STATUS_POISON_TURN_MOD, 0,
STATUS_FROZEN_TURN_MOD, 0,
STATUS_DIZZY_TURN_MOD, 0,
STATUS_FEAR_TURN_MOD, 0,
STATUS_STATIC_TURN_MOD, 0,
STATUS_PARALYZE_TURN_MOD, 0,
STATUS_SHRINK_TURN_MOD, 0,
STATUS_STOP_TURN_MOD, 0,
STATUS_END,
};
ActorPartBlueprint N(partsTable_80225D4C)[] = {
{
.flags = ACTOR_PART_FLAG_MULTI_TARGET,
.index = 1,
.posOffset = { 0, 0, 0 },
.targetOffset = { -15, 75 },
.opacity = 255,
.idleAnimations = N(idleAnimations_80225C40),
.defenseTable = N(defenseTable_80225C94),
.eventFlags = ACTOR_EVENT_FLAG_0,
.elementImmunityFlags = 0,
.unk_1C = 246,
},
};
ActorBlueprint NAMESPACE = {
.flags = 0,
.type = ACTOR_TYPE_TUBBA_BLUBBA_INVINCIBLE,
.level = 70,
.maxHP = 10,
.partCount = ARRAY_COUNT(N(partsTable_80225D4C)),
.partsData = N(partsTable_80225D4C),
.script = N(init_80225D98),
.statusTable = N(statusTable_80225CA0),
.escapeChance = 0,
.airLiftChance = 0,
.spookChance = 0,
.baseStatusChance = 0,
.upAndAwayChance = 0,
.spinSmashReq = 4,
.powerBounceChance = 75,
.coinReward = 0,
.size = { 110, 100 },
.hpBarOffset = { 0, 0 },
.statusIconOffset = { -33, 78 },
.statusMessageOffset = { 10, 75 },
};
EvtScript N(init_80225D98) = {
EVT_CALL(BindTakeTurn, ACTOR_SELF, EVT_ADDR(N(takeTurn_802264AC)))
EVT_CALL(BindIdle, ACTOR_SELF, EVT_ADDR(N(idle_80225F58)))
EVT_CALL(BindHandleEvent, ACTOR_SELF, EVT_ADDR(N(handleEvent_802260D0)))
EVT_CALL(SetActorVar, ACTOR_SELF, 8, 0)
EVT_EXEC(N(80225E08))
EVT_RETURN
EVT_END
};
EvtScript N(80225E08) = {
EVT_LABEL(0)
EVT_WAIT_FRAMES(1)
EVT_CALL(ActorExists, ACTOR_SELF, LW(0))
EVT_IF_EQ(LW(0), FALSE)
EVT_RETURN
EVT_END_IF
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_FLAG(LW(0), STATUS_FLAG_SHRINK)
EVT_GOTO(0)
EVT_END_IF
EVT_CALL(GetAnimation, ACTOR_SELF, 1, LW(0))
EVT_IF_EQ(LW(0), NPC_ANIM_battle_tubba_Palette_00_Anim_6)
EVT_GOTO(1)
EVT_END_IF
EVT_IF_EQ(LW(0), NPC_ANIM_battle_tubba_Palette_00_Anim_7)
EVT_GOTO(1)
EVT_END_IF
EVT_GOTO(0)
EVT_LABEL(1)
EVT_CALL(StartRumble, 1)
EVT_CALL(ShakeCam, 1, 0, 2, EVT_FLOAT(0.5))
EVT_WAIT_FRAMES(1)
EVT_GOTO(0)
EVT_RETURN
EVT_END
};
EvtScript N(idle_80225F58) = {
EVT_LABEL(0)
EVT_WAIT_FRAMES(1)
EVT_GOTO(0)
EVT_RETURN
EVT_END
};
EvtScript N(80225F8C) = {
EVT_CALL(GetActorVar, ACTOR_SELF, 8, LW(0))
EVT_IF_EQ(LW(0), 0)
EVT_RETURN
EVT_END_IF
EVT_RETURN
EVT_END
};
EvtScript N(80225FD4) = {
EVT_SET(LW(1), 7012353)
EVT_EXEC_WAIT(N(80225F8C))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, LW(1))
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(6.0))
EVT_SET(LW(1), 7012358)
EVT_EXEC_WAIT(N(80225F8C))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, LW(1))
EVT_CALL(RunToGoal, ACTOR_SELF, 0, FALSE)
EVT_SET(LW(1), 7012353)
EVT_EXEC_WAIT(N(80225F8C))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, LW(1))
EVT_CALL(SetActorYaw, ACTOR_SELF, 0)
EVT_RETURN
EVT_END
};
EvtScript N(handleEvent_802260D0) = {
EVT_CALL(UseIdleAnimation, ACTOR_SELF, FALSE)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 0)
EVT_CALL(GetLastEvent, ACTOR_SELF, LW(10))
EVT_SWITCH(LW(10))
EVT_CASE_OR_EQ(EVENT_HIT_COMBO)
EVT_CASE_OR_EQ(EVENT_HIT)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_battle_tubba_Palette_00_Anim_14)
EVT_EXEC_WAIT(DoNormalHit)
EVT_END_CASE_GROUP
EVT_CASE_EQ(EVENT_BURN_HIT)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_battle_tubba_Palette_00_Anim_14)
EVT_SET_CONST(LW(2), -1)
EVT_EXEC_WAIT(DoBurnHit)
EVT_CASE_EQ(EVENT_BURN_DEATH)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_battle_tubba_Palette_00_Anim_14)
EVT_SET_CONST(LW(2), -1)
EVT_EXEC_WAIT(DoBurnHit)
EVT_EXEC_WAIT(N(80227878))
EVT_RETURN
EVT_CASE_EQ(EVENT_SPIN_SMASH_HIT)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_battle_tubba_Palette_00_Anim_14)
EVT_EXEC_WAIT(DoSpinSmashHit)
EVT_CASE_EQ(EVENT_SHOCK_HIT)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(MoveBattleCamOver, 20)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_battle_tubba_Palette_00_Anim_14)
EVT_EXEC_WAIT(DoShockHit)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_battle_tubba_Palette_00_Anim_14)
EVT_EXEC_WAIT(DoJumpBack)
EVT_EXEC_WAIT(N(80225FD4))
EVT_CASE_OR_EQ(EVENT_UNKNOWN_TRIGGER)
EVT_CASE_OR_EQ(EVENT_IMMUNE)
EVT_CASE_OR_EQ(EVENT_AIR_LIFT_FAILED)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_battle_tubba_Palette_00_Anim_1)
EVT_EXEC_WAIT(DoImmune)
EVT_END_CASE_GROUP
EVT_CASE_EQ(EVENT_SHOCK_DEATH)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(MoveBattleCamOver, 20)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_battle_tubba_Palette_00_Anim_14)
EVT_EXEC_WAIT(DoShockHit)
EVT_EXEC_WAIT(N(80227878))
EVT_RETURN
EVT_CASE_EQ(EVENT_DEATH)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_battle_tubba_Palette_00_Anim_14)
EVT_EXEC_WAIT(DoNormalHit)
EVT_EXEC_WAIT(N(80227878))
EVT_RETURN
EVT_CASE_EQ(EVENT_SPIN_SMASH_DEATH)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_battle_tubba_Palette_00_Anim_14)
EVT_EXEC_WAIT(DoSpinSmashHit)
EVT_EXEC_WAIT(N(80227878))
EVT_RETURN
EVT_CASE_EQ(EVENT_RECOVER_STATUS)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_battle_tubba_Palette_00_Anim_1)
EVT_EXEC_WAIT(DoRecover)
EVT_CASE_DEFAULT
EVT_END_SWITCH
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_RETURN
EVT_END
};
EvtScript N(takeTurn_802264AC) = {
EVT_CALL(UseIdleAnimation, ACTOR_SELF, FALSE)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 0)
EVT_CALL(RandInt, 100, LW(0))
EVT_IF_LT(LW(0), 60)
EVT_EXEC_WAIT(N(80226558))
EVT_ELSE
EVT_EXEC_WAIT(N(80226B88))
EVT_END_IF
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_RETURN
EVT_END
};
EvtScript N(80226558) = {
EVT_CALL(SetTargetActor, ACTOR_SELF, ACTOR_PLAYER)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_63)
EVT_CALL(SetBattleCamZoom, 150)
EVT_CALL(BattleCamTargetActor, ACTOR_SELF)
EVT_CALL(func_8024ECF8, -1, 1, 0)
EVT_SET(LW(1), 7012358)
EVT_EXEC_WAIT(N(80225F8C))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, LW(1))
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(5))
EVT_IF_NOT_FLAG(LW(5), STATUS_FLAG_SHRINK)
EVT_CALL(AddGoalPos, ACTOR_SELF, 50, 0, 0)
EVT_ELSE
EVT_CALL(AddGoalPos, ACTOR_SELF, 20, 0, 0)
EVT_END_IF
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(4.0))
EVT_CALL(RunToGoal, ACTOR_SELF, 0, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_battle_tubba_Palette_00_Anim_15)
EVT_WAIT_FRAMES(8)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x35E)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_battle_tubba_Palette_00_Anim_16)
EVT_WAIT_FRAMES(20)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_battle_tubba_Palette_00_Anim_17)
EVT_WAIT_FRAMES(3)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_SHRINK)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SET(LW(1), 0)
EVT_CALL(PlayEffect, EFFECT_ID_06, 4, LW(0), LW(1), LW(2), 0, 0, 0, 0, 0, 0, 0, 0, 0)
EVT_THREAD
EVT_CALL(StartRumble, 1)
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(15.0))
EVT_END_THREAD
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x20EA)
EVT_END_IF
EVT_CALL(EnemyTestTarget, ACTOR_SELF, LW(10), 0, 0, 1, BS_FLAGS1_10)
EVT_SWITCH(LW(10))
EVT_CASE_OR_EQ(HIT_RESULT_MISS)
EVT_CASE_OR_EQ(HIT_RESULT_LUCKY)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(PlayEffect, EFFECT_ID_25, 0, LW(0), 0, LW(2), 0, 0, 0, 0, 0, 0, 0, 0, 0)
EVT_WAIT_FRAMES(30)
EVT_SET(LW(1), 7012353)
EVT_EXEC_WAIT(N(80225F8C))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, LW(1))
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(MoveBattleCamOver, 20)
EVT_IF_EQ(LW(10), HIT_RESULT_LUCKY)
EVT_CALL(EnemyTestTarget, ACTOR_SELF, LW(0), DAMAGE_TYPE_TRIGGER_LUCKY, 0, 0, 0)
EVT_END_IF
EVT_EXEC_WAIT(N(80225FD4))
EVT_RETURN
EVT_END_CASE_GROUP
EVT_CASE_DEFAULT
EVT_END_SWITCH
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(5))
EVT_IF_NOT_FLAG(LW(5), STATUS_FLAG_SHRINK)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(PlayEffect, EFFECT_ID_25, 1, LW(0), 0, LW(2), 0, 0, 0, 0, 0, 0, 0, 0, 0)
EVT_END_IF
EVT_WAIT_FRAMES(2)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_IF_NOT_FLAG(LW(5), STATUS_FLAG_SHRINK)
EVT_CALL(func_80269EAC, 23)
EVT_END_IF
EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LW(15), 0, 0, 0, 4, BS_FLAGS1_SP_EVT_ACTIVE)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_63)
EVT_CALL(SetBattleCamZoom, 200)
EVT_CALL(BattleCamTargetActor, ACTOR_SELF)
EVT_CALL(func_8024ECF8, -1, 1, 0)
EVT_CALL(MoveBattleCamOver, 30)
EVT_SWITCH(LW(15))
EVT_CASE_OR_EQ(HIT_RESULT_HIT)
EVT_CASE_OR_EQ(HIT_RESULT_QUAKE_IMMUNE)
EVT_WAIT_FRAMES(30)
EVT_SET(LW(1), 7012353)
EVT_EXEC_WAIT(N(80225F8C))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, LW(1))
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(MoveBattleCamOver, 20)
EVT_CALL(YieldTurn)
EVT_EXEC_WAIT(N(80225FD4))
EVT_END_CASE_GROUP
EVT_END_SWITCH
EVT_RETURN
EVT_END
};
EvtScript N(80226B88) = {
EVT_CALL(SetTargetActor, ACTOR_SELF, ACTOR_PLAYER)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_63)
EVT_CALL(SetBattleCamZoom, 150)
EVT_CALL(BattleCamTargetActor, ACTOR_SELF)
EVT_CALL(func_8024ECF8, -1, 1, 0)
EVT_SET(LW(1), 7012358)
EVT_EXEC_WAIT(N(80225F8C))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, LW(1))
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(AddGoalPos, ACTOR_SELF, 70, 0, 0)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(4.0))
EVT_CALL(RunToGoal, ACTOR_SELF, 0, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_battle_tubba_Palette_00_Anim_A)
EVT_WAIT_FRAMES(8)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_battle_tubba_Palette_00_Anim_B)
EVT_CALL(SetActorSounds, ACTOR_SELF, 2, 999, 0)
EVT_CALL(EnemyTestTarget, ACTOR_SELF, LW(0), 0, 0, 1, BS_FLAGS1_10)
EVT_SWITCH(LW(0))
EVT_CASE_OR_EQ(HIT_RESULT_MISS)
EVT_CASE_OR_EQ(HIT_RESULT_LUCKY)
EVT_SET(LW(10), LW(0))
EVT_THREAD
EVT_WAIT_FRAMES(12)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_battle_tubba_Palette_00_Anim_C)
EVT_END_THREAD
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 15)
EVT_SET(LW(1), 0)
EVT_ADD(LW(2), 5)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.0))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 23, FALSE, TRUE, FALSE)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x20EA)
EVT_CALL(PlayEffect, EFFECT_ID_25, 0, LW(0), 0, LW(2), 0, 0, 0, 0, 0, 0, 0, 0, 0)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_battle_tubba_Palette_00_Anim_D)
EVT_THREAD
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(PlayEffect, EFFECT_ID_1D, 0, LW(0), LW(1), LW(2), 60, 8, 10, 20, 0, 0, 0, 0, 0)
EVT_END_THREAD
EVT_THREAD
EVT_CALL(StartRumble, 1)
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(3.0))
EVT_END_THREAD
EVT_CALL(ResetActorSounds, ACTOR_SELF, 2)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 20)
EVT_SET(LW(1), 0)
EVT_ADD(LW(2), 5)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.0))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_CALL(StartRumble, 1)
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(3.0))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(PlayEffect, EFFECT_ID_1D, 0, LW(0), LW(1), LW(2), 60, 8, 10, 20, 0, 0, 0, 0, 0)
EVT_IF_EQ(LW(10), HIT_RESULT_LUCKY)
EVT_CALL(EnemyTestTarget, ACTOR_SELF, LW(0), DAMAGE_TYPE_TRIGGER_LUCKY, 0, 0, 0)
EVT_END_IF
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(MoveBattleCamOver, 20)
EVT_WAIT_FRAMES(8)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_battle_tubba_Palette_00_Anim_E)
EVT_WAIT_FRAMES(4)
EVT_EXEC_WAIT(N(80225FD4))
EVT_RETURN
EVT_END_CASE_GROUP
EVT_CASE_DEFAULT
EVT_THREAD
EVT_WAIT_FRAMES(9)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_battle_tubba_Palette_00_Anim_C)
EVT_END_THREAD
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.0))
EVT_CALL(JumpToGoal, ACTOR_SELF, 16, FALSE, TRUE, FALSE)
EVT_END_SWITCH
EVT_WAIT_FRAMES(2)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(5))
EVT_IF_NOT_FLAG(LW(5), STATUS_FLAG_SHRINK)
EVT_CALL(func_80269EAC, 24)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x20EA)
EVT_END_IF
EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LW(15), 0, 0, 0, 6, BS_FLAGS1_SP_EVT_ACTIVE)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_63)
EVT_CALL(SetBattleCamZoom, 200)
EVT_CALL(BattleCamTargetActor, ACTOR_SELF)
EVT_CALL(func_8024ECF8, -1, 1, 0)
EVT_CALL(MoveBattleCamOver, 30)
EVT_SWITCH(LW(15))
EVT_CASE_OR_EQ(HIT_RESULT_HIT)
EVT_CASE_OR_EQ(HIT_RESULT_QUAKE_IMMUNE)
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(5))
EVT_IF_FLAG(LW(5), STATUS_FLAG_SHRINK)
EVT_GOTO(1)
EVT_END_IF
EVT_CALL(GetBattleFlags, LW(0))
EVT_IF_NOT_FLAG(LW(0), BS_FLAGS1_ATK_BLOCKED)
EVT_CALL(GetStatusFlags, ACTOR_PLAYER, LW(0))
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_STONE)
EVT_CALL(LandJump, ACTOR_SELF)
EVT_ELSE
EVT_GOTO(1)
EVT_END_IF
EVT_ELSE
EVT_GOTO(1)
EVT_END_IF
EVT_LABEL(0)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(PlayEffect, EFFECT_ID_25, 0, LW(0), 0, LW(2), 0, 0, 0, 0, 0, 0, 0, 0, 0)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_battle_tubba_Palette_00_Anim_D)
EVT_THREAD
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(PlayEffect, EFFECT_ID_1D, 0, LW(0), LW(1), LW(2), 60, 8, 10, 20, 0, 0, 0, 0, 0)
EVT_END_THREAD
EVT_THREAD
EVT_CALL(StartRumble, 1)
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(3.0))
EVT_END_THREAD
EVT_CALL(ResetActorSounds, ACTOR_SELF, 2)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 20)
EVT_SET(LW(1), 0)
EVT_ADD(LW(2), 5)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.0))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_CALL(StartRumble, 1)
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(3.0))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(PlayEffect, EFFECT_ID_1D, 0, LW(0), LW(1), LW(2), 60, 8, 10, 20, 0, 0, 0, 0, 0)
EVT_GOTO(2)
EVT_LABEL(1)
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(5))
EVT_IF_NOT_FLAG(LW(5), STATUS_FLAG_SHRINK)
EVT_WAIT_FRAMES(3)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(PlayEffect, EFFECT_ID_25, 1, LW(0), 0, LW(2), 0, 0, 0, 0, 0, 0, 0, 0, 0)
EVT_CALL(StartRumble, 1)
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(3.0))
EVT_END_IF
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 40)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_THREAD
EVT_WAIT_FRAMES(8)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_battle_tubba_Palette_00_Anim_E)
EVT_END_THREAD
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_IF_NOT_FLAG(LW(5), STATUS_FLAG_SHRINK)
EVT_CALL(StartRumble, 1)
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(3.0))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(PlayEffect, EFFECT_ID_1D, 0, LW(0), LW(1), LW(2), 60, 8, 10, 20, 0, 0, 0, 0, 0)
EVT_WAIT_FRAMES(8)
EVT_END_IF
EVT_LABEL(2)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(MoveBattleCamOver, 20)
EVT_CALL(YieldTurn)
EVT_EXEC_WAIT(N(80225FD4))
EVT_END_CASE_GROUP
EVT_END_SWITCH
EVT_RETURN
EVT_END
};
EvtScript N(80227878) = {
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_battle_tubba_Palette_00_Anim_14)
EVT_CALL(ActorSpeak, MESSAGE_ID(0x0E, 0x00C9), ACTOR_SELF, 1, NPC_ANIM_battle_tubba_Palette_00_Anim_14, NPC_ANIM_battle_tubba_Palette_00_Anim_14)
EVT_SET(LW(0), 1)
EVT_SET(LW(1), 7012372)
EVT_EXEC_WAIT(DoDeath)
EVT_RETURN
EVT_END
};

View File

@ -0,0 +1,617 @@
#include "common.h"
#include "effects.h"
#include "battle/battle.h"
#include "script_api/battle.h"
#include "sprite/npc/battle_bow.h"
#include "sprite/npc/tubbas_heart.h"
#define NAMESPACE b_area_arn_tubbas_heart
extern EvtScript N(init_80223DA0);
extern EvtScript N(takeTurn_802245C8);
extern EvtScript N(idle_80223E98);
extern EvtScript N(handleEvent_80224038);
extern EvtScript N(80224414);
extern EvtScript N(802244DC);
extern EvtScript N(80224B3C);
extern EvtScript N(80225258);
extern EvtScript N(802255D8);
s32 N(idleAnimations_80223BC0)[] = {
STATUS_NORMAL, NPC_ANIM_tubbas_heart_Palette_00_Anim_1,
STATUS_STONE, NPC_ANIM_tubbas_heart_Palette_00_Anim_0,
STATUS_SLEEP, NPC_ANIM_tubbas_heart_Palette_00_Anim_4,
STATUS_POISON, NPC_ANIM_tubbas_heart_Palette_00_Anim_1,
STATUS_STOP, NPC_ANIM_tubbas_heart_Palette_00_Anim_0,
STATUS_STATIC, NPC_ANIM_tubbas_heart_Palette_00_Anim_0,
STATUS_PARALYZE, NPC_ANIM_tubbas_heart_Palette_00_Anim_0,
STATUS_PARALYZE, NPC_ANIM_tubbas_heart_Palette_00_Anim_0,
STATUS_DIZZY, NPC_ANIM_tubbas_heart_Palette_00_Anim_D,
STATUS_DIZZY, NPC_ANIM_tubbas_heart_Palette_00_Anim_D,
STATUS_FEAR, NPC_ANIM_tubbas_heart_Palette_00_Anim_A,
STATUS_END,
};
s32 N(idleAnimations_80223C1C)[] = {
STATUS_NORMAL, NPC_ANIM_tubbas_heart_Palette_00_Anim_B,
STATUS_STONE, NPC_ANIM_tubbas_heart_Palette_00_Anim_0,
STATUS_SLEEP, NPC_ANIM_tubbas_heart_Palette_00_Anim_4,
STATUS_POISON, NPC_ANIM_tubbas_heart_Palette_00_Anim_B,
STATUS_STOP, NPC_ANIM_tubbas_heart_Palette_00_Anim_0,
STATUS_STATIC, NPC_ANIM_tubbas_heart_Palette_00_Anim_0,
STATUS_PARALYZE, NPC_ANIM_tubbas_heart_Palette_00_Anim_0,
STATUS_PARALYZE, NPC_ANIM_tubbas_heart_Palette_00_Anim_0,
STATUS_DIZZY, NPC_ANIM_tubbas_heart_Palette_00_Anim_D,
STATUS_DIZZY, NPC_ANIM_tubbas_heart_Palette_00_Anim_D,
STATUS_FEAR, NPC_ANIM_tubbas_heart_Palette_00_Anim_A,
STATUS_END,
};
s32 N(defenseTable_80223C78)[] = {
ELEMENT_NORMAL, 0,
ELEMENT_END,
};
s32 N(statusTable_80223C84)[] = {
STATUS_NORMAL, 0,
STATUS_DEFAULT, 0,
STATUS_SLEEP, 0,
STATUS_POISON, 0,
STATUS_FROZEN, 0,
STATUS_DIZZY, 0,
STATUS_FEAR, 0,
STATUS_STATIC, 0,
STATUS_PARALYZE, 0,
STATUS_SHRINK, 90,
STATUS_STOP, 0,
STATUS_DEFAULT_TURN_MOD, 0,
STATUS_SLEEP_TURN_MOD, 0,
STATUS_POISON_TURN_MOD, 0,
STATUS_FROZEN_TURN_MOD, 0,
STATUS_DIZZY_TURN_MOD, 0,
STATUS_FEAR_TURN_MOD, 0,
STATUS_STATIC_TURN_MOD, 0,
STATUS_PARALYZE_TURN_MOD, 0,
STATUS_SHRINK_TURN_MOD, 0,
STATUS_STOP_TURN_MOD, 0,
STATUS_END,
};
ActorPartBlueprint N(partsTable_80223D30)[] = {
{
.flags = ACTOR_PART_FLAG_NO_TARGET,
.index = 1,
.posOffset = { 0, 0, 0 },
.targetOffset = { 0, 24 },
.opacity = 255,
.idleAnimations = N(idleAnimations_80223BC0),
.defenseTable = N(defenseTable_80223C78),
.eventFlags = ACTOR_EVENT_FLAG_0,
.elementImmunityFlags = 0,
.unk_1C = 246,
},
{
.flags = ACTOR_PART_FLAG_INVISIBLE | ACTOR_PART_FLAG_MULTI_TARGET | ACTOR_PART_FLAG_80000000,
.index = 2,
.posOffset = { 0, 54, 0 },
.targetOffset = { 0, -30 },
.opacity = 255,
.idleAnimations = N(idleAnimations_80223BC0),
.defenseTable = N(defenseTable_80223C78),
.eventFlags = ACTOR_EVENT_FLAG_0,
.elementImmunityFlags = 0,
.unk_1C = 246,
},
};
ActorBlueprint NAMESPACE = {
.flags = 0,
.type = ACTOR_TYPE_TUBBA_HEART,
.level = 0,
.maxHP = 50,
.partCount = ARRAY_COUNT(N(partsTable_80223D30)),
.partsData = N(partsTable_80223D30),
.script = N(init_80223DA0),
.statusTable = N(statusTable_80223C84),
.escapeChance = 0,
.airLiftChance = 0,
.spookChance = 0,
.baseStatusChance = 0,
.upAndAwayChance = 0,
.spinSmashReq = 4,
.powerBounceChance = 75,
.coinReward = 0,
.size = { 30, 30 },
.hpBarOffset = { 5, 0 },
.statusIconOffset = { -10, 20 },
.statusMessageOffset = { 10, 20 },
};
EvtScript N(init_80223DA0) = {
EVT_CALL(SetActorVar, ACTOR_SELF, 0, 0)
EVT_CALL(SetActorVar, ACTOR_SELF, 1, 0)
EVT_CALL(SetActorVar, ACTOR_SELF, 2, 0)
EVT_CALL(SetActorVar, ACTOR_SELF, 3, 0)
EVT_CALL(SetActorVar, ACTOR_SELF, 4, 0)
EVT_CALL(SetActorVar, ACTOR_SELF, 5, 0)
EVT_CALL(BindTakeTurn, ACTOR_SELF, EVT_ADDR(N(takeTurn_802245C8)))
EVT_CALL(BindIdle, ACTOR_SELF, EVT_ADDR(N(idle_80223E98)))
EVT_CALL(BindHandleEvent, ACTOR_SELF, EVT_ADDR(N(handleEvent_80224038)))
EVT_CALL(SetPartTargetFlagBits, ACTOR_SELF, 2, 2, 1)
EVT_RETURN
EVT_END
};
ApiStatus func_80218680_4FF0D0(Evt* script, s32 isInitialCall) {
Bytecode *args = script->ptrReadPos;
Effect6BInstance* effect = (Effect6BInstance*) evt_get_variable(script, *args++);
s32 x = evt_get_variable(script, *args++);
s32 y = evt_get_variable(script, *args++);
s32 z = evt_get_variable(script, *args++);
f32 scale = evt_get_float_variable(script, *args++);
effect->data->pos.x = x;
effect->data->pos.y = y;
effect->data->pos.z = z;
effect->data->scale = scale;
return ApiStatus_DONE2;
}
EvtScript N(idle_80223E98) = {
EVT_LABEL(0)
EVT_CALL(ActorExists, ACTOR_SELF, LW(0))
EVT_IF_NE(LW(0), FALSE)
EVT_CALL(GetActorVar, ACTOR_SELF, 4, LW(0))
EVT_IF_NE(LW(0), 0)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(1), LW(2), LW(3))
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(4))
EVT_IF_NOT_FLAG(LW(4), STATUS_FLAG_SHRINK)
EVT_ADD(LW(2), 15)
EVT_SETF(LW(4), EVT_FLOAT(1.0))
EVT_ELSE
EVT_ADD(LW(2), 6)
EVT_SETF(LW(4), EVT_FLOAT(0.4))
EVT_END_IF
EVT_CALL(func_80218680_4FF0D0, LW(0), LW(1), LW(2), LW(3), LW(4))
EVT_END_IF
EVT_END_IF
EVT_WAIT_FRAMES(1)
EVT_GOTO(0)
EVT_RETURN
EVT_END
};
EvtScript N(80223FD8) = {
EVT_SET(LW(1), 7077902)
EVT_CALL(GetActorVar, ACTOR_SELF, 1, LW(0))
EVT_IF_NE(LW(0), 0)
EVT_SET(LW(1), 7077899)
EVT_END_IF
EVT_RETURN
EVT_END
};
EvtScript N(handleEvent_80224038) = {
EVT_CALL(UseIdleAnimation, ACTOR_SELF, FALSE)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
EVT_CALL(GetLastEvent, ACTOR_SELF, LW(0))
EVT_SWITCH(LW(0))
EVT_CASE_OR_EQ(EVENT_HIT_COMBO)
EVT_CASE_OR_EQ(EVENT_HIT)
EVT_EXEC_WAIT(N(80223FD8))
EVT_SET_CONST(LW(0), 1)
EVT_EXEC_WAIT(DoNormalHit)
EVT_END_CASE_GROUP
EVT_CASE_EQ(EVENT_BEGIN_FIRST_STRIKE)
EVT_CASE_OR_EQ(EVENT_BURN_HIT)
EVT_CASE_OR_EQ(EVENT_BURN_DEATH)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_tubbas_heart_Palette_00_Anim_10)
EVT_SET_CONST(LW(2), NPC_ANIM_tubbas_heart_Palette_00_Anim_11)
EVT_EXEC_WAIT(DoBurnHit)
EVT_END_CASE_GROUP
EVT_CASE_EQ(EVENT_SPIN_SMASH_HIT)
EVT_EXEC_WAIT(N(80223FD8))
EVT_SET_CONST(LW(0), 1)
EVT_EXEC_WAIT(DoSpinSmashHit)
EVT_CASE_OR_EQ(EVENT_SHOCK_HIT)
EVT_CASE_OR_EQ(EVENT_SHOCK_DEATH)
EVT_EXEC_WAIT(N(80223FD8))
EVT_SET_CONST(LW(0), 1)
EVT_EXEC_WAIT(DoShockHit)
EVT_EXEC_WAIT(N(80223FD8))
EVT_SET_CONST(LW(0), 1)
EVT_EXEC_WAIT(DoJumpBack)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_tubbas_heart_Palette_00_Anim_3)
EVT_EXEC_WAIT(N(802244DC))
EVT_END_CASE_GROUP
EVT_CASE_OR_EQ(EVENT_UNKNOWN_TRIGGER)
EVT_CASE_OR_EQ(EVENT_IMMUNE)
EVT_CASE_OR_EQ(EVENT_AIR_LIFT_FAILED)
EVT_SET(LW(1), 7077889)
EVT_CALL(GetActorVar, ACTOR_SELF, 1, LW(0))
EVT_IF_NE(LW(0), 0)
EVT_SET(LW(1), 7077899)
EVT_END_IF
EVT_SET_CONST(LW(0), 1)
EVT_EXEC_WAIT(DoImmune)
EVT_END_CASE_GROUP
EVT_CASE_OR_EQ(EVENT_DEATH)
EVT_EXEC_WAIT(N(80223FD8))
EVT_SET_CONST(LW(0), 1)
EVT_EXEC_WAIT(DoNormalHit)
EVT_END_CASE_GROUP
EVT_CASE_EQ(EVENT_SPIN_SMASH_DEATH)
EVT_EXEC_WAIT(N(80223FD8))
EVT_SET_CONST(LW(0), 1)
EVT_EXEC_WAIT(DoSpinSmashHit)
EVT_CASE_EQ(EVENT_SPIKE_CONTACT)
EVT_CASE_EQ(EVENT_BURN_CONTACT)
EVT_CASE_EQ(EVENT_END_FIRST_STRIKE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_tubbas_heart_Palette_00_Anim_3)
EVT_EXEC_WAIT(N(802244DC))
EVT_CALL(HPBarToHome, ACTOR_SELF)
EVT_CASE_EQ(EVENT_RECOVER_STATUS)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_tubbas_heart_Palette_00_Anim_1)
EVT_EXEC_WAIT(DoRecover)
EVT_CASE_DEFAULT
EVT_END_SWITCH
EVT_CALL(GetActorHP, ACTOR_SELF, LW(0))
EVT_IF_LE(LW(0), 5)
EVT_EXEC_WAIT(N(80224414))
EVT_RETURN
EVT_ELSE
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_END_IF
EVT_RETURN
EVT_END
};
EvtScript N(80224414) = {
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_14)
EVT_CALL(BattleCamTargetActor, ACTOR_SELF)
EVT_CALL(MoveBattleCamOver, 40)
EVT_WAIT_FRAMES(40)
EVT_CALL(ActorSpeak, MESSAGE_ID(0x0E, 0x00C6), ACTOR_SELF, 1, NPC_ANIM_tubbas_heart_Palette_00_Anim_D, NPC_ANIM_tubbas_heart_Palette_00_Anim_D)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(MoveBattleCamOver, 25)
EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_NO_DMG_APPLY, 1)
EVT_CALL(SetBattleFlagBits, BS_FLAGS1_20000 | BS_FLAGS1_40000, 1)
EVT_CALL(func_8026F60C, 20)
EVT_RETURN
EVT_END
};
EvtScript N(802244DC) = {
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(6.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 45)
EVT_SET(LW(1), 0)
EVT_EXEC_WAIT(D_8029C12C)
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(JumpToGoal, ACTOR_SELF, 12, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_tubbas_heart_Palette_00_Anim_1)
EVT_CALL(SetActorYaw, ACTOR_SELF, 0)
EVT_RETURN
EVT_END
};
EvtScript N(takeTurn_802245C8) = {
EVT_CALL(UseIdleAnimation, ACTOR_SELF, FALSE)
EVT_CALL(SetTargetActor, ACTOR_SELF, ACTOR_PLAYER)
EVT_CALL(EnemyTestTarget, ACTOR_SELF, LW(0), 0, 0, 1, BS_FLAGS1_10)
EVT_IF_NE(LW(0), HIT_RESULT_MISS)
EVT_CALL(GetActorVar, ACTOR_SELF, 2, LW(0))
EVT_IF_NOT_FLAG(LW(0), 0x00000001)
EVT_CALL(GetCurrentPartnerID, LW(0))
EVT_IF_EQ(LW(0), 9)
EVT_CALL(func_802535B4, 0)
EVT_BITWISE_OR_CONST(LW(0), 0x3)
EVT_CALL(SetActorVar, ACTOR_SELF, 2, LW(0))
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_14)
EVT_CALL(BattleCamTargetActor, ACTOR_SELF)
EVT_CALL(MoveBattleCamOver, 40)
EVT_WAIT_FRAMES(40)
EVT_CALL(ActorSpeak, MESSAGE_ID(0x0E, 0x00C3), ACTOR_SELF, 1, NPC_ANIM_tubbas_heart_Palette_00_Anim_B, NPC_ANIM_tubbas_heart_Palette_00_Anim_1)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_14)
EVT_CALL(BattleCamTargetActor, ACTOR_PARTNER)
EVT_CALL(MoveBattleCamOver, 25)
EVT_WAIT_FRAMES(25)
EVT_CALL(UseIdleAnimation, ACTOR_PARTNER, FALSE)
EVT_CALL(SetAnimation, ACTOR_PARTNER, 1, NPC_ANIM_battle_bow_Palette_00_Anim_4)
EVT_CALL(ActorSpeak, MESSAGE_ID(0x0E, 0x00C4), ACTOR_PARTNER, 1, NPC_ANIM_battle_bow_Palette_00_Anim_4, NPC_ANIM_battle_bow_Palette_00_Anim_1)
EVT_CALL(SetAnimation, ACTOR_PARTNER, 1, NPC_ANIM_battle_bow_Palette_00_Anim_F)
EVT_CALL(EndActorSpeech, ACTOR_PARTNER, 1, -1, -1)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(UseIdleAnimation, ACTOR_PARTNER, TRUE)
EVT_CALL(MoveBattleCamOver, 30)
EVT_CALL(GetActorVar, ACTOR_SELF, 0, LW(0))
EVT_IF_EQ(LW(0), 0)
EVT_CALL(GetActorVar, ACTOR_SELF, 3, LW(0))
EVT_IF_NE(LW(0), 0)
EVT_CALL(func_802535B4, 1)
EVT_END_IF
EVT_ELSE
EVT_CALL(func_802535B4, 1)
EVT_END_IF
EVT_END_IF
EVT_END_IF
EVT_END_IF
EVT_CALL(GetActorVar, ACTOR_SELF, 0, LW(0))
EVT_SWITCH(LW(0))
EVT_CASE_EQ(0)
EVT_CALL(GetActorVar, ACTOR_SELF, 3, LW(0))
EVT_IF_EQ(LW(0), 0)
EVT_CALL(SetActorVar, ACTOR_SELF, 3, 1)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_14)
EVT_CALL(BattleCamTargetActor, ACTOR_SELF)
EVT_CALL(MoveBattleCamOver, 40)
EVT_WAIT_FRAMES(40)
EVT_CALL(ActorSpeak, MESSAGE_ID(0x0E, 0x00C5), ACTOR_SELF, 1, NPC_ANIM_tubbas_heart_Palette_00_Anim_B, NPC_ANIM_tubbas_heart_Palette_00_Anim_1)
EVT_END_IF
EVT_EXEC_WAIT(N(80225258))
EVT_CALL(SetActorVar, ACTOR_SELF, 0, 1)
EVT_CALL(GetActorVar, ACTOR_SELF, 2, LW(0))
EVT_IF_FLAG(LW(0), 0x00000002)
EVT_CALL(func_802535B4, 1)
EVT_END_IF
EVT_CASE_EQ(1)
EVT_EXEC_WAIT(N(802255D8))
EVT_CALL(GetActorVar, ACTOR_SELF, 1, LW(0))
EVT_IF_EQ(LW(0), 0)
EVT_CALL(GetActorVar, ACTOR_SELF, 5, LW(1))
EVT_ADD(LW(1), 1)
EVT_CALL(SetActorVar, ACTOR_SELF, 5, LW(1))
EVT_IF_GE(LW(1), 2)
EVT_CALL(SetActorVar, ACTOR_SELF, 0, 2)
EVT_ELSE
EVT_CALL(SetActorVar, ACTOR_SELF, 0, 0)
EVT_END_IF
EVT_END_IF
EVT_CASE_EQ(2)
EVT_CALL(SetActorVar, ACTOR_SELF, 0, 0)
EVT_EXEC_WAIT(N(80224B3C))
EVT_END_SWITCH
EVT_CALL(GetActorVar, ACTOR_SELF, 2, LW(0))
EVT_BITWISE_AND_CONST(LW(0), -3)
EVT_CALL(SetActorVar, ACTOR_SELF, 2, LW(0))
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_RETURN
EVT_END
};
EvtScript N(80224B3C) = {
EVT_CALL(SetTargetActor, ACTOR_SELF, ACTOR_PLAYER)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_63)
EVT_CALL(BattleCamTargetActor, ACTOR_SELF)
EVT_CALL(func_8024ECF8, -1, 1, 0)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_tubbas_heart_Palette_00_Anim_3)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 45)
EVT_SET(LW(1), 0)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 12, FALSE, TRUE, FALSE)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 40)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(6.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_EXEC_WAIT(D_8029C12C)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_tubbas_heart_Palette_00_Anim_1)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_tubbas_heart_Palette_00_Anim_16)
EVT_WAIT_FRAMES(5)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_tubbas_heart_Palette_00_Anim_15)
EVT_CALL(EnemyTestTarget, ACTOR_SELF, LW(0), 0, 0, 1, BS_FLAGS1_10)
EVT_SWITCH(LW(0))
EVT_CASE_OR_EQ(HIT_RESULT_MISS)
EVT_CASE_OR_EQ(HIT_RESULT_LUCKY)
EVT_SET(LW(10), LW(0))
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 30)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.5))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 8, FALSE, TRUE, FALSE)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 20)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(2.0))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 6, FALSE, TRUE, FALSE)
EVT_SUB(LW(0), 10)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 4, FALSE, TRUE, FALSE)
EVT_WAIT_FRAMES(20)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_IF_EQ(LW(10), HIT_RESULT_LUCKY)
EVT_CALL(EnemyTestTarget, ACTOR_SELF, LW(0), DAMAGE_TYPE_TRIGGER_LUCKY, 0, 0, 0)
EVT_END_IF
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_tubbas_heart_Palette_00_Anim_3)
EVT_EXEC_WAIT(N(802244DC))
EVT_RETURN
EVT_END_CASE_GROUP
EVT_CASE_DEFAULT
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.3))
EVT_CALL(JumpToGoal, ACTOR_SELF, 4, FALSE, TRUE, FALSE)
EVT_END_SWITCH
EVT_WAIT_FRAMES(2)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LW(0), 0, 0, 0, 6, BS_FLAGS1_SP_EVT_ACTIVE)
EVT_SET(LW(15), LW(0))
EVT_SWITCH(LW(15))
EVT_CASE_OR_EQ(HIT_RESULT_HIT)
EVT_CASE_OR_EQ(HIT_RESULT_QUAKE_IMMUNE)
EVT_CASE_OR_EQ(HIT_RESULT_10)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_tubbas_heart_Palette_00_Anim_1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 30)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 8, FALSE, TRUE, FALSE)
EVT_ADD(LW(0), 20)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 6, FALSE, TRUE, FALSE)
EVT_ADD(LW(0), 10)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 4, FALSE, TRUE, FALSE)
EVT_WAIT_FRAMES(8)
EVT_IF_EQ(LW(15), HIT_RESULT_10)
EVT_RETURN
EVT_END_IF
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(YieldTurn)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_tubbas_heart_Palette_00_Anim_3)
EVT_EXEC_WAIT(N(802244DC))
EVT_END_CASE_GROUP
EVT_END_SWITCH
EVT_RETURN
EVT_END
};
EvtScript N(80225258) = {
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_19)
EVT_CALL(SetBattleCamTarget, 85, 50, 0)
EVT_CALL(SetBattleCamZoom, 280)
EVT_CALL(SetBattleCamOffsetZ, 0)
EVT_CALL(MoveBattleCamOver, 40)
EVT_WAIT_FRAMES(40)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_tubbas_heart_Palette_00_Anim_B)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(4))
EVT_IF_NOT_FLAG(LW(4), STATUS_FLAG_SHRINK)
EVT_ADD(LW(1), 15)
EVT_SETF(LW(3), EVT_FLOAT(1.0))
EVT_ELSE
EVT_ADD(LW(1), 6)
EVT_SETF(LW(3), EVT_FLOAT(0.4))
EVT_END_IF
EVT_CALL(PlayEffect, EFFECT_ID_47, 1, LW(0), LW(1), LW(2), LW(3), 60, 0, 0, 0, 0, 0, 0, 0)
EVT_CALL(PlayEffect, EFFECT_ID_6B, 6, LW(0), LW(1), LW(2), LW(3), 60, 0, 0, 0, 0, 0, 0, 0)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x20F7)
EVT_WAIT_FRAMES(60)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(MoveBattleCamOver, 20)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.0))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 15, FALSE, TRUE, FALSE)
EVT_CALL(SetActorVar, ACTOR_SELF, 1, 1)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(4))
EVT_IF_NOT_FLAG(LW(4), STATUS_FLAG_SHRINK)
EVT_ADD(LW(1), 15)
EVT_SETF(LW(3), EVT_FLOAT(1.0))
EVT_ELSE
EVT_ADD(LW(1), 6)
EVT_SETF(LW(3), EVT_FLOAT(0.4))
EVT_END_IF
EVT_CALL(PlayEffect, EFFECT_ID_6B, 3, LW(0), LW(1), LW(2), LW(3), 0, 0, 0, 0, 0, 0, 0, 0)
EVT_CALL(SetActorVar, ACTOR_SELF, 4, LW(15))
EVT_CALL(EnableActorGlow, ACTOR_SELF, TRUE)
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_ADDR(N(idleAnimations_80223C1C)))
EVT_RETURN
EVT_END
};
EvtScript N(802255D8) = {
EVT_CALL(SetTargetActor, ACTOR_SELF, ACTOR_PLAYER)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_19)
EVT_CALL(SetBattleCamTarget, 85, 50, 0)
EVT_CALL(SetBattleCamZoom, 280)
EVT_CALL(SetBattleCamOffsetZ, 0)
EVT_CALL(MoveBattleCamOver, 20)
EVT_WAIT_FRAMES(20)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, SOUND_SPELL_CAST1)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_tubbas_heart_Palette_00_Anim_C)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(3))
EVT_IF_NOT_FLAG(LW(3), STATUS_FLAG_SHRINK)
EVT_ADD(LW(1), 16)
EVT_ELSE
EVT_ADD(LW(1), 6)
EVT_END_IF
EVT_CALL(PlayEffect, EFFECT_ID_13, 0, LW(0), LW(1), LW(2), EVT_FLOAT(1.0), 45, 0, 0, 0, 0, 0, 0, 0)
EVT_WAIT_FRAMES(60)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(MoveBattleCamOver, 20)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_tubbas_heart_Palette_00_Anim_B)
EVT_THREAD
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 18, FALSE, TRUE, FALSE)
EVT_END_THREAD
EVT_CALL(GetActorVar, ACTOR_SELF, 1, LW(0))
EVT_SUB(LW(0), 1)
EVT_CALL(SetActorVar, ACTOR_SELF, 1, LW(0))
EVT_IF_EQ(LW(0), 0)
EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE)
EVT_CALL(GetActorVar, ACTOR_SELF, 4, LW(0))
EVT_CALL(RemoveEffect, LW(0))
EVT_CALL(SetActorVar, ACTOR_SELF, 4, 0)
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_ADDR(N(idleAnimations_80223BC0)))
EVT_END_IF
EVT_CALL(PlaySound, 0x20F9)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(EnemyTestTarget, ACTOR_SELF, LW(10), 0, 0, 1, BS_FLAGS1_10)
EVT_SWITCH(LW(10))
EVT_CASE_OR_EQ(HIT_RESULT_MISS)
EVT_CASE_OR_EQ(HIT_RESULT_LUCKY)
EVT_CALL(GetActorPos, ACTOR_PLAYER, LW(0), LW(1), LW(2))
EVT_ADD(LW(1), 5)
EVT_CALL(PlayEffect, EFFECT_ID_66, 1, LW(0), LW(1), LW(2), EVT_FLOAT(1.0), 200, 0, 0, 0, 0, 0, 0, 0)
EVT_WAIT_FRAMES(145)
EVT_IF_EQ(LW(10), HIT_RESULT_LUCKY)
EVT_CALL(EnemyTestTarget, ACTOR_SELF, LW(0), DAMAGE_TYPE_TRIGGER_LUCKY, 0, 0, 0)
EVT_ELSE
EVT_END_IF
EVT_RETURN
EVT_END_CASE_GROUP
EVT_END_SWITCH
EVT_CALL(GetActorPos, ACTOR_PLAYER, LW(0), LW(1), LW(2))
EVT_ADD(LW(1), 5)
EVT_CALL(PlayEffect, EFFECT_ID_66, 0, LW(0), LW(1), LW(2), EVT_FLOAT(1.0), 200, 0, 0, 0, 0, 0, 0, 0)
EVT_THREAD
EVT_WAIT_FRAMES(160)
EVT_CALL(PlaySound, 0x20FC)
EVT_END_THREAD
EVT_CALL(UseIdleAnimation, ACTOR_PLAYER, FALSE)
EVT_CALL(SetAnimation, ACTOR_PLAYER, 0, ANIM_1002B)
EVT_WAIT_FRAMES(30)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_19)
EVT_CALL(GetActorPos, ACTOR_PLAYER, LW(0), LW(1), LW(2))
EVT_CALL(SetBattleCamTarget, LW(0), LW(1), LW(2))
EVT_CALL(SetBattleCamZoom, 300)
EVT_CALL(SetBattleCamOffsetZ, 35)
EVT_CALL(MoveBattleCamOver, 50)
EVT_WAIT_FRAMES(56)
EVT_CALL(PlaySoundAtActor, ACTOR_PLAYER, 0x3DB)
EVT_CALL(SetAnimation, ACTOR_PLAYER, 0, 0x03000C)
EVT_WAIT_FRAMES(37)
EVT_CALL(PlaySoundAtActor, ACTOR_PLAYER, 0x3DB)
EVT_WAIT_FRAMES(22)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(MoveBattleCamOver, 10)
EVT_CALL(PlaySoundAtActor, ACTOR_PLAYER, 0x20FB)
EVT_CALL(UseIdleAnimation, ACTOR_PLAYER, TRUE)
EVT_WAIT_FRAMES(2)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LW(0), DAMAGE_TYPE_NO_CONTACT, 0, 0, 12, BS_FLAGS1_SP_EVT_ACTIVE)
EVT_RETURN
EVT_END
};

145
src/battle/area_arn/area.c Normal file
View File

@ -0,0 +1,145 @@
#include "common.h"
#include "battle/battle.h"
#define NAMESPACE b_area_arn
extern ActorBlueprint N(hyper_cleft);
extern ActorBlueprint N(hypergoomba);
extern ActorBlueprint N(hyper_paragoomba);
extern ActorBlueprint N(tubba_blubba);
extern ActorBlueprint N(tubbas_heart);
extern Stage N(arn_01);
extern Stage N(arn_02);
extern Stage N(arn_03);
extern Stage N(arn_04);
extern Stage N(arn_05);
extern Stage N(arn_06);
Formation N(formation_00) = {
{ .actor = &N(hypergoomba), .home = { .index = 1 }, .priority = 10 },
};
Formation N(formation_01) = {
{ .actor = &N(hypergoomba), .home = { .index = 1 }, .priority = 10 },
{ .actor = &N(hypergoomba), .home = { .index = 2 }, .priority = 9 },
};
Formation N(formation_02) = {
{ .actor = &N(hypergoomba), .home = { .index = 0 }, .priority = 10 },
{ .actor = &N(hypergoomba), .home = { .index = 1 }, .priority = 9 },
{ .actor = &N(hypergoomba), .home = { .index = 2 }, .priority = 8 },
};
Formation N(formation_03) = {
{ .actor = &N(hypergoomba), .home = { .index = 0 }, .priority = 10 },
{ .actor = &N(hypergoomba), .home = { .index = 1 }, .priority = 9 },
{ .actor = &N(hyper_paragoomba), .home = { .index = 6 }, .priority = 8 },
};
Formation N(formation_04) = {
{ .actor = &N(hypergoomba), .home = { .index = 0 }, .priority = 10 },
{ .actor = &N(hypergoomba), .home = { .index = 1 }, .priority = 9 },
{ .actor = &N(hypergoomba), .home = { .index = 2 }, .priority = 8 },
{ .actor = &N(hyper_paragoomba), .home = { .index = 7 }, .priority = 7 },
};
Formation N(formation_05) = {
{ .actor = &N(hypergoomba), .home = { .index = 0 }, .priority = 10 },
{ .actor = &N(hypergoomba), .home = { .index = 1 }, .priority = 9 },
{ .actor = &N(hyper_paragoomba), .home = { .index = 6 }, .priority = 8 },
{ .actor = &N(hypergoomba), .home = { .index = 3 }, .priority = 7 },
};
Formation N(formation_06) = {
{ .actor = &N(hyper_paragoomba), .home = { .index = 5 }, .priority = 10 },
};
Formation N(formation_07) = {
{ .actor = &N(hyper_paragoomba), .home = { .index = 5 }, .priority = 10 },
{ .actor = &N(hyper_paragoomba), .home = { .index = 6 }, .priority = 9 },
};
Formation N(formation_08) = {
{ .actor = &N(hyper_paragoomba), .home = { .index = 4 }, .priority = 10 },
{ .actor = &N(hyper_paragoomba), .home = { .index = 5 }, .priority = 9 },
{ .actor = &N(hyper_paragoomba), .home = { .index = 6 }, .priority = 8 },
};
Formation N(formation_09) = {
{ .actor = &N(hyper_paragoomba), .home = { .index = 4 }, .priority = 10 },
{ .actor = &N(hyper_paragoomba), .home = { .index = 5 }, .priority = 9 },
{ .actor = &N(hyper_paragoomba), .home = { .index = 6 }, .priority = 8 },
{ .actor = &N(hyper_paragoomba), .home = { .index = 7 }, .priority = 7 },
};
Formation N(formation_0A) = {
{ .actor = &N(hyper_cleft), .home = { .index = 1 }, .priority = 10 },
};
Formation N(formation_0B) = {
{ .actor = &N(hyper_cleft), .home = { .index = 1 }, .priority = 10 },
{ .actor = &N(hyper_cleft), .home = { .index = 2 }, .priority = 9 },
};
Formation N(formation_0C) = {
{ .actor = &N(hyper_cleft), .home = { .index = 0 }, .priority = 10 },
{ .actor = &N(hyper_cleft), .home = { .index = 1 }, .priority = 9 },
{ .actor = &N(hyper_cleft), .home = { .index = 2 }, .priority = 8 },
};
Formation N(formation_0D) = {
{ .actor = &N(hyper_cleft), .home = { .index = 0 }, .priority = 10 },
{ .actor = &N(hypergoomba), .home = { .index = 1 }, .priority = 9 },
{ .actor = &N(hypergoomba), .home = { .index = 2 }, .priority = 8 },
};
Formation N(formation_0E) = {
{ .actor = &N(hyper_cleft), .home = { .index = 0 }, .priority = 10 },
{ .actor = &N(hyper_cleft), .home = { .index = 1 }, .priority = 9 },
{ .actor = &N(hypergoomba), .home = { .index = 2 }, .priority = 8 },
{ .actor = &N(hypergoomba), .home = { .index = 3 }, .priority = 7 },
};
Vec3i N(vector3D_802280C0) = { 90, 20, 0 };
Formation N(formation_0F) = {
{ .actor = &N(tubbas_heart), .home = { .vec = &N(vector3D_802280C0) }, .priority = 10 },
};
Vec3i N(vector3D_802280E8) = { 75, 0, 10 };
Formation N(formation_10) = {
{ .actor = &N(tubba_blubba), .home = { .vec = &N(vector3D_802280E8) }, .priority = 10 },
};
BattleList N(formationTable) = {
BATTLE("ハイパークリボー", N(formation_00), &N(arn_01)),
BATTLE("ハイパークリボーx", N(formation_01), &N(arn_01)),
BATTLE("ハイパークリボーx", N(formation_02), &N(arn_01)),
BATTLE("ハイパークリボーx2,ハイパーパタクリボー", N(formation_03), &N(arn_01)),
BATTLE("ハイパークリボーx3,ハイパーパタクリボー", N(formation_04), &N(arn_01)),
BATTLE("ハイパークリボーx2,ハイパーパタクリボー,ハイパークリボー", N(formation_05), &N(arn_01)),
BATTLE("ハイパーパタクリボー", N(formation_06), &N(arn_01)),
BATTLE("ハイパーパタクリボーx2", N(formation_07), &N(arn_01)),
BATTLE("ハイパーパタクリボーx3", N(formation_08), &N(arn_01)),
BATTLE("ハイパーパタクリボーx4", N(formation_09), &N(arn_01)),
BATTLE("ハイパーシンエモン", N(formation_0A), &N(arn_01)),
BATTLE("ハイパーシンエモンx2", N(formation_0B), &N(arn_01)),
BATTLE("ハイパーシンエモンx3", N(formation_0C), &N(arn_01)),
BATTLE("ハイパーシンエモン,ハイパークリボーx2", N(formation_0D), &N(arn_01)),
BATTLE("ハイパーシンエモンx2,ハイパークリボーx2", N(formation_0E), &N(arn_01)),
BATTLE("ドガボンしんぞう", N(formation_0F), &N(arn_06)),
BATTLE("ドガボン", N(formation_10), &N(arn_01)),
{},
};
StageList N(stageTable) = {
{ "arn_01", &N(arn_01) },
{ "arn_02", &N(arn_02) },
{ "arn_03", &N(arn_03) },
{ "arn_04", &N(arn_04) },
{ "arn_05", &N(arn_05) },
{ "arn_06", &N(arn_06) },
{},
};

View File

@ -0,0 +1,29 @@
#include "common.h"
#include "battle/battle.h"
#define NAMESPACE b_area_arn_arn_01
EvtScript N(beforeBattle_802278F0) = {
EVT_CALL(SetSpriteShading, -1)
EVT_RETURN
EVT_END
};
EvtScript N(afterBattle_80227910) = {
EVT_RETURN
EVT_END
};
s32 N(foregroundModelList_80227920)[] = {
0xFFFFFFFF, 0x0000001F, 0x00000000,
};
Stage NAMESPACE = {
.texture = "arn_tex",
.shape = "arn_bt01_shape",
.hit = "arn_bt01_hit",
.bg = "arn_bg",
.preBattle = N(beforeBattle_802278F0),
.postBattle = N(afterBattle_80227910),
.foregroundModelList = N(foregroundModelList_80227920),
};

View File

@ -0,0 +1,46 @@
#include "common.h"
#include "battle/battle.h"
#define NAMESPACE b_area_arn_arn_02
EvtScript N(80227960) = {
EVT_SET(LW(10), LW(0))
EVT_SET(LW(0), 0)
EVT_LABEL(0)
EVT_ADD(LW(0), 1)
EVT_IF_GT(LW(0), 359)
EVT_SUB(LW(0), 360)
EVT_END_IF
EVT_CALL(RotateModel, LW(10), LW(0), 0, 0, 1)
EVT_WAIT_FRAMES(1)
EVT_GOTO(0)
EVT_RETURN
EVT_END
};
EvtScript N(beforeBattle_80227A0C) = {
EVT_CALL(SetSpriteShading, -1)
EVT_SET(LW(0), 8)
EVT_EXEC_WAIT(N(80227960))
EVT_RETURN
EVT_END
};
EvtScript N(afterBattle_80227A48) = {
EVT_RETURN
EVT_END
};
s32 N(foregroundModelList_80227A58)[] = {
0xFFFFFFFF, 0x00000019, 0x00000000,
};
Stage NAMESPACE = {
.texture = "arn_tex",
.shape = "arn_bt02_shape",
.hit = "arn_bt02_hit",
.bg = "arn_bg",
.preBattle = N(beforeBattle_80227A0C),
.postBattle = N(afterBattle_80227A48),
.foregroundModelList = N(foregroundModelList_80227A58),
};

View File

@ -0,0 +1,29 @@
#include "common.h"
#include "battle/battle.h"
#define NAMESPACE b_area_arn_arn_03
EvtScript N(beforeBattle_80227A90) = {
EVT_CALL(SetSpriteShading, -1)
EVT_RETURN
EVT_END
};
EvtScript N(afterBattle_80227AB0) = {
EVT_RETURN
EVT_END
};
s32 N(foregroundModelList_80227AC0)[] = {
0xFFFFFFFF, 0x0000001A, 0x00000000,
};
Stage NAMESPACE = {
.texture = "arn_tex",
.shape = "arn_bt03_shape",
.hit = "arn_bt03_hit",
.bg = "arn_bg",
.preBattle = N(beforeBattle_80227A90),
.postBattle = N(afterBattle_80227AB0),
.foregroundModelList = N(foregroundModelList_80227AC0),
};

View File

@ -0,0 +1,29 @@
#include "common.h"
#include "battle/battle.h"
#define NAMESPACE b_area_arn_arn_04
EvtScript N(beforeBattle_80227B00) = {
EVT_CALL(SetSpriteShading, -1)
EVT_CALL(SetCamBGColor, 1, 0, 0, 0)
EVT_RETURN
EVT_END
};
EvtScript N(afterBattle_80227B3C) = {
EVT_RETURN
EVT_END
};
s32 N(foregroundModelList_80227B4C)[] = {
0x00000014, 0x00000000,
};
Stage NAMESPACE = {
.texture = "arn_tex",
.shape = "arn_bt04_shape",
.hit = "arn_bt04_hit",
.preBattle = N(beforeBattle_80227B00),
.postBattle = N(afterBattle_80227B3C),
.foregroundModelList = N(foregroundModelList_80227B4C),
};

View File

@ -0,0 +1,29 @@
#include "common.h"
#include "battle/battle.h"
#define NAMESPACE b_area_arn_arn_05
EvtScript N(beforeBattle_80227B80) = {
EVT_CALL(SetSpriteShading, -1)
EVT_CALL(SetCamBGColor, 1, 0, 0, 0)
EVT_RETURN
EVT_END
};
EvtScript N(afterBattle_80227BBC) = {
EVT_RETURN
EVT_END
};
s32 N(foregroundModelList_80227BCC)[] = {
0x00000010, 0x00000000,
};
Stage NAMESPACE = {
.texture = "arn_tex",
.shape = "arn_bt05_shape",
.hit = "arn_bt05_hit",
.preBattle = N(beforeBattle_80227B80),
.postBattle = N(afterBattle_80227BBC),
.foregroundModelList = N(foregroundModelList_80227BCC),
};

View File

@ -0,0 +1,28 @@
#include "common.h"
#include "battle/battle.h"
#define NAMESPACE b_area_arn_arn_06
EvtScript N(beforeBattle_80227C00) = {
EVT_CALL(SetSpriteShading, -1)
EVT_RETURN
EVT_END
};
EvtScript N(afterBattle_80227C20) = {
EVT_RETURN
EVT_END
};
s32 N(foregroundModelList_80227C30)[] = {
0x0000000C, 0x00000000,
};
Stage NAMESPACE = {
.texture = "arn_tex",
.shape = "arn_bt06_shape",
.hit = "arn_bt06_hit",
.preBattle = N(beforeBattle_80227C00),
.postBattle = N(afterBattle_80227C20),
.foregroundModelList = N(foregroundModelList_80227C30),
};

View File

@ -316,7 +316,7 @@ EvtScript N(split) = {
EVT_CALL(SetGoalToIndex, LW(0), LW(10))
EVT_CALL(GetGoalPos, LW(0), LW(11), LW(12), LW(13))
EVT_CALL(SetHomePos, LW(0), LW(11), LW(12), LW(13))
EVT_CALL(SetActorJumpGravity, LW(0), EVT_FLOAT(1.2001953125))
EVT_CALL(SetActorJumpGravity, LW(0), EVT_FLOAT(1.2))
EVT_CALL(JumpToGoal, LW(0), 20, FALSE, TRUE, FALSE)
EVT_CALL(HPBarToHome, LW(0))
EVT_CALL(GetActorVar, -127, 1, LW(1))
@ -504,7 +504,7 @@ EvtScript N(8021BE64) = {
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(2), 1)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_WAIT_FRAMES(2)
@ -532,14 +532,14 @@ EvtScript N(8021C454) = {
EVT_THREAD
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(10))
EVT_IF_FLAG(LW(10), 0x80000)
EVT_CALL(SetPartScale, -127, LW(6), EVT_FLOAT(0.2001953125), EVT_FLOAT(0.2001953125), EVT_FLOAT(0.2001953125))
EVT_CALL(SetPartScale, -127, LW(6), EVT_FLOAT(0.2), EVT_FLOAT(0.2), EVT_FLOAT(0.2))
EVT_ELSE
EVT_CALL(SetPartScale, -127, LW(6), EVT_FLOAT(0.5), EVT_FLOAT(0.5), EVT_FLOAT(0.5))
EVT_END_IF
EVT_CALL(SetPartPos, ACTOR_SELF, LW(6), LW(0), LW(1), LW(2))
EVT_CALL(SetPartFlagBits, -127, LW(6), 1, 0)
EVT_CALL(SetPartMoveSpeed, -127, LW(6), EVT_FLOAT(8.0))
EVT_CALL(SetPartJumpGravity, -127, LW(6), EVT_FLOAT(0.0107421875))
EVT_CALL(SetPartJumpGravity, -127, LW(6), EVT_FLOAT(0.01))
EVT_CALL(SetPartSounds, -127, LW(6), 2, 720, 0)
EVT_CALL(JumpPartTo, -127, LW(6), LW(3), LW(4), LW(5), 0, 0)
EVT_CALL(SetPartFlagBits, -127, LW(6), 1, 1)
@ -669,7 +669,7 @@ EvtScript N(8021CBC8) = {
EVT_CALL(SetActorSounds, -127, 2, 0, 0)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x2CF)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(5.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_bubble_Palette_01_Anim_4)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
@ -703,7 +703,7 @@ EvtScript N(8021CBC8) = {
EVT_CALL(SetActorSounds, -127, 2, 0, 0)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x2CF)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(5.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_bubble_Palette_01_Anim_4)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))

View File

@ -187,7 +187,7 @@ EvtScript N(takeTurn_80219444) = {
EVT_IF_FLAG(LW(0), 0x200)
EVT_CALL(AddGoalPos, ACTOR_SELF, 5, 10, 0)
EVT_END_IF
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.1005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.1))
EVT_THREAD
EVT_WAIT_FRAMES(4)
EVT_SET(LW(0), 0)
@ -208,9 +208,9 @@ EvtScript N(takeTurn_80219444) = {
EVT_CALL(PlaySound, SOUND_JUMP_3E2)
EVT_CALL(JumpToGoal, ACTOR_SELF, 22, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_battle_goombario_default_headbonk)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1005859375), EVT_FLOAT(0.80078125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.30078125), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.3), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(GetActionCommandMode, LW(0))
EVT_IF_EQ(LW(0), 2)
@ -235,7 +235,7 @@ EvtScript N(takeTurn_80219444) = {
EVT_CASE_OR_EQ(0)
EVT_CASE_OR_EQ(2)
EVT_CASE_OR_EQ(10)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1005859375), EVT_FLOAT(0.80078125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
@ -245,7 +245,7 @@ EvtScript N(takeTurn_80219444) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 40)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_ADD(LW(0), 30)

View File

@ -261,7 +261,7 @@ EvtScript N(8021D890) = {
EVT_CALL(func_8027D32C, -127)
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_FLAG(LW(0), 0x80000)
EVT_CALL(SetPartScale, -127, 3, EVT_FLOAT(0.400390625), EVT_FLOAT(0.400390625), EVT_FLOAT(0.400390625))
EVT_CALL(SetPartScale, -127, 3, EVT_FLOAT(0.4), EVT_FLOAT(0.4), EVT_FLOAT(0.4))
EVT_END_IF
EVT_CALL(SetPartFlagBits, -127, 1, 8388608, 1)
EVT_CALL(SetPartFlagBits, -127, 1, 131073, 0)
@ -275,12 +275,12 @@ EvtScript N(8021D890) = {
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x301)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 15, FALSE, TRUE, FALSE)
EVT_CALL(N(StartRumbleWithParams), 150, 10)
EVT_THREAD
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.7001953125))
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.7))
EVT_END_THREAD
EVT_CALL(GetLastEvent, ACTOR_SELF, LW(3))
EVT_IF_EQ(LW(3), 15)
@ -765,7 +765,7 @@ EvtScript N(healOne) = {
EVT_SUB(LW(0), 16)
EVT_ADD(LW(1), 31)
EVT_SUB(LW(2), 2)
EVT_CALL(PlayEffect, 0x33, 7, LW(0), LW(1), LW(2), EVT_FLOAT(0.30078125), 30, 0, 0, 0, 0, 0, 0, 0)
EVT_CALL(PlayEffect, 0x33, 7, LW(0), LW(1), LW(2), EVT_FLOAT(0.3), 30, 0, 0, 0, 0, 0, 0, 0)
EVT_END_IF
EVT_ELSE
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
@ -779,7 +779,7 @@ EvtScript N(healOne) = {
EVT_SUB(LW(0), 30)
EVT_ADD(LW(1), 36)
EVT_SUB(LW(2), 2)
EVT_CALL(PlayEffect, 0x33, 7, LW(0), LW(1), LW(2), EVT_FLOAT(0.30078125), 30, 0, 0, 0, 0, 0, 0, 0)
EVT_CALL(PlayEffect, 0x33, 7, LW(0), LW(1), LW(2), EVT_FLOAT(0.3), 30, 0, 0, 0, 0, 0, 0, 0)
EVT_END_IF
EVT_END_IF
EVT_WAIT_FRAMES(30)
@ -845,7 +845,7 @@ EvtScript N(healAll) = {
EVT_SUB(LW(0), 16)
EVT_ADD(LW(1), 31)
EVT_SUB(LW(2), 2)
EVT_CALL(PlayEffect, 0x33, 7, LW(0), LW(1), LW(2), EVT_FLOAT(0.30078125), 30, 0, 0, 0, 0, 0, 0, 0)
EVT_CALL(PlayEffect, 0x33, 7, LW(0), LW(1), LW(2), EVT_FLOAT(0.3), 30, 0, 0, 0, 0, 0, 0, 0)
EVT_END_IF
EVT_ELSE
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
@ -859,7 +859,7 @@ EvtScript N(healAll) = {
EVT_SUB(LW(0), 30)
EVT_ADD(LW(1), 36)
EVT_SUB(LW(2), 2)
EVT_CALL(PlayEffect, 0x33, 7, LW(0), LW(1), LW(2), EVT_FLOAT(0.30078125), 30, 0, 0, 0, 0, 0, 0, 0)
EVT_CALL(PlayEffect, 0x33, 7, LW(0), LW(1), LW(2), EVT_FLOAT(0.3), 30, 0, 0, 0, 0, 0, 0, 0)
EVT_END_IF
EVT_END_IF
EVT_WAIT_FRAMES(30)
@ -1515,7 +1515,7 @@ EvtScript N(boostAttack) = {
EVT_SUB(LW(0), 16)
EVT_ADD(LW(1), 31)
EVT_SUB(LW(2), 2)
EVT_CALL(PlayEffect, 0x33, 5, LW(0), LW(1), LW(2), EVT_FLOAT(0.30078125), 30, 0, 0, 0, 0, 0, 0, 0)
EVT_CALL(PlayEffect, 0x33, 5, LW(0), LW(1), LW(2), EVT_FLOAT(0.3), 30, 0, 0, 0, 0, 0, 0, 0)
EVT_END_IF
EVT_ELSE
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
@ -1529,7 +1529,7 @@ EvtScript N(boostAttack) = {
EVT_SUB(LW(0), 30)
EVT_ADD(LW(1), 36)
EVT_SUB(LW(2), 2)
EVT_CALL(PlayEffect, 0x33, 5, LW(0), LW(1), LW(2), EVT_FLOAT(0.30078125), 30, 0, 0, 0, 0, 0, 0, 0)
EVT_CALL(PlayEffect, 0x33, 5, LW(0), LW(1), LW(2), EVT_FLOAT(0.3), 30, 0, 0, 0, 0, 0, 0, 0)
EVT_END_IF
EVT_END_IF
EVT_WAIT_FRAMES(30)
@ -1627,7 +1627,7 @@ EvtScript N(boostDefense) = {
EVT_SUB(LW(0), 16)
EVT_ADD(LW(1), 31)
EVT_SUB(LW(2), 2)
EVT_CALL(PlayEffect, 0x33, 5, LW(0), LW(1), LW(2), EVT_FLOAT(0.30078125), 30, 0, 0, 0, 0, 0, 0, 0)
EVT_CALL(PlayEffect, 0x33, 5, LW(0), LW(1), LW(2), EVT_FLOAT(0.3), 30, 0, 0, 0, 0, 0, 0, 0)
EVT_END_IF
EVT_ELSE
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
@ -1641,7 +1641,7 @@ EvtScript N(boostDefense) = {
EVT_SUB(LW(0), 30)
EVT_ADD(LW(1), 36)
EVT_SUB(LW(2), 2)
EVT_CALL(PlayEffect, 0x33, 5, LW(0), LW(1), LW(2), EVT_FLOAT(0.30078125), 30, 0, 0, 0, 0, 0, 0, 0)
EVT_CALL(PlayEffect, 0x33, 5, LW(0), LW(1), LW(2), EVT_FLOAT(0.3), 30, 0, 0, 0, 0, 0, 0, 0)
EVT_END_IF
EVT_END_IF
EVT_WAIT_FRAMES(30)
@ -1739,7 +1739,7 @@ EvtScript N(electrify) = {
EVT_SUB(LW(0), 16)
EVT_ADD(LW(1), 31)
EVT_SUB(LW(2), 2)
EVT_CALL(PlayEffect, 0x57, 0, LW(0), LW(1), LW(2), EVT_FLOAT(0.30078125), 30, 0, 0, 0, 0, 0, 0, 0)
EVT_CALL(PlayEffect, 0x57, 0, LW(0), LW(1), LW(2), EVT_FLOAT(0.3), 30, 0, 0, 0, 0, 0, 0, 0)
EVT_END_IF
EVT_ELSE
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
@ -1753,7 +1753,7 @@ EvtScript N(electrify) = {
EVT_SUB(LW(0), 30)
EVT_ADD(LW(1), 36)
EVT_SUB(LW(2), 2)
EVT_CALL(PlayEffect, 0x57, 0, LW(0), LW(1), LW(2), EVT_FLOAT(0.30078125), 30, 0, 0, 0, 0, 0, 0, 0)
EVT_CALL(PlayEffect, 0x57, 0, LW(0), LW(1), LW(2), EVT_FLOAT(0.3), 30, 0, 0, 0, 0, 0, 0, 0)
EVT_END_IF
EVT_END_IF
EVT_WAIT_FRAMES(30)
@ -1856,7 +1856,7 @@ EvtScript N(vanish) = {
EVT_SUB(LW(0), 16)
EVT_ADD(LW(1), 31)
EVT_SUB(LW(2), 2)
EVT_CALL(PlayEffect, 0x33, 6, LW(0), LW(1), LW(2), EVT_FLOAT(0.30078125), 30, 0, 0, 0, 0, 0, 0, 0)
EVT_CALL(PlayEffect, 0x33, 6, LW(0), LW(1), LW(2), EVT_FLOAT(0.3), 30, 0, 0, 0, 0, 0, 0, 0)
EVT_END_IF
EVT_ELSE
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
@ -1870,7 +1870,7 @@ EvtScript N(vanish) = {
EVT_SUB(LW(0), 30)
EVT_ADD(LW(1), 36)
EVT_SUB(LW(2), 2)
EVT_CALL(PlayEffect, 0x33, 6, LW(0), LW(1), LW(2), EVT_FLOAT(0.30078125), 30, 0, 0, 0, 0, 0, 0, 0)
EVT_CALL(PlayEffect, 0x33, 6, LW(0), LW(1), LW(2), EVT_FLOAT(0.3), 30, 0, 0, 0, 0, 0, 0, 0)
EVT_END_IF
EVT_END_IF
EVT_WAIT_FRAMES(30)

View File

@ -182,7 +182,7 @@ EvtScript N(8021E89C) = {
EVT_CALL(SetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SET(LW(1), 0)
EVT_CALL(SetActorSounds, ACTOR_SELF, 2, 769, 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 15, FALSE, TRUE, FALSE)
EVT_CALL(GetIndexFromPos, ACTOR_SELF, LW(10))
@ -604,7 +604,7 @@ EvtScript N(takeTurn_8021FF8C) = {
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(1), 24)
EVT_CALL(SetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SET(LW(1), 0)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
@ -644,7 +644,7 @@ EvtScript N(takeTurn_8021FF8C) = {
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(1), 24)
EVT_CALL(SetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(3), LW(4), LW(5))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
@ -796,7 +796,7 @@ EvtScript N(takeTurn_80220A44) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 40)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_ADD(LW(0), 30)

View File

@ -434,8 +434,8 @@ EvtScript N(handleEvent_80219050) = {
EVT_CALL(GetActorPos, ACTOR_SELF, LW(3), LW(4), LW(5))
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(6))
EVT_IF_FLAG(LW(6), STATUS_FLAG_SHRINK)
EVT_MULF(LW(0), EVT_FLOAT(0.400390625))
EVT_MULF(LW(1), EVT_FLOAT(0.400390625))
EVT_MULF(LW(0), EVT_FLOAT(0.4))
EVT_MULF(LW(1), EVT_FLOAT(0.4))
EVT_END_IF
EVT_ADDF(LW(3), LW(0))
EVT_ADDF(LW(4), LW(1))
@ -474,13 +474,13 @@ EvtScript N(takeTurn_80219D88) = {
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_SHRINK)
EVT_CALL(SetPartScale, ACTOR_SELF, 6, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
EVT_ELSE
EVT_CALL(SetPartScale, ACTOR_SELF, 6, EVT_FLOAT(0.400390625), EVT_FLOAT(0.400390625), EVT_FLOAT(1.0))
EVT_CALL(SetPartScale, ACTOR_SELF, 6, EVT_FLOAT(0.4), EVT_FLOAT(0.4), EVT_FLOAT(1.0))
EVT_END_IF
EVT_CHILD_THREAD
EVT_CALL(SetPartFlagBits, ACTOR_SELF, 6, ACTOR_PART_FLAG_INVISIBLE, 0)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetPartPos, ACTOR_SELF, 6, LW(0), LW(1), LW(2))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(2.2001953125))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(2.2))
EVT_CALL(SetAnimation, ACTOR_SELF, 6, NPC_ANIM_pokey_Palette_01_Anim_16)
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(5))
EVT_CALL(GetActorVar, ACTOR_SELF, 0, LW(10))
@ -490,7 +490,7 @@ EvtScript N(takeTurn_80219D88) = {
EVT_ADD(LW(1), 38)
EVT_ELSE
EVT_ADD(LW(1), 15)
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(1.2001953125))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(1.2))
EVT_END_IF
EVT_CALL(JumpPartTo, ACTOR_SELF, 6, LW(0), LW(1), LW(2), 15, 1)
EVT_CASE_EQ(1)
@ -498,7 +498,7 @@ EvtScript N(takeTurn_80219D88) = {
EVT_ADD(LW(1), 20)
EVT_ELSE
EVT_ADD(LW(1), 8)
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(1.2001953125))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(1.2))
EVT_END_IF
EVT_CALL(JumpPartTo, ACTOR_SELF, 6, LW(0), LW(1), LW(2), 15, 1)
EVT_CASE_EQ(2)
@ -506,7 +506,7 @@ EvtScript N(takeTurn_80219D88) = {
EVT_ADD(LW(1), 8)
EVT_ELSE
EVT_ADD(LW(1), 3)
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(1.2001953125))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(1.2))
EVT_END_IF
EVT_CALL(JumpPartTo, ACTOR_SELF, 6, LW(0), LW(1), LW(2), 15, 1)
EVT_CASE_EQ(3)
@ -539,7 +539,7 @@ EvtScript N(takeTurn_80219D88) = {
EVT_SUB(LW(0), 80)
EVT_SUB(LW(1), 5)
EVT_CALL(SetPartMoveSpeed, ACTOR_SELF, 6, EVT_FLOAT(20.0))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(0.1005859375))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(0.1))
EVT_CALL(SetAnimation, ACTOR_SELF, 6, NPC_ANIM_pokey_Palette_01_Anim_16)
EVT_CALL(JumpPartTo, ACTOR_SELF, 6, LW(0), LW(1), LW(2), 0, 1)
EVT_CALL(SetPartFlagBits, ACTOR_SELF, 6, ACTOR_PART_FLAG_INVISIBLE, 1)
@ -552,7 +552,7 @@ EvtScript N(takeTurn_80219D88) = {
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetPartMoveSpeed, ACTOR_SELF, 6, EVT_FLOAT(20.0))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(0.1005859375))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(0.1))
EVT_CALL(SetAnimation, ACTOR_SELF, 6, NPC_ANIM_pokey_Palette_01_Anim_16)
EVT_CALL(JumpPartTo, ACTOR_SELF, 6, LW(0), LW(1), LW(2), 0, 1)
EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LW(0), DAMAGE_TYPE_NO_CONTACT, 0, 0x00000008 | 0x00000020 | STATUS_FLAG_100 | STATUS_FLAG_200 | STATUS_FLAG_POISON | STATUS_FLAG_80000000, 2, BS_FLAGS1_SP_EVT_ACTIVE)
@ -565,7 +565,7 @@ EvtScript N(takeTurn_80219D88) = {
EVT_SUB(LW(0), 55)
EVT_SET(LW(1), 0)
EVT_CALL(SetPartMoveSpeed, ACTOR_SELF, 6, EVT_FLOAT(6.0))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(0.1005859375))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(0.1))
EVT_CALL(FlyPartTo, ACTOR_SELF, 6, LW(0), LW(1), LW(2), 0, 25, 0)
EVT_CALL(SetPartMoveSpeed, ACTOR_SELF, 6, EVT_FLOAT(4.0))
EVT_SUB(LW(0), 24)
@ -595,7 +595,7 @@ EvtScript N(8021A6C8) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 50)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_pokey_Palette_01_Anim_B)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(4.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(2.0))
@ -618,7 +618,7 @@ EvtScript N(8021A6C8) = {
EVT_SUB(LW(0), 5)
EVT_SET(LW(1), 10)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.1005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.1))
EVT_CHILD_THREAD
EVT_WAIT_FRAMES(2)
EVT_SET(LW(0), 0)
@ -668,7 +668,7 @@ EvtScript N(8021A6C8) = {
EVT_END_CASE_GROUP
EVT_END_SWITCH
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.1005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.1))
EVT_CHILD_THREAD
EVT_WAIT_FRAMES(2)
EVT_SET(LW(0), 0)
@ -691,7 +691,7 @@ EvtScript N(8021A6C8) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 40)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_ADD(LW(0), 30)
@ -850,7 +850,7 @@ EvtScript N(8021B998) = {
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_SHRINK)
EVT_CALL(SetPartScale, ACTOR_SELF, 6, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
EVT_ELSE
EVT_CALL(SetPartScale, ACTOR_SELF, 6, EVT_FLOAT(0.400390625), EVT_FLOAT(0.400390625), EVT_FLOAT(1.0))
EVT_CALL(SetPartScale, ACTOR_SELF, 6, EVT_FLOAT(0.4), EVT_FLOAT(0.4), EVT_FLOAT(1.0))
EVT_END_IF
EVT_EXEC_WAIT(N(8021B1B4))
EVT_SET_CONST(LW(0), 1)
@ -885,7 +885,7 @@ EvtScript N(8021B998) = {
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SET(LW(1), 0)
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(0.1005859375))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(0.1))
EVT_CALL(SetPartMoveSpeed, ACTOR_SELF, 6, EVT_FLOAT(7.0))
EVT_CALL(JumpPartTo, ACTOR_SELF, 6, LW(0), LW(1), LW(2), 0, 1)
EVT_CHILD_THREAD
@ -897,7 +897,7 @@ EvtScript N(8021B998) = {
EVT_GOTO(1)
EVT_LABEL(10)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_D)
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(0.1005859375))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(0.1))
EVT_CALL(SetPartMoveSpeed, ACTOR_SELF, 6, EVT_FLOAT(6.0))
EVT_CALL(JumpPartTo, ACTOR_SELF, 6, 296, 0, 0, 0, 1)
EVT_CALL(SetPartFlagBits, ACTOR_SELF, 6, ACTOR_PART_FLAG_NO_TARGET, 1)
@ -911,7 +911,7 @@ EvtScript N(8021BDE4) = {
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_SHRINK)
EVT_CALL(SetPartScale, ACTOR_SELF, 6, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
EVT_ELSE
EVT_CALL(SetPartScale, ACTOR_SELF, 6, EVT_FLOAT(0.400390625), EVT_FLOAT(0.400390625), EVT_FLOAT(1.0))
EVT_CALL(SetPartScale, ACTOR_SELF, 6, EVT_FLOAT(0.4), EVT_FLOAT(0.4), EVT_FLOAT(1.0))
EVT_END_IF
EVT_EXEC_WAIT(N(8021B1B4))
EVT_SET_CONST(LW(0), 1)
@ -980,7 +980,7 @@ EvtScript N(8021C2BC) = {
EVT_CALL(GetActorVar, ACTOR_SELF, 3, LW(1))
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(GetActorFlags, ACTOR_SELF, LW(9))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.05078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.05))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(10), LW(11), LW(12))
EVT_SET(LW(13), LW(11))
EVT_ADD(LW(13), 40)

View File

@ -349,7 +349,7 @@ EvtScript N(idle_80221D00) = {
EVT_CALL(SetIdleGoalToHome, ACTOR_SELF)
EVT_CALL(GetIdleGoal, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 10)
EVT_CALL(SetActorIdleJumpGravity, ACTOR_SELF, EVT_FLOAT(0.80078125))
EVT_CALL(SetActorIdleJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(SetIdleGoal, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(IdleJumpToGoal, ACTOR_SELF, 11, 1)
EVT_LOOP(0)
@ -377,7 +377,7 @@ EvtScript N(idle_80221D00) = {
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_ADDR(N(idleAnimations_802214C8)))
EVT_CALL(SetActorIdleJumpGravity, ACTOR_SELF, EVT_FLOAT(0.80078125))
EVT_CALL(SetActorIdleJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(SetIdleGoalToHome, ACTOR_SELF)
EVT_CALL(GetIdleGoal, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetIdleGoal, ACTOR_SELF, LW(0), LW(1), LW(2))
@ -391,7 +391,7 @@ EvtScript N(idle_80221D00) = {
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_ADDR(N(idleAnimations_80221504)))
EVT_CALL(SetActorIdleJumpGravity, ACTOR_SELF, EVT_FLOAT(0.80078125))
EVT_CALL(SetActorIdleJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(SetIdleGoalToHome, ACTOR_SELF)
EVT_CALL(GetIdleGoal, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 20)
@ -405,7 +405,7 @@ EvtScript N(idle_80221D00) = {
EVT_END_IF
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
EVT_CALL(SetActorIdleJumpGravity, ACTOR_SELF, EVT_FLOAT(0.80078125))
EVT_CALL(SetActorIdleJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(SetIdleGoalToHome, ACTOR_SELF)
EVT_CALL(GetIdleGoal, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 10)
@ -420,7 +420,7 @@ EvtScript N(idle_80221D00) = {
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_ADDR(N(idleAnimations_8022148C)))
EVT_CALL(SetActorIdleJumpGravity, ACTOR_SELF, EVT_FLOAT(0.80078125))
EVT_CALL(SetActorIdleJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(SetIdleGoalToHome, ACTOR_SELF)
EVT_CALL(GetIdleGoal, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetIdleGoal, ACTOR_SELF, LW(0), LW(1), LW(2))
@ -502,7 +502,7 @@ EvtScript N(handleEvent_80222364) = {
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SET(LW(1), 0)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.400390625))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.4))
EVT_CALL(AddGoalPos, ACTOR_SELF, 30, 0, 0)
EVT_CALL(JumpToGoal, ACTOR_SELF, 15, FALSE, TRUE, FALSE)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x3F9)
@ -517,7 +517,7 @@ EvtScript N(handleEvent_80222364) = {
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_stone_chomp_Palette_00_Anim_5)
EVT_EXEC_WAIT(N(80221794))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x3F9)
EVT_THREAD
@ -607,7 +607,7 @@ EvtScript N(handleEvent_80222364) = {
EVT_IF_FLAG(LW(0), STATUS_FLAG_SLEEP | STATUS_FLAG_PARALYZE | STATUS_FLAG_DIZZY | STATUS_FLAG_STONE)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_IF_NE(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), 0, LW(2))
EVT_CALL(FallToGoal, ACTOR_SELF, 11)
EVT_END_IF
@ -646,14 +646,14 @@ EvtScript N(takeTurn_80222ED0) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 20)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x3F9)
EVT_IF_EQ(LW(10), HIT_RESULT_LUCKY)
EVT_CALL(EnemyTestTarget, ACTOR_SELF, LW(0), DAMAGE_TYPE_TRIGGER_LUCKY, 0, 0, 0)
EVT_END_IF
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 25)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
@ -693,7 +693,7 @@ EvtScript N(takeTurn_80222ED0) = {
EVT_ADD(LW(0), 10)
EVT_END_IF
EVT_SET(LW(1), 27)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.2001953125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
@ -708,7 +708,7 @@ EvtScript N(takeTurn_80222ED0) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 40)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x3F9)

View File

@ -250,12 +250,12 @@ EvtScript N(8021CD04) = {
EVT_CALL(GetActorVar, ACTOR_SELF, 0, LW(10))
EVT_IF_EQ(LW(10), -1)
EVT_CALL(SetHomePos, ACTOR_SELF, LW(0), 45, LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(JumpToGoal, ACTOR_SELF, 15, FALSE, FALSE, FALSE)
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, FALSE, FALSE)
EVT_ELSE
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), 45, LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 15, FALSE, FALSE, FALSE)
EVT_CALL(GetIndexFromPos, ACTOR_SELF, LW(10))
@ -264,7 +264,7 @@ EvtScript N(8021CD04) = {
EVT_CALL(SetGoalToIndex, ACTOR_SELF, LW(10))
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(10), LW(11), LW(12))
EVT_CALL(SetHomePos, ACTOR_SELF, LW(10), LW(11), LW(12))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, FALSE, FALSE)
EVT_END_IF
@ -447,7 +447,7 @@ EvtScript N(8021D7E4) = {
EVT_SET(LW(10), LW(0))
EVT_WAIT_FRAMES(10)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(5.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_swooper_Palette_00_Anim_6)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
@ -486,7 +486,7 @@ EvtScript N(8021D7E4) = {
EVT_END_SWITCH
EVT_WAIT_FRAMES(10)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(5.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_swooper_Palette_00_Anim_6)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
@ -536,7 +536,7 @@ EvtScript N(takeTurn_8021DED4) = {
EVT_SET(LW(10), LW(0))
EVT_WAIT_FRAMES(10)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(5.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_swooper_Palette_00_Anim_6)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
@ -571,7 +571,7 @@ EvtScript N(takeTurn_8021DED4) = {
EVT_END_SWITCH
EVT_WAIT_FRAMES(10)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(5.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_swooper_Palette_00_Anim_6)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(8.0))

View File

@ -1,35 +0,0 @@
#include "common.h"
#include "effects.h"
#define NAMESPACE b_area_isk_part_2
#include "common/ChompChainInit.inc.c"
#include "common/ChompChainUpdateHelperFunc.inc.c"
#include "common/ChompChainUpdateHelperFunc2.inc.c"
INCLUDE_ASM(s32, "battle/area_isk_part_2/4EF4A0", b_area_isk_part_2_ChompChainUpdate);
ApiStatus func_8021866C_4EFB0C(Evt* script, s32 isInitialCall) {
Bytecode* args = script->ptrReadPos;
s32 var1 = *args++;
evt_get_variable(script, *args++);
return ApiStatus_DONE2;
}
#include "common/UnkBattleFunc1.inc.c"
ApiStatus func_8021875C_4EFBFC(Evt* script, s32 isInitialCall) {
Bytecode* args = script->ptrReadPos;
s32 var1 = evt_get_variable(script, *args++);
s32 var2 = evt_get_variable(script, *args++);
s32 var3 = evt_get_variable(script, *args++);
EffectInstance* effect = playFX_4C(2, var1, 150.0f, var3, var2, -0.5f, -0.9f, 0.5f, 60);
((EffectInstanceData*)effect->data)->unk_30 = 0;
((EffectInstanceData*)effect->data)->unk_38 = 0;
((EffectInstanceData*)effect->data)->unk_34 = 0;
return ApiStatus_DONE2;
}

View File

@ -1,19 +0,0 @@
#include "common.h"
#include "effects.h"
#define NAMESPACE b_area_isk_part_2
extern EffectInstance* D_80220740;
extern EffectInstance* D_80220744;
ApiStatus func_80218850_4EFCF0(Evt* script, s32 isInitialCall) {
playFX_20(1, -133.0f, 72.0f, -143.0f, 0.3f, &D_80220740);
playFX_20(1, 129.0f, 72.0f, -143.0f, 0.3f, &D_80220744);
return ApiStatus_DONE2;
}
ApiStatus func_802188E4_4EFD84(Evt* script, s32 isInitialCall) {
remove_effect(D_80220740);
remove_effect(D_80220744);
return ApiStatus_DONE2;
}

View File

@ -1,19 +0,0 @@
#include "common.h"
#include "effects.h"
#define NAMESPACE b_area_isk_part_2
extern EffectInstance* D_80220750;
extern EffectInstance* D_80220754;
ApiStatus func_80218920_4EFDC0(Evt* script, s32 isInitialCall) {
playFX_20(1, -90.0f, 45.0f, -146.0f, 0.25f, &D_80220750);
playFX_20(1, 80.0f, 45.0f, -146.0f, 0.25f, &D_80220754);
return ApiStatus_DONE2;
}
ApiStatus func_802189B0_4EFE50(Evt* script, s32 isInitialCall) {
remove_effect(D_80220750);
remove_effect(D_80220754);
return ApiStatus_DONE2;
}

View File

@ -1,38 +0,0 @@
#include "common.h"
#include "effects.h"
#define NAMESPACE b_area_isk_part_2
extern EffectInstance* D_80220760;
extern EffectInstance* D_80220770;
extern EffectInstance* D_80220780;
ApiStatus func_802189F0_4EFE90(Evt* script, s32 isInitialCall) {
playFX_20(1, -110.0f, 80.0f, -146.0f, 0.3f, &D_80220760);
return ApiStatus_DONE2;
}
ApiStatus func_80218A38_4EFED8(Evt* script, s32 isInitialCall) {
remove_effect(D_80220760);
return ApiStatus_DONE2;
}
ApiStatus func_80218A60_4EFF00(Evt* script, s32 isInitialCall) {
playFX_20(1, -110.0f, 80.0f, -146.0f, 0.3f, &D_80220770);
return ApiStatus_DONE2;
}
ApiStatus func_80218AA8_4EFF48(Evt* script, s32 isInitialCall) {
remove_effect(D_80220770);
return ApiStatus_DONE2;
}
ApiStatus func_80218AD0_4EFF70(Evt* script, s32 isInitialCall) {
playFX_20(1, 110.0f, 80.0f, -146.0f, 0.3f, &D_80220780);
return ApiStatus_DONE2;
}
ApiStatus func_80218B18_4EFFB8(Evt* script, s32 isInitialCall) {
remove_effect(D_80220780);
return ApiStatus_DONE2;
}

View File

@ -0,0 +1,919 @@
#include "common.h"
#include "battle/battle.h"
#include "script_api/battle.h"
#include "sprite/npc/chain_chomp.h"
#include "sprite/npc/tutankoopa.h"
#define NAMESPACE b_area_isk_part_2_chain_chomp
extern EvtScript N(init_80218EC4);
extern EvtScript N(takeTurn_8021A7C4);
extern EvtScript N(idle_80219108);
extern EvtScript N(handleEvent_802197C4);
extern EvtScript N(8021972C);
extern EvtScript N(8021A200);
extern EvtScript N(8021B41C);
extern EvtScript N(8021B50C);
s32 N(idleAnimations_80218B40)[] = {
STATUS_NORMAL, NPC_ANIM_chain_chomp_Palette_00_Anim_1,
STATUS_STONE, NPC_ANIM_chain_chomp_Palette_00_Anim_0,
STATUS_SLEEP, NPC_ANIM_chain_chomp_Palette_00_Anim_7,
STATUS_POISON, NPC_ANIM_chain_chomp_Palette_00_Anim_1,
STATUS_STOP, NPC_ANIM_chain_chomp_Palette_00_Anim_0,
STATUS_STATIC, NPC_ANIM_chain_chomp_Palette_00_Anim_0,
STATUS_PARALYZE, NPC_ANIM_chain_chomp_Palette_00_Anim_0,
STATUS_DIZZY, NPC_ANIM_chain_chomp_Palette_00_Anim_8,
STATUS_END,
};
s32 N(idleAnimations_80218B84)[] = {
STATUS_NORMAL, NPC_ANIM_chain_chomp_Palette_00_Anim_3,
STATUS_POISON, NPC_ANIM_chain_chomp_Palette_00_Anim_3,
STATUS_STOP, NPC_ANIM_chain_chomp_Palette_00_Anim_0,
STATUS_STONE, NPC_ANIM_chain_chomp_Palette_00_Anim_0,
STATUS_SLEEP, NPC_ANIM_chain_chomp_Palette_00_Anim_7,
STATUS_STATIC, NPC_ANIM_chain_chomp_Palette_00_Anim_0,
STATUS_PARALYZE, NPC_ANIM_chain_chomp_Palette_00_Anim_0,
STATUS_DIZZY, NPC_ANIM_chain_chomp_Palette_00_Anim_8,
STATUS_END,
};
s32 N(idleAnimations_80218BC8)[] = {
STATUS_NORMAL, NPC_ANIM_chain_chomp_Palette_00_Anim_4,
STATUS_POISON, NPC_ANIM_chain_chomp_Palette_00_Anim_4,
STATUS_STOP, NPC_ANIM_chain_chomp_Palette_00_Anim_0,
STATUS_STONE, NPC_ANIM_chain_chomp_Palette_00_Anim_0,
STATUS_SLEEP, NPC_ANIM_chain_chomp_Palette_00_Anim_7,
STATUS_STATIC, NPC_ANIM_chain_chomp_Palette_00_Anim_0,
STATUS_PARALYZE, NPC_ANIM_chain_chomp_Palette_00_Anim_0,
STATUS_DIZZY, NPC_ANIM_chain_chomp_Palette_00_Anim_8,
STATUS_END,
};
s32 N(idleAnimations_80218C0C)[] = {
STATUS_NORMAL, NPC_ANIM_chain_chomp_Palette_00_Anim_5,
STATUS_POISON, NPC_ANIM_chain_chomp_Palette_00_Anim_5,
STATUS_STOP, NPC_ANIM_chain_chomp_Palette_00_Anim_0,
STATUS_STONE, NPC_ANIM_chain_chomp_Palette_00_Anim_0,
STATUS_SLEEP, NPC_ANIM_chain_chomp_Palette_00_Anim_7,
STATUS_STATIC, NPC_ANIM_chain_chomp_Palette_00_Anim_0,
STATUS_PARALYZE, NPC_ANIM_chain_chomp_Palette_00_Anim_0,
STATUS_DIZZY, NPC_ANIM_chain_chomp_Palette_00_Anim_8,
STATUS_END,
};
s32 N(idleAnimations_80218C50)[] = {
STATUS_NORMAL, NPC_ANIM_chain_chomp_Palette_00_Anim_2,
STATUS_END,
};
s32 N(defenseTable_80218C5C)[] = {
ELEMENT_NORMAL, 3,
ELEMENT_SHOCK, 3,
ELEMENT_FIRE, 99,
ELEMENT_ICE, 99,
ELEMENT_MAGIC, 99,
ELEMENT_END,
};
s32 N(statusTable_80218C88)[] = {
STATUS_NORMAL, 0,
STATUS_DEFAULT, 0,
STATUS_SLEEP, 0,
STATUS_POISON, 0,
STATUS_FROZEN, 0,
STATUS_DIZZY, 75,
STATUS_FEAR, 0,
STATUS_STATIC, 0,
STATUS_PARALYZE, 0,
STATUS_SHRINK, 75,
STATUS_STOP, 75,
STATUS_DEFAULT_TURN_MOD, 0,
STATUS_SLEEP_TURN_MOD, -1,
STATUS_POISON_TURN_MOD, 0,
STATUS_FROZEN_TURN_MOD, 0,
STATUS_DIZZY_TURN_MOD, -1,
STATUS_FEAR_TURN_MOD, 0,
STATUS_STATIC_TURN_MOD, 0,
STATUS_PARALYZE_TURN_MOD, 0,
STATUS_SHRINK_TURN_MOD, 0,
STATUS_STOP_TURN_MOD, -1,
STATUS_END,
};
ActorPartBlueprint N(partsTable_80218D34)[] = {
{
.flags = ACTOR_PART_FLAG_NO_TARGET,
.index = 1,
.posOffset = { 0, 0, 0 },
.targetOffset = { 0, 24 },
.opacity = 255,
.idleAnimations = N(idleAnimations_80218B40),
.defenseTable = N(defenseTable_80218C5C),
.eventFlags = ACTOR_EVENT_FLAG_0,
.elementImmunityFlags = 0,
.unk_1C = 0,
},
{
.flags = ACTOR_PART_FLAG_INVISIBLE | ACTOR_PART_FLAG_100000 | ACTOR_PART_FLAG_MULTI_TARGET,
.index = 2,
.posOffset = { 0, 0, 0 },
.targetOffset = { -13, 40 },
.opacity = 255,
.idleAnimations = N(idleAnimations_80218B40),
.defenseTable = N(defenseTable_80218C5C),
.eventFlags = ACTOR_EVENT_FLAG_0,
.elementImmunityFlags = 0,
.unk_1C = 240,
},
{
.flags = ACTOR_PART_FLAG_2 | ACTOR_PART_FLAG_4000 | ACTOR_PART_FLAG_NO_TARGET | ACTOR_PART_FLAG_100000,
.index = 3,
.posOffset = { 0, 0, 0 },
.targetOffset = { 0, 12 },
.opacity = 255,
.idleAnimations = N(idleAnimations_80218C50),
.defenseTable = N(defenseTable_80218C5C),
.eventFlags = ACTOR_EVENT_FLAG_0,
.elementImmunityFlags = 0,
.unk_1C = 0,
},
{
.flags = ACTOR_PART_FLAG_2 | ACTOR_PART_FLAG_4000 | ACTOR_PART_FLAG_NO_TARGET | ACTOR_PART_FLAG_100000,
.index = 4,
.posOffset = { 0, 0, 0 },
.targetOffset = { 0, 12 },
.opacity = 255,
.idleAnimations = N(idleAnimations_80218C50),
.defenseTable = N(defenseTable_80218C5C),
.eventFlags = ACTOR_EVENT_FLAG_0,
.elementImmunityFlags = 0,
.unk_1C = 0,
},
{
.flags = ACTOR_PART_FLAG_2 | ACTOR_PART_FLAG_4000 | ACTOR_PART_FLAG_NO_TARGET | ACTOR_PART_FLAG_100000,
.index = 5,
.posOffset = { 0, 0, 0 },
.targetOffset = { 0, 12 },
.opacity = 255,
.idleAnimations = N(idleAnimations_80218C50),
.defenseTable = N(defenseTable_80218C5C),
.eventFlags = ACTOR_EVENT_FLAG_0,
.elementImmunityFlags = 0,
.unk_1C = 0,
},
{
.flags = ACTOR_PART_FLAG_2 | ACTOR_PART_FLAG_4000 | ACTOR_PART_FLAG_NO_TARGET | ACTOR_PART_FLAG_100000,
.index = 6,
.posOffset = { 0, 0, 0 },
.targetOffset = { 0, 12 },
.opacity = 255,
.idleAnimations = N(idleAnimations_80218C50),
.defenseTable = N(defenseTable_80218C5C),
.eventFlags = ACTOR_EVENT_FLAG_0,
.elementImmunityFlags = 0,
.unk_1C = 0,
},
{
.flags = ACTOR_PART_FLAG_2 | ACTOR_PART_FLAG_4000 | ACTOR_PART_FLAG_NO_TARGET | ACTOR_PART_FLAG_100000,
.index = 7,
.posOffset = { 0, 0, 0 },
.targetOffset = { 0, 12 },
.opacity = 255,
.idleAnimations = N(idleAnimations_80218C50),
.defenseTable = N(defenseTable_80218C5C),
.eventFlags = ACTOR_EVENT_FLAG_0,
.elementImmunityFlags = 0,
.unk_1C = 0,
},
{
.flags = ACTOR_PART_FLAG_2 | ACTOR_PART_FLAG_4000 | ACTOR_PART_FLAG_NO_TARGET | ACTOR_PART_FLAG_100000,
.index = 8,
.posOffset = { 0, 0, 0 },
.targetOffset = { 0, 12 },
.opacity = 255,
.idleAnimations = N(idleAnimations_80218C50),
.defenseTable = N(defenseTable_80218C5C),
.eventFlags = ACTOR_EVENT_FLAG_0,
.elementImmunityFlags = 0,
.unk_1C = 0,
},
{
.flags = ACTOR_PART_FLAG_2 | ACTOR_PART_FLAG_4000 | ACTOR_PART_FLAG_NO_TARGET | ACTOR_PART_FLAG_100000,
.index = 9,
.posOffset = { 0, 0, 0 },
.targetOffset = { 0, 12 },
.opacity = 255,
.idleAnimations = N(idleAnimations_80218C50),
.defenseTable = N(defenseTable_80218C5C),
.eventFlags = ACTOR_EVENT_FLAG_0,
.elementImmunityFlags = 0,
.unk_1C = 0,
},
{
.flags = ACTOR_PART_FLAG_2 | ACTOR_PART_FLAG_4000 | ACTOR_PART_FLAG_NO_TARGET | ACTOR_PART_FLAG_100000,
.index = 10,
.posOffset = { 0, 0, 0 },
.targetOffset = { 0, 12 },
.opacity = 255,
.idleAnimations = N(idleAnimations_80218C50),
.defenseTable = N(defenseTable_80218C5C),
.eventFlags = ACTOR_EVENT_FLAG_0,
.elementImmunityFlags = 0,
.unk_1C = 0,
},
};
ActorBlueprint NAMESPACE = {
.flags = 0,
.type = ACTOR_TYPE_CHOMP,
.level = 14,
.maxHP = 4,
.partCount = ARRAY_COUNT(N(partsTable_80218D34)),
.partsData = N(partsTable_80218D34),
.script = N(init_80218EC4),
.statusTable = N(statusTable_80218C88),
.escapeChance = 0,
.airLiftChance = 0,
.spookChance = 0,
.baseStatusChance = 0,
.upAndAwayChance = 0,
.spinSmashReq = 0,
.powerBounceChance = 95,
.coinReward = 0,
.size = { 56, 40 },
.hpBarOffset = { 0, 0 },
.statusIconOffset = { -10, 20 },
.statusMessageOffset = { 10, 20 },
};
#include "common/ChompChainInit.inc.c"
#include "common/ChompChainUpdateHelperFunc.inc.c"
#include "common/ChompChainUpdateHelperFunc2.inc.c"
ApiStatus N(ChompChainUpdate)(Evt* script, s32 isInitialCall);
INCLUDE_ASM(ApiStatus, "battle/area_isk_part_2/4EF4A0", b_area_isk_part_2_chain_chomp_ChompChainUpdate);
ApiStatus func_8021866C_4EFB0C(Evt* script, s32 isInitialCall) {
Bytecode* args = script->ptrReadPos;
s32 var1 = *args++;
evt_get_variable(script, *args++);
return ApiStatus_DONE2;
}
EvtScript N(init_80218EC4) = {
EVT_CALL(SetActorVar, ACTOR_SELF, 8, 0)
EVT_CALL(BindTakeTurn, ACTOR_SELF, EVT_ADDR(N(takeTurn_8021A7C4)))
EVT_CALL(BindIdle, ACTOR_SELF, EVT_ADDR(N(idle_80219108)))
EVT_CALL(BindHandleEvent, ACTOR_SELF, EVT_ADDR(N(handleEvent_802197C4)))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetPartPos, ACTOR_SELF, 2, LW(0), LW(1), LW(2))
EVT_SET(LW(0), 3)
EVT_LOOP(8)
EVT_CALL(SetPartSize, ACTOR_SELF, LW(0), 16, 16)
EVT_ADD(LW(0), 1)
EVT_END_LOOP
EVT_CALL(N(ChompChainInit))
EVT_EXEC(N(8021972C))
EVT_RETURN
EVT_END
};
EvtScript N(80218FCC) = {
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_FLAG(LW(0), STATUS_FLAG_SLEEP | STATUS_FLAG_FROZEN | STATUS_FLAG_FEAR | STATUS_FLAG_PARALYZE | STATUS_FLAG_DIZZY | STATUS_FLAG_STONE | STATUS_FLAG_STOP)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetPartPos, ACTOR_SELF, 2, LW(0), LW(1), LW(2))
EVT_CALL(SetTargetOffset, ACTOR_SELF, 2, 0, 24)
EVT_CALL(func_8027D4C8, ACTOR_SELF, 2, 0, 0)
EVT_ELSE
EVT_CALL(SetIdleGoalToHome, ACTOR_SELF)
EVT_CALL(GetIdleGoal, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetPartPos, ACTOR_SELF, 2, LW(0), LW(1), LW(2))
EVT_CALL(SetTargetOffset, ACTOR_SELF, 2, -13, 40)
EVT_CALL(func_8027D4C8, ACTOR_SELF, 2, 0, -14)
EVT_END_IF
EVT_RETURN
EVT_END
};
EvtScript N(idle_80219108) = {
EVT_LABEL(0)
EVT_LOOP(0)
EVT_EXEC_WAIT(N(80218FCC))
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_SLEEP | STATUS_FLAG_FROZEN | STATUS_FLAG_FEAR | STATUS_FLAG_PARALYZE | STATUS_FLAG_DIZZY | STATUS_FLAG_STONE | STATUS_FLAG_STOP)
EVT_BREAK_LOOP
EVT_END_IF
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_ADDR(N(idleAnimations_80218C0C)))
EVT_CALL(SetActorIdleJumpGravity, ACTOR_SELF, EVT_FLOAT(1.0))
EVT_CALL(SetIdleGoalToHome, ACTOR_SELF)
EVT_CALL(GetIdleGoal, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 10)
EVT_CALL(SetActorIdleJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(SetIdleGoal, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(IdleJumpToGoal, ACTOR_SELF, 11, 1)
EVT_LOOP(0)
EVT_EXEC_WAIT(N(80218FCC))
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_SLEEP | STATUS_FLAG_FROZEN | STATUS_FLAG_FEAR | STATUS_FLAG_PARALYZE | STATUS_FLAG_DIZZY | STATUS_FLAG_STONE | STATUS_FLAG_STOP)
EVT_BREAK_LOOP
EVT_END_IF
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
EVT_CALL(SetActorIdleJumpGravity, ACTOR_SELF, EVT_FLOAT(1.0))
EVT_CALL(SetIdleGoalToHome, ACTOR_SELF)
EVT_CALL(GetIdleGoal, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetIdleGoal, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(IdleJumpToGoal, ACTOR_SELF, 6, 1)
EVT_CALL(RandInt, 10, LW(0))
EVT_ADD(LW(0), 1)
EVT_WAIT_FRAMES(LW(0))
EVT_LOOP(0)
EVT_EXEC_WAIT(N(80218FCC))
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_SLEEP | STATUS_FLAG_FROZEN | STATUS_FLAG_FEAR | STATUS_FLAG_PARALYZE | STATUS_FLAG_DIZZY | STATUS_FLAG_STONE | STATUS_FLAG_STOP)
EVT_BREAK_LOOP
EVT_END_IF
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_ADDR(N(idleAnimations_80218BC8)))
EVT_CALL(SetActorIdleJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(SetIdleGoalToHome, ACTOR_SELF)
EVT_CALL(GetIdleGoal, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetIdleGoal, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(IdleJumpToGoal, ACTOR_SELF, 15, 1)
EVT_LOOP(0)
EVT_EXEC_WAIT(N(80218FCC))
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_SLEEP | STATUS_FLAG_FROZEN | STATUS_FLAG_FEAR | STATUS_FLAG_PARALYZE | STATUS_FLAG_DIZZY | STATUS_FLAG_STONE | STATUS_FLAG_STOP)
EVT_BREAK_LOOP
EVT_END_IF
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_ADDR(N(idleAnimations_80218C0C)))
EVT_CALL(SetActorIdleJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(SetIdleGoalToHome, ACTOR_SELF)
EVT_CALL(GetIdleGoal, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 20)
EVT_CALL(SetIdleGoal, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(IdleJumpToGoal, ACTOR_SELF, 12, 1)
EVT_LOOP(0)
EVT_EXEC_WAIT(N(80218FCC))
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_SLEEP | STATUS_FLAG_FROZEN | STATUS_FLAG_FEAR | STATUS_FLAG_PARALYZE | STATUS_FLAG_DIZZY | STATUS_FLAG_STONE | STATUS_FLAG_STOP)
EVT_BREAK_LOOP
EVT_END_IF
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
EVT_CALL(SetActorIdleJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(SetIdleGoalToHome, ACTOR_SELF)
EVT_CALL(GetIdleGoal, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 10)
EVT_CALL(SetIdleGoal, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(IdleJumpToGoal, ACTOR_SELF, 9, 1)
EVT_LOOP(0)
EVT_EXEC_WAIT(N(80218FCC))
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_SLEEP | STATUS_FLAG_FROZEN | STATUS_FLAG_FEAR | STATUS_FLAG_PARALYZE | STATUS_FLAG_DIZZY | STATUS_FLAG_STONE | STATUS_FLAG_STOP)
EVT_BREAK_LOOP
EVT_END_IF
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_ADDR(N(idleAnimations_80218B84)))
EVT_CALL(SetActorIdleJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(SetIdleGoalToHome, ACTOR_SELF)
EVT_CALL(GetIdleGoal, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetIdleGoal, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(IdleJumpToGoal, ACTOR_SELF, 6, 1)
EVT_CALL(RandInt, 10, LW(0))
EVT_ADD(LW(0), 10)
EVT_WAIT_FRAMES(LW(0))
EVT_GOTO(0)
EVT_RETURN
EVT_END
};
EvtScript N(8021972C) = {
EVT_LABEL(0)
EVT_WAIT_FRAMES(1)
EVT_CALL(ActorExists, ACTOR_ENEMY1, LW(0))
EVT_IF_EQ(LW(0), TRUE)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(N(ChompChainUpdate), LW(2))
EVT_GOTO(0)
EVT_END_IF
EVT_LABEL(1)
EVT_RETURN
EVT_END
};
EvtScript N(handleEvent_802197C4) = {
EVT_CALL(UseIdleAnimation, ACTOR_SELF, FALSE)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 0)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
EVT_CALL(GetLastEvent, ACTOR_SELF, LW(0))
EVT_SET(LW(15), LW(0))
EVT_SWITCH(LW(0))
EVT_CASE_EQ(EVENT_HIT_COMBO)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_chain_chomp_Palette_00_Anim_6)
EVT_EXEC_WAIT(DoNormalHit)
EVT_CASE_EQ(EVENT_HIT)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_chain_chomp_Palette_00_Anim_6)
EVT_EXEC_WAIT(DoNormalHit)
EVT_CASE_EQ(EVENT_BEGIN_FIRST_STRIKE)
EVT_CASE_EQ(EVENT_BURN_HIT)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_chain_chomp_Palette_00_Anim_6)
EVT_SET_CONST(LW(2), -1)
EVT_EXEC_WAIT(DoBurnHit)
EVT_CASE_EQ(EVENT_BURN_DEATH)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_chain_chomp_Palette_00_Anim_6)
EVT_SET_CONST(LW(2), -1)
EVT_EXEC_WAIT(DoBurnHit)
EVT_WAIT_FRAMES(10)
EVT_CALL(SetActorVar, ACTOR_ENEMY0, 12, 2)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_chain_chomp_Palette_00_Anim_6)
EVT_EXEC_WAIT(DoDeath)
EVT_RETURN
EVT_CASE_EQ(EVENT_SPIN_SMASH_HIT)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_chain_chomp_Palette_00_Anim_6)
EVT_EXEC_WAIT(N(8021A200))
EVT_CALL(EnableIdleScript, ACTOR_SELF, -1)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_RETURN
EVT_CASE_EQ(EVENT_SHOCK_HIT)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_chain_chomp_Palette_00_Anim_6)
EVT_EXEC_WAIT(DoShockHit)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_chain_chomp_Palette_00_Anim_6)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(SetAnimation, ACTOR_SELF, LW(0), LW(1))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SET(LW(1), 0)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.4))
EVT_CALL(AddGoalPos, ACTOR_SELF, 30, 0, 0)
EVT_CALL(JumpToGoal, ACTOR_SELF, 15, FALSE, TRUE, FALSE)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x2062)
EVT_CALL(AddGoalPos, ACTOR_SELF, 15, 0, 0)
EVT_CALL(JumpToGoal, ACTOR_SELF, 8, FALSE, TRUE, FALSE)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x2062)
EVT_CALL(AddGoalPos, ACTOR_SELF, 5, 0, 0)
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x2062)
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x2062)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_chain_chomp_Palette_00_Anim_5)
EVT_EXEC_WAIT(N(8021B41C))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x2062)
EVT_THREAD
EVT_CALL(ShakeCam, 1, 0, 1, EVT_FLOAT(0.5))
EVT_END_THREAD
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetPartPos, ACTOR_SELF, 2, LW(0), LW(1), LW(2))
EVT_CALL(SetActorVar, ACTOR_SELF, 8, 0)
EVT_CASE_EQ(EVENT_BEGIN_AIR_LIFT)
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_SLEEP | STATUS_FLAG_FROZEN | STATUS_FLAG_FEAR | STATUS_FLAG_PARALYZE | STATUS_FLAG_DIZZY | STATUS_FLAG_STONE | STATUS_FLAG_STOP)
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(1), LW(2), LW(3))
EVT_IF_FLAG(LW(0), STATUS_FLAG_SHRINK)
EVT_SUB(LW(1), 10)
EVT_ADD(LW(2), 4)
EVT_ELSE
EVT_SUB(LW(1), 5)
EVT_ADD(LW(2), 11)
EVT_END_IF
EVT_CALL(SetActorPos, ACTOR_SELF, LW(1), LW(2), LW(3))
EVT_END_IF
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_chain_chomp_Palette_00_Anim_6)
EVT_EXEC_WAIT(DoAirLift)
EVT_CALL(EnableIdleScript, ACTOR_SELF, -1)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_RETURN
EVT_CASE_EQ(EVENT_BLOW_AWAY)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_chain_chomp_Palette_00_Anim_6)
EVT_EXEC_WAIT(DoBlowAway)
EVT_RETURN
EVT_CASE_EQ(EVENT_AIR_LIFT_FAILED)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_chain_chomp_Palette_00_Anim_1)
EVT_EXEC_WAIT(DoImmune)
EVT_CALL(SetAnimationRate, ACTOR_SELF, 1, EVT_FLOAT(1.0))
EVT_CASE_OR_EQ(EVENT_UNKNOWN_TRIGGER)
EVT_CASE_OR_EQ(EVENT_IMMUNE)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_chain_chomp_Palette_00_Anim_1)
EVT_EXEC_WAIT(DoImmune)
EVT_END_CASE_GROUP
EVT_CASE_EQ(EVENT_SHOCK_DEATH)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_chain_chomp_Palette_00_Anim_6)
EVT_EXEC_WAIT(DoShockHit)
EVT_CALL(SetActorVar, ACTOR_SELF, 8, 0)
EVT_WAIT_FRAMES(10)
EVT_CALL(SetActorVar, ACTOR_ENEMY0, 12, 2)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_chain_chomp_Palette_00_Anim_6)
EVT_EXEC_WAIT(DoDeath)
EVT_RETURN
EVT_CASE_EQ(EVENT_DEATH)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_chain_chomp_Palette_00_Anim_6)
EVT_EXEC_WAIT(DoNormalHit)
EVT_WAIT_FRAMES(10)
EVT_CALL(SetActorVar, ACTOR_ENEMY0, 12, 2)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_chain_chomp_Palette_00_Anim_6)
EVT_EXEC_WAIT(DoDeath)
EVT_RETURN
EVT_CASE_EQ(EVENT_SPIN_SMASH_DEATH)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_chain_chomp_Palette_00_Anim_6)
EVT_EXEC_WAIT(N(8021A200))
EVT_CALL(SetActorVar, ACTOR_ENEMY0, 12, 2)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_chain_chomp_Palette_00_Anim_6)
EVT_EXEC_WAIT(DoDeath)
EVT_RETURN
EVT_CASE_EQ(EVENT_RECOVER_STATUS)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_chain_chomp_Palette_00_Anim_1)
EVT_EXEC_WAIT(DoRecover)
EVT_CASE_DEFAULT
EVT_END_SWITCH
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_FLAG(LW(0), STATUS_FLAG_SLEEP | STATUS_FLAG_PARALYZE | STATUS_FLAG_DIZZY | STATUS_FLAG_STONE)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_IF_NE(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), 0, LW(2))
EVT_CALL(FallToGoal, ACTOR_SELF, 11)
EVT_END_IF
EVT_END_IF
EVT_CALL(EnableIdleScript, ACTOR_SELF, -1)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_RETURN
EVT_END
};
EvtScript N(8021A200) = {
EVT_CALL(ActorExists, ACTOR_ENEMY0, LW(0))
EVT_IF_EQ(LW(0), FALSE)
EVT_GOTO(1)
EVT_END_IF
EVT_CALL(GetActorVar, ACTOR_ENEMY0, 8, LW(0))
EVT_IF_EQ(LW(0), 0)
EVT_GOTO(1)
EVT_END_IF
EVT_LABEL(0)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_chain_chomp_Palette_00_Anim_6)
EVT_CALL(SetTargetActor, ACTOR_SELF, ACTOR_ENEMY0)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), 20, LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.1))
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(7.0))
EVT_CALL(JumpToGoal, ACTOR_SELF, 0, FALSE, TRUE, FALSE)
EVT_THREAD
EVT_CALL(ShakeCam, 1, 0, 2, EVT_FLOAT(1.0))
EVT_END_THREAD
EVT_WAIT_FRAMES(2)
EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LW(0), DAMAGE_TYPE_IGNORE_DEFENSE, 0, 0, 1, BS_FLAGS1_SP_EVT_ACTIVE)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.1))
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(6.0))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, 150, LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 0, FALSE, TRUE, FALSE)
EVT_THREAD
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_SHRINK)
EVT_CALL(ShakeCam, 1, 0, 1, EVT_FLOAT(0.5))
EVT_END_IF
EVT_END_THREAD
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.0))
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(6.0))
EVT_CALL(SetGoalPos, ACTOR_SELF, 130, LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_THREAD
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_SHRINK)
EVT_CALL(ShakeCam, 1, 0, 1, EVT_FLOAT(0.5))
EVT_END_IF
EVT_END_THREAD
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, 0, 0)
EVT_WAIT_FRAMES(15)
EVT_GOTO(10)
EVT_LABEL(1)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_chain_chomp_Palette_00_Anim_6)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.1))
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(6.0))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, 135, LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 0, FALSE, TRUE, FALSE)
EVT_THREAD
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_SHRINK)
EVT_CALL(ShakeCam, 1, 0, 1, EVT_FLOAT(0.5))
EVT_END_IF
EVT_END_THREAD
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.0))
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(6.0))
EVT_CALL(SetGoalPos, ACTOR_SELF, 105, LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_THREAD
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_SHRINK)
EVT_CALL(ShakeCam, 1, 0, 1, EVT_FLOAT(0.5))
EVT_END_IF
EVT_END_THREAD
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, 0, 0)
EVT_WAIT_FRAMES(15)
EVT_LABEL(10)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_chain_chomp_Palette_00_Anim_1)
EVT_EXEC_WAIT(N(8021B41C))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_tutankoopa_Palette_00_Anim_1)
EVT_RETURN
EVT_END
};
EvtScript N(takeTurn_8021A7C4) = {
EVT_CALL(SetActorVar, ACTOR_SELF, 8, 1)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, FALSE)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 0)
EVT_CALL(SetTargetActor, ACTOR_SELF, ACTOR_PLAYER)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_63)
EVT_CALL(BattleCamTargetActor, ACTOR_SELF)
EVT_CALL(func_8024ECF8, -1, 1, 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.5))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SET(LW(1), 0)
EVT_ADD(LW(0), 45)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 15, FALSE, TRUE, FALSE)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x2062)
EVT_THREAD
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_SHRINK)
EVT_CALL(ShakeCam, 1, 0, 1, EVT_FLOAT(0.5))
EVT_END_IF
EVT_END_THREAD
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_chain_chomp_Palette_00_Anim_5)
EVT_WAIT_FRAMES(15)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x10F)
EVT_CALL(EnemyTestTarget, ACTOR_SELF, LW(0), 0, 0, 1, BS_FLAGS1_10)
EVT_SWITCH(LW(0))
EVT_CASE_OR_EQ(HIT_RESULT_MISS)
EVT_CASE_OR_EQ(HIT_RESULT_LUCKY)
EVT_SET(LW(10), LW(0))
EVT_CALL(PlaySound, 0x10F)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_chain_chomp_Palette_00_Anim_1)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 20)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x2062)
EVT_THREAD
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_SHRINK)
EVT_CALL(ShakeCam, 1, 0, 1, EVT_FLOAT(0.5))
EVT_END_IF
EVT_END_THREAD
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 25)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 6, FALSE, TRUE, FALSE)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x2062)
EVT_THREAD
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_SHRINK)
EVT_CALL(ShakeCam, 1, 0, 1, EVT_FLOAT(0.5))
EVT_END_IF
EVT_END_THREAD
EVT_SUB(LW(0), 15)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 4, FALSE, TRUE, FALSE)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x2062)
EVT_THREAD
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_SHRINK)
EVT_CALL(ShakeCam, 1, 0, 1, EVT_FLOAT(0.5))
EVT_END_IF
EVT_END_THREAD
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_chain_chomp_Palette_00_Anim_4)
EVT_WAIT_FRAMES(20)
EVT_IF_EQ(LW(10), HIT_RESULT_LUCKY)
EVT_CALL(EnemyTestTarget, ACTOR_SELF, LW(0), DAMAGE_TYPE_TRIGGER_LUCKY, 0, 0, 0)
EVT_END_IF
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(MoveBattleCamOver, 20)
EVT_CALL(SetActorYaw, ACTOR_SELF, 180)
EVT_CALL(AddActorDecoration, ACTOR_SELF, 1, 0, 2)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_chain_chomp_Palette_00_Anim_1)
EVT_EXEC_WAIT(N(8021B41C))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_chain_chomp_Palette_00_Anim_1)
EVT_CALL(HPBarToHome, ACTOR_SELF)
EVT_CALL(RemoveActorDecoration, ACTOR_SELF, 1, 0)
EVT_CALL(SetActorYaw, ACTOR_SELF, 0)
EVT_CALL(SetActorVar, ACTOR_SELF, 8, 0)
EVT_CALL(EnableIdleScript, ACTOR_SELF, -1)
EVT_RETURN
EVT_END_CASE_GROUP
EVT_END_SWITCH
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_chain_chomp_Palette_00_Anim_1)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(10))
EVT_IF_FLAG(LW(10), STATUS_FLAG_SHRINK)
EVT_ADD(LW(0), 4)
EVT_ELSE
EVT_ADD(LW(0), 10)
EVT_END_IF
EVT_SET(LW(1), 27)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_WAIT_FRAMES(2)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetPartPos, ACTOR_SELF, 2, LW(0), LW(1), LW(2))
EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LW(15), 0, 0, 0, 3, BS_FLAGS1_SP_EVT_ACTIVE)
EVT_SWITCH(LW(15))
EVT_CASE_DEFAULT
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(MoveBattleCamOver, 20)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_chain_chomp_Palette_00_Anim_4)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 40)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x2062)
EVT_THREAD
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_SHRINK)
EVT_CALL(ShakeCam, 1, 0, 1, EVT_FLOAT(0.5))
EVT_END_IF
EVT_END_THREAD
EVT_ADD(LW(0), 30)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 8, FALSE, TRUE, FALSE)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x2062)
EVT_THREAD
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_SHRINK)
EVT_CALL(ShakeCam, 1, 0, 1, EVT_FLOAT(0.5))
EVT_END_IF
EVT_END_THREAD
EVT_ADD(LW(0), 20)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 6, FALSE, TRUE, FALSE)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x2062)
EVT_THREAD
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_SHRINK)
EVT_CALL(ShakeCam, 1, 0, 1, EVT_FLOAT(0.5))
EVT_END_IF
EVT_END_THREAD
EVT_SUB(LW(0), 10)
EVT_CALL(JumpToGoal, ACTOR_SELF, 4, FALSE, TRUE, FALSE)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x2062)
EVT_THREAD
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_SHRINK)
EVT_CALL(ShakeCam, 1, 0, 1, EVT_FLOAT(0.5))
EVT_END_IF
EVT_END_THREAD
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_chain_chomp_Palette_00_Anim_1)
EVT_WAIT_FRAMES(8)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_IF_EQ(LW(15), HIT_RESULT_10)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetPartPos, ACTOR_SELF, 2, LW(0), LW(1), LW(2))
EVT_RETURN
EVT_END_IF
EVT_CALL(YieldTurn)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_chain_chomp_Palette_00_Anim_1)
EVT_EXEC_WAIT(N(8021B41C))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_chain_chomp_Palette_00_Anim_1)
EVT_END_SWITCH
EVT_CALL(SetActorVar, ACTOR_SELF, 8, 0)
EVT_CALL(HPBarToHome, ACTOR_SELF)
EVT_CALL(EnableIdleScript, ACTOR_SELF, -1)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_RETURN
EVT_END
};
EvtScript N(8021B41C) = {
EVT_CALL(SetAnimation, ACTOR_SELF, LW(0), LW(1))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_chain_chomp_Palette_00_Anim_4)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(4.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_EXEC_WAIT(N(8021B50C))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetPartPos, ACTOR_SELF, 2, LW(0), LW(1), LW(2))
EVT_CALL(SetActorYaw, ACTOR_SELF, 0)
EVT_RETURN
EVT_END
};
EvtScript N(8021B50C) = {
EVT_CALL(GetActorPos, ACTOR_SELF, LW(3), LW(4), LW(5))
EVT_IF_LT(LW(3), LW(0))
EVT_CALL(SetActorYaw, ACTOR_SELF, 180)
EVT_ELSE
EVT_CALL(SetActorYaw, ACTOR_SELF, 0)
EVT_END_IF
EVT_LABEL(0)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(3), LW(4), LW(5))
EVT_IF_EQ(LW(3), LW(0))
EVT_GOTO(10)
EVT_END_IF
EVT_IF_LT(LW(3), LW(0))
EVT_SET(LW(4), LW(0))
EVT_SUB(LW(4), LW(3))
EVT_IF_LT(LW(4), 30)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 6, FALSE, TRUE, FALSE)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x2062)
EVT_THREAD
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_SHRINK)
EVT_CALL(ShakeCam, 1, 0, 1, EVT_FLOAT(0.5))
EVT_END_IF
EVT_END_THREAD
EVT_ELSE
EVT_SET(LW(4), LW(3))
EVT_ADD(LW(3), 30)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(3), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 6, FALSE, TRUE, FALSE)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x2062)
EVT_THREAD
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_SHRINK)
EVT_CALL(ShakeCam, 1, 0, 1, EVT_FLOAT(0.5))
EVT_END_IF
EVT_END_THREAD
EVT_END_IF
EVT_ELSE
EVT_SET(LW(4), LW(3))
EVT_SUB(LW(4), LW(0))
EVT_IF_LT(LW(4), 30)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 6, FALSE, TRUE, FALSE)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x2062)
EVT_THREAD
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_SHRINK)
EVT_CALL(ShakeCam, 1, 0, 1, EVT_FLOAT(0.5))
EVT_END_IF
EVT_END_THREAD
EVT_ELSE
EVT_SUB(LW(3), 30)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(3), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 6, FALSE, TRUE, FALSE)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x2062)
EVT_THREAD
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_SHRINK)
EVT_CALL(ShakeCam, 1, 0, 1, EVT_FLOAT(0.5))
EVT_END_IF
EVT_END_THREAD
EVT_END_IF
EVT_END_IF
EVT_GOTO(0)
EVT_LABEL(10)
EVT_RETURN
EVT_END
};

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,46 @@
#include "common.h"
#include "battle/battle.h"
#define NAMESPACE b_area_isk_part_2
extern ActorBlueprint N(tutankoopa);
extern Stage N(isk_00);
extern Stage N(isk_01);
extern Stage N(isk_02);
extern Stage N(isk_02b);
extern Stage N(isk_02c);
extern Stage N(isk_03);
extern Stage N(isk_03b);
extern Stage N(isk_04);
extern Stage N(isk_05);
extern Stage N(isk_06);
extern Stage N(isk_06b);
extern Stage N(isk_07);
Vec3i N(vector3D_80220420) = { 97, 70, 17 };
Formation N(formation_00) = {
{ .actor = &N(tutankoopa), .home = { .vec = &N(vector3D_80220420) }, .priority = 10 },
};
BattleList N(formationTable) = {
BATTLE("カーメン ワンワン", N(formation_00), &N(isk_01)),
{},
};
StageList N(stageTable) = {
{ "isk_00", &N(isk_00) },
{ "isk_01", &N(isk_01) },
{ "isk_02", &N(isk_02) },
{ "isk_02b", &N(isk_02b) },
{ "isk_02c", &N(isk_02c) },
{ "isk_03", &N(isk_03) },
{ "isk_03b", &N(isk_03b) },
{ "isk_04", &N(isk_04) },
{ "isk_05", &N(isk_05) },
{ "isk_06", &N(isk_06) },
{ "isk_06b", &N(isk_06b) },
{ "isk_07", &N(isk_07) },
{},
};

View File

@ -0,0 +1,23 @@
#include "common.h"
#include "battle/battle.h"
#define NAMESPACE b_area_isk_part_2_isk_00
EvtScript N(beforeBattle_8021FCF0) = {
EVT_CALL(SetSpriteShading, -1)
EVT_CALL(SetCamBGColor, 1, 0, 0, 0)
EVT_RETURN
EVT_END
};
EvtScript N(afterBattle_8021FD2C) = {
EVT_RETURN
EVT_END
};
Stage NAMESPACE = {
.texture = "isk_tex",
.shape = "isk_bt00_shape",
.preBattle = N(beforeBattle_8021FCF0),
.postBattle = N(afterBattle_8021FD2C),
};

View File

@ -0,0 +1,24 @@
#include "common.h"
#include "battle/battle.h"
#define NAMESPACE b_area_isk_part_2_isk_01
EvtScript N(beforeBattle_8021FD70) = {
EVT_CALL(SetSpriteShading, -1)
EVT_CALL(SetCamBGColor, 1, 0, 0, 0)
EVT_RETURN
EVT_END
};
EvtScript N(afterBattle_8021FDAC) = {
EVT_RETURN
EVT_END
};
Stage NAMESPACE = {
.texture = "isk_tex",
.shape = "isk_bt01_shape",
.hit = "isk_bt01_hit",
.preBattle = N(beforeBattle_8021FD70),
.postBattle = N(afterBattle_8021FDAC),
};

View File

@ -0,0 +1,29 @@
#include "common.h"
#include "battle/battle.h"
#define NAMESPACE b_area_isk_part_2_isk_02
EvtScript N(beforeBattle_8021FDF0) = {
EVT_CALL(SetSpriteShading, 786432)
EVT_CALL(SetCamBGColor, 1, 0, 0, 0)
EVT_RETURN
EVT_END
};
EvtScript N(afterBattle_8021FE2C) = {
EVT_RETURN
EVT_END
};
s32 N(foregroundModelList_8021FE3C)[] = {
0x0000001F, 0x0000001E, 0x00000021, 0x00000000,
};
Stage NAMESPACE = {
.texture = "isk_tex",
.shape = "isk_bt02_shape",
.hit = "isk_bt02_hit",
.preBattle = N(beforeBattle_8021FDF0),
.postBattle = N(afterBattle_8021FE2C),
.foregroundModelList = N(foregroundModelList_8021FE3C),
};

View File

@ -0,0 +1,35 @@
#include "common.h"
#include "battle/battle.h"
#define NAMESPACE b_area_isk_part_2_isk_02b
EvtScript N(beforeBattle_8021FE80) = {
EVT_CALL(SetSpriteShading, -1)
EVT_CALL(SetCamBGColor, 1, 0, 0, 0)
EVT_CALL(EnableModel, 7, 0)
EVT_CALL(EnableModel, 8, 0)
EVT_CALL(EnableModel, 9, 0)
EVT_CALL(EnableModel, 15, 0)
EVT_CALL(EnableModel, 16, 0)
EVT_CALL(EnableModel, 17, 0)
EVT_RETURN
EVT_END
};
EvtScript N(afterBattle_8021FF34) = {
EVT_RETURN
EVT_END
};
s32 N(foregroundModelList_8021FF44)[] = {
0x0000001F, 0x0000001E, 0x00000021, 0x00000000,
};
Stage NAMESPACE = {
.texture = "isk_tex",
.shape = "isk_bt02_shape",
.hit = "isk_bt02_hit",
.preBattle = N(beforeBattle_8021FE80),
.postBattle = N(afterBattle_8021FF34),
.foregroundModelList = N(foregroundModelList_8021FF44),
};

View File

@ -0,0 +1,31 @@
#include "common.h"
#include "battle/battle.h"
#define NAMESPACE b_area_isk_part_2_isk_02c
EvtScript N(beforeBattle_8021FF80) = {
EVT_CALL(SetSpriteShading, -1)
EVT_CALL(SetCamBGColor, 1, 0, 0, 0)
EVT_CALL(EnableModel, 14, 0)
EVT_CALL(EnableModel, 11, 0)
EVT_RETURN
EVT_END
};
EvtScript N(afterBattle_8021FFE4) = {
EVT_RETURN
EVT_END
};
s32 N(foregroundModelList_8021FFF4)[] = {
0x0000001F, 0x0000001E, 0x00000021, 0x00000000,
};
Stage NAMESPACE = {
.texture = "isk_tex",
.shape = "isk_bt02_shape",
.hit = "isk_bt02_hit",
.preBattle = N(beforeBattle_8021FF80),
.postBattle = N(afterBattle_8021FFE4),
.foregroundModelList = N(foregroundModelList_8021FFF4),
};

View File

@ -0,0 +1,25 @@
#include "common.h"
#include "battle/battle.h"
#define NAMESPACE b_area_isk_part_2_isk_03
EvtScript N(beforeBattle_80220030) = {
EVT_CALL(SetSpriteShading, -1)
EVT_CALL(SetCamBGColor, 1, 0, 0, 0)
EVT_RETURN
EVT_END
};
EvtScript N(afterBattle_8022006C) = {
EVT_RETURN
EVT_END
};
Stage NAMESPACE = {
.texture = "isk_tex",
.shape = "isk_bt03_shape",
.hit = "isk_bt03_hit",
.bg = "sbk3_bg",
.preBattle = N(beforeBattle_80220030),
.postBattle = N(afterBattle_8022006C),
};

View File

@ -0,0 +1,24 @@
#include "common.h"
#include "battle/battle.h"
#define NAMESPACE b_area_isk_part_2_isk_03b
EvtScript N(beforeBattle_802200B0) = {
EVT_CALL(SetSpriteShading, -1)
EVT_CALL(SetCamBGColor, 1, 0, 0, 0)
EVT_RETURN
EVT_END
};
EvtScript N(afterBattle_802200EC) = {
EVT_RETURN
EVT_END
};
Stage NAMESPACE = {
.texture = "isk_tex",
.shape = "isk_bt03_shape",
.hit = "isk_bt03_hit",
.preBattle = N(beforeBattle_802200B0),
.postBattle = N(afterBattle_802200EC),
};

View File

@ -0,0 +1,47 @@
#include "common.h"
#include "effects.h"
#include "battle/battle.h"
#define NAMESPACE b_area_isk_part_2_isk_04
BSS EffectInstance* D_80220740;
BSS EffectInstance* D_80220744;
ApiStatus func_80218850_4EFCF0(Evt* script, s32 isInitialCall) {
playFX_20(1, -133.0f, 72.0f, -143.0f, 0.3f, &D_80220740);
playFX_20(1, 129.0f, 72.0f, -143.0f, 0.3f, &D_80220744);
return ApiStatus_DONE2;
}
ApiStatus func_802188E4_4EFD84(Evt* script, s32 isInitialCall) {
remove_effect(D_80220740);
remove_effect(D_80220744);
return ApiStatus_DONE2;
}
EvtScript N(beforeBattle_80220130) = {
EVT_CALL(SetSpriteShading, -1)
EVT_CALL(SetCamBGColor, 1, 0, 0, 0)
EVT_CALL(func_80218850_4EFCF0)
EVT_RETURN
EVT_END
};
EvtScript N(afterBattle_80220178) = {
EVT_CALL(func_802188E4_4EFD84)
EVT_RETURN
EVT_END
};
s32 N(foregroundModelList_80220194)[] = {
0x00000033, 0x00000034, 0x00000000,
};
Stage NAMESPACE = {
.texture = "isk_tex",
.shape = "isk_bt04_shape",
.hit = "isk_bt04_hit",
.preBattle = N(beforeBattle_80220130),
.postBattle = N(afterBattle_80220178),
.foregroundModelList = N(foregroundModelList_80220194),
};

View File

@ -0,0 +1,42 @@
#include "common.h"
#include "effects.h"
#include "battle/battle.h"
#define NAMESPACE b_area_isk_part_2_isk_05
BSS EffectInstance* D_80220750;
BSS EffectInstance* D_80220754;
ApiStatus func_80218920_4EFDC0(Evt* script, s32 isInitialCall) {
playFX_20(1, -90.0f, 45.0f, -146.0f, 0.25f, &D_80220750);
playFX_20(1, 80.0f, 45.0f, -146.0f, 0.25f, &D_80220754);
return ApiStatus_DONE2;
}
ApiStatus func_802189B0_4EFE50(Evt* script, s32 isInitialCall) {
remove_effect(D_80220750);
remove_effect(D_80220754);
return ApiStatus_DONE2;
}
EvtScript N(beforeBattle_802201D0) = {
EVT_CALL(SetSpriteShading, -1)
EVT_CALL(SetCamBGColor, 1, 0, 0, 0)
EVT_CALL(func_80218920_4EFDC0)
EVT_RETURN
EVT_END
};
EvtScript N(afterBattle_80220218) = {
EVT_CALL(func_802189B0_4EFE50)
EVT_RETURN
EVT_END
};
Stage NAMESPACE = {
.texture = "isk_tex",
.shape = "isk_bt05_shape",
.hit = "isk_bt05_hit",
.preBattle = N(beforeBattle_802201D0),
.postBattle = N(afterBattle_80220218),
};

View File

@ -0,0 +1,39 @@
#include "common.h"
#include "effects.h"
#include "battle/battle.h"
#define NAMESPACE b_area_isk_part_2_isk_06
BSS EffectInstance* D_80220760;
ApiStatus func_802189F0_4EFE90(Evt* script, s32 isInitialCall) {
playFX_20(1, -110.0f, 80.0f, -146.0f, 0.3f, &D_80220760);
return ApiStatus_DONE2;
}
ApiStatus func_80218A38_4EFED8(Evt* script, s32 isInitialCall) {
remove_effect(D_80220760);
return ApiStatus_DONE2;
}
EvtScript N(beforeBattle_80220260) = {
EVT_CALL(SetSpriteShading, -1)
EVT_CALL(SetCamBGColor, 1, 0, 0, 0)
EVT_CALL(func_802189F0_4EFE90)
EVT_RETURN
EVT_END
};
EvtScript N(afterBattle_802202A8) = {
EVT_CALL(func_80218A38_4EFED8)
EVT_RETURN
EVT_END
};
Stage NAMESPACE = {
.texture = "isk_tex",
.shape = "isk_bt06_shape",
.hit = "isk_bt06_hit",
.preBattle = N(beforeBattle_80220260),
.postBattle = N(afterBattle_802202A8),
};

View File

@ -0,0 +1,40 @@
#include "common.h"
#include "effects.h"
#include "battle/battle.h"
#define NAMESPACE b_area_isk_part_2_isk_06b
BSS EffectInstance* D_80220770;
ApiStatus func_80218A60_4EFF00(Evt* script, s32 isInitialCall) {
playFX_20(1, -110.0f, 80.0f, -146.0f, 0.3f, &D_80220770);
return ApiStatus_DONE2;
}
ApiStatus func_80218AA8_4EFF48(Evt* script, s32 isInitialCall) {
remove_effect(D_80220770);
return ApiStatus_DONE2;
}
EvtScript N(beforeBattle_802202F0) = {
EVT_CALL(SetSpriteShading, -1)
EVT_CALL(SetCamBGColor, 1, 0, 0, 0)
EVT_CALL(func_80218A60_4EFF00)
EVT_CALL(EnableModel, 23, 0)
EVT_RETURN
EVT_END
};
EvtScript N(afterBattle_8022034C) = {
EVT_CALL(func_80218AA8_4EFF48)
EVT_RETURN
EVT_END
};
Stage NAMESPACE = {
.texture = "isk_tex",
.shape = "isk_bt06_shape",
.hit = "isk_bt06_hit",
.preBattle = N(beforeBattle_802202F0),
.postBattle = N(afterBattle_8022034C),
};

View File

@ -0,0 +1,39 @@
#include "common.h"
#include "effects.h"
#include "battle/battle.h"
#define NAMESPACE b_area_isk_part_2_isk_07
BSS EffectInstance* D_80220780;
ApiStatus func_80218AD0_4EFF70(Evt* script, s32 isInitialCall) {
playFX_20(1, 110.0f, 80.0f, -146.0f, 0.3f, &D_80220780);
return ApiStatus_DONE2;
}
ApiStatus func_80218B18_4EFFB8(Evt* script, s32 isInitialCall) {
remove_effect(D_80220780);
return ApiStatus_DONE2;
}
EvtScript N(beforeBattle_80220390) = {
EVT_CALL(SetSpriteShading, -1)
EVT_CALL(SetCamBGColor, 1, 0, 0, 0)
EVT_CALL(func_80218AD0_4EFF70)
EVT_RETURN
EVT_END
};
EvtScript N(afterBattle_802203D8) = {
EVT_CALL(func_80218B18_4EFFB8)
EVT_RETURN
EVT_END
};
Stage NAMESPACE = {
.texture = "isk_tex",
.shape = "isk_bt07_shape",
.hit = "isk_bt07_hit",
.preBattle = N(beforeBattle_80220390),
.postBattle = N(afterBattle_802203D8),
};

View File

@ -558,7 +558,7 @@ EvtScript N(8021CCE8) = {
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 24)
EVT_ADD(LW(1), 24)
EVT_CALL(PlayEffect, EFFECT_ID_6D, 0, LW(0), LW(1), LW(2), EVT_FLOAT(0.6005859375), 0, 0, 0, 0, 0, 0, 0, 0)
EVT_CALL(PlayEffect, EFFECT_ID_6D, 0, LW(0), LW(1), LW(2), EVT_FLOAT(0.6), 0, 0, 0, 0, 0, 0, 0, 0)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x20F3)
EVT_WAIT_FRAMES(10)
EVT_CALL(SetPartSounds, ACTOR_SELF, 3, 1, 0, 0)
@ -582,11 +582,11 @@ EvtScript N(8021CCE8) = {
EVT_CALL(SetPartFlagBits, ACTOR_SELF, 4, ACTOR_PART_FLAG_INVISIBLE, 0)
EVT_CALL(SetPartFlagBits, ACTOR_SELF, 5, ACTOR_PART_FLAG_INVISIBLE, 0)
EVT_CALL(SetPartMoveSpeed, ACTOR_SELF, 3, EVT_FLOAT(6.0))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 3, EVT_FLOAT(0.1005859375))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 3, EVT_FLOAT(0.1))
EVT_CALL(SetPartMoveSpeed, ACTOR_SELF, 4, EVT_FLOAT(6.0))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 4, EVT_FLOAT(0.1005859375))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 4, EVT_FLOAT(0.1))
EVT_CALL(SetPartMoveSpeed, ACTOR_SELF, 5, EVT_FLOAT(6.0))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 5, EVT_FLOAT(0.1005859375))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 5, EVT_FLOAT(0.1))
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x20F4)
EVT_CALL(EnemyTestTarget, ACTOR_SELF, LW(0), DAMAGE_TYPE_NO_CONTACT, 0, 2, BS_FLAGS1_10)
EVT_SWITCH(LW(0))
@ -745,14 +745,14 @@ EvtScript N(8021DCB8) = {
EVT_END_CHILD_THREAD
EVT_CHILD_THREAD
EVT_CALL(SetActorSpeed, ACTOR_PLAYER, EVT_FLOAT(5.0))
EVT_CALL(SetActorJumpGravity, ACTOR_PLAYER, EVT_FLOAT(0.1005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_PLAYER, EVT_FLOAT(0.1))
EVT_CALL(GetActorPos, ACTOR_PLAYER, LW(0), LW(1), LW(2))
EVT_ADD(LW(1), 180)
EVT_CALL(SetGoalPos, ACTOR_PLAYER, LW(0), LW(1), LW(2))
EVT_CALL(FlyToGoal, ACTOR_PLAYER, 99, 0, 0)
EVT_END_CHILD_THREAD
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(5.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.1005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.1))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(1), 180)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
@ -801,7 +801,7 @@ EvtScript N(8021DF2C) = {
EVT_CALL(BattleCamTargetActor, ACTOR_SELF)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x20F1)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(5.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
@ -830,7 +830,7 @@ EvtScript N(8021DF2C) = {
EVT_CALL(BattleCamTargetActor, ACTOR_SELF)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x20F1)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(5.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
@ -888,7 +888,7 @@ EvtScript N(8021DF2C) = {
EVT_END_THREAD
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x20F1)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(5.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
@ -938,7 +938,7 @@ EvtScript N(8021DF2C) = {
EVT_KILL_THREAD(LW(10))
EVT_CALL(SetJumpAnimations, ACTOR_PLAYER, 0, ANIM_MIDAIR_STILL, ANIM_MIDAIR_STILL, ANIM_10009)
EVT_CALL(SetActorSpeed, ACTOR_PLAYER, EVT_FLOAT(5.0))
EVT_CALL(SetActorJumpGravity, ACTOR_PLAYER, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_PLAYER, EVT_FLOAT(1.8))
EVT_CALL(GetActorPos, ACTOR_PLAYER, LW(0), LW(1), LW(2))
EVT_SET(LW(1), 0)
EVT_CALL(SetGoalPos, ACTOR_PLAYER, LW(0), LW(1), LW(2))
@ -963,7 +963,7 @@ EvtScript N(8021DF2C) = {
EVT_WAIT_FRAMES(10)
EVT_CALL(SetJumpAnimations, ACTOR_PLAYER, 0, ANIM_RUN_PANIC, ANIM_RUN_PANIC, ANIM_RUN_PANIC)
EVT_CALL(SetActorSpeed, ACTOR_PLAYER, EVT_FLOAT(5.0))
EVT_CALL(SetActorJumpGravity, ACTOR_PLAYER, EVT_FLOAT(1.2001953125))
EVT_CALL(SetActorJumpGravity, ACTOR_PLAYER, EVT_FLOAT(1.2))
EVT_CALL(GetActorPos, ACTOR_PLAYER, LW(0), LW(1), LW(2))
EVT_SET(LW(1), 0)
EVT_CALL(SetGoalPos, ACTOR_PLAYER, LW(0), LW(1), LW(2))
@ -1048,7 +1048,7 @@ EvtScript N(8021F030) = {
EVT_WAIT_FRAMES(10)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x20F1)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(5.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
@ -1074,7 +1074,7 @@ EvtScript N(8021F030) = {
EVT_WAIT_FRAMES(10)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x20F1)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(5.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)

View File

@ -146,7 +146,7 @@ EvtScript N(80218944) = {
EVT_END_LOOP
EVT_END_THREAD
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.30078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.3))
EVT_SUB(LW(1), 6)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 20, FALSE, TRUE, FALSE)
@ -271,7 +271,7 @@ EvtScript N(handleEvent_80218C3C) = {
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_cleft_default_run)
EVT_EXEC_WAIT(DoReturnHome)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CASE_EQ(EVENT_SHOCK_DEATH)
EVT_SET_CONST(LW(0), 1)
@ -401,7 +401,7 @@ EvtScript N(802197AC) = {
EVT_END_THREAD
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(1), 6)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.30078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.3))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_CALL(N(StartRumbleWithParams), 200, 10)
@ -517,7 +517,7 @@ EvtScript N(80219BA0) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 15)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(2.400390625))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(2.4))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 6, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_cleft_default_idle)

View File

@ -149,7 +149,7 @@ ActorPartBlueprint N(partsTable_8021A60C)[] = {
EvtScript N(init_8021A630) = {
EVT_CALL(GetActorVar, ACTOR_SELF, 0, LW(0))
EVT_IF_EQ(LW(0), 1)
EVT_CALL(SetPartScale, ACTOR_SELF, 1, EVT_FLOAT(0.400390625), EVT_FLOAT(0.400390625), EVT_FLOAT(0.400390625))
EVT_CALL(SetPartScale, ACTOR_SELF, 1, EVT_FLOAT(0.4), EVT_FLOAT(0.4), EVT_FLOAT(0.4))
EVT_END_IF
EVT_RETURN
EVT_END
@ -368,7 +368,7 @@ EvtScript N(takeTurn_8021AFAC) = {
EVT_CALL(SetPartFlagBits, ACTOR_SELF, 3, ACTOR_PART_FLAG_INVISIBLE, 0)
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_FLAG(LW(0), STATUS_FLAG_SHRINK)
EVT_CALL(SetPartScale, ACTOR_SELF, 3, EVT_FLOAT(0.400390625), EVT_FLOAT(0.400390625), EVT_FLOAT(0.400390625))
EVT_CALL(SetPartScale, ACTOR_SELF, 3, EVT_FLOAT(0.4), EVT_FLOAT(0.4), EVT_FLOAT(0.4))
EVT_ELSE
EVT_CALL(SetPartScale, ACTOR_SELF, 3, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
EVT_END_IF
@ -385,7 +385,7 @@ EvtScript N(takeTurn_8021AFAC) = {
EVT_SUB(LW(0), 100)
EVT_SET(LW(1), -5)
EVT_CALL(SetPartMoveSpeed, ACTOR_SELF, 3, EVT_FLOAT(12.0))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 3, EVT_FLOAT(0.1005859375))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 3, EVT_FLOAT(0.1))
EVT_CALL(SetAnimation, ACTOR_SELF, 3, NPC_ANIM_monty_mole_Palette_00_Anim_F)
EVT_CALL(FlyPartTo, ACTOR_SELF, 3, LW(0), LW(1), LW(2), 0, 30, 0)
EVT_CALL(SetPartFlagBits, ACTOR_SELF, 3, ACTOR_PART_FLAG_INVISIBLE, 1)
@ -402,7 +402,7 @@ EvtScript N(takeTurn_8021AFAC) = {
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetPartMoveSpeed, ACTOR_SELF, 3, EVT_FLOAT(12.0))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 3, EVT_FLOAT(0.1005859375))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 3, EVT_FLOAT(0.1))
EVT_CALL(SetAnimation, ACTOR_SELF, 3, NPC_ANIM_monty_mole_Palette_00_Anim_F)
EVT_CALL(FlyPartTo, ACTOR_SELF, 3, LW(0), LW(1), LW(2), 0, 20, 0)
EVT_WAIT_FRAMES(2)
@ -414,7 +414,7 @@ EvtScript N(takeTurn_8021AFAC) = {
EVT_SUB(LW(0), 55)
EVT_SET(LW(1), 0)
EVT_CALL(SetPartMoveSpeed, ACTOR_SELF, 3, EVT_FLOAT(6.0))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 3, EVT_FLOAT(0.1005859375))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 3, EVT_FLOAT(0.1))
EVT_CALL(FlyPartTo, ACTOR_SELF, 3, LW(0), LW(1), LW(2), 0, 25, 0)
EVT_CALL(SetPartMoveSpeed, ACTOR_SELF, 3, EVT_FLOAT(4.0))
EVT_SUB(LW(0), 20)

View File

@ -219,7 +219,7 @@ EvtScript N(handleEvent_80219D74) = {
EVT_CALL(SetAnimationRate, ACTOR_SELF, 1, EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(5)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_bros_Palette_01_Anim_2)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CASE_EQ(38)
EVT_SET_CONST(LW(0), 0x00000001)
@ -314,7 +314,7 @@ EvtScript N(takeTurn_8021A5A0) = {
EVT_SET(LW(1), 10)
EVT_ADD(LW(2), 3)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2001953125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2))
EVT_THREAD
EVT_CALL(GetActorPos, ACTOR_SELF, LW(1), LW(2), LW(0))
EVT_SET(LW(0), 0)
@ -334,10 +334,10 @@ EvtScript N(takeTurn_8021A5A0) = {
EVT_END_THREAD
EVT_CALL(JumpToGoal, ACTOR_SELF, 16, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_bros_Palette_01_Anim_D)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1005859375), EVT_FLOAT(0.80078125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, 5, 0)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.30078125), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.3), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, -2, 0)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
@ -381,7 +381,7 @@ EvtScript N(takeTurn_8021A5A0) = {
EVT_CALL(SetActorYaw, ACTOR_SELF, 0)
EVT_WAIT_FRAMES(5)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_bros_Palette_01_Anim_2)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CALL(RemoveActorDecoration, ACTOR_SELF, 1, 0)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
@ -390,7 +390,7 @@ EvtScript N(takeTurn_8021A5A0) = {
EVT_END_CASE_GROUP
EVT_CASE_DEFAULT
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2001953125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2))
EVT_THREAD
EVT_CALL(GetActorPos, ACTOR_SELF, LW(1), LW(2), LW(0))
EVT_SET(LW(0), 0)
@ -410,9 +410,9 @@ EvtScript N(takeTurn_8021A5A0) = {
EVT_END_THREAD
EVT_CALL(JumpToGoal, ACTOR_SELF, 16, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_bros_Palette_01_Anim_8)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1005859375), EVT_FLOAT(0.80078125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.30078125), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.3), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_END_SWITCH
EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LW(0), 0, 0, 0, 1, 32)
@ -420,7 +420,7 @@ EvtScript N(takeTurn_8021A5A0) = {
EVT_CASE_OR_EQ(0)
EVT_CASE_OR_EQ(2)
EVT_CALL(UseBattleCamPreset, 2)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1005859375), EVT_FLOAT(0.80078125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
@ -430,7 +430,7 @@ EvtScript N(takeTurn_8021A5A0) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 40)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_ADD(LW(0), 30)

View File

@ -217,7 +217,7 @@ EvtScript N(handleEvent_8021D8C4) = {
EVT_CALL(SetAnimationRate, ACTOR_SELF, 1, EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(5)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_bros_Palette_01_Anim_2)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CASE_EQ(38)
EVT_SET_CONST(LW(0), 0x00000001)
@ -312,7 +312,7 @@ EvtScript N(takeTurn_8021E0F0) = {
EVT_SET(LW(1), 10)
EVT_ADD(LW(2), 3)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2001953125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2))
EVT_THREAD
EVT_CALL(GetActorPos, ACTOR_SELF, LW(1), LW(2), LW(0))
EVT_SET(LW(0), 0)
@ -332,10 +332,10 @@ EvtScript N(takeTurn_8021E0F0) = {
EVT_END_THREAD
EVT_CALL(JumpToGoal, ACTOR_SELF, 16, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_bros_Palette_01_Anim_D)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1005859375), EVT_FLOAT(0.80078125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, 5, 0)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.30078125), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.3), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, -2, 0)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
@ -379,7 +379,7 @@ EvtScript N(takeTurn_8021E0F0) = {
EVT_CALL(SetActorYaw, ACTOR_SELF, 0)
EVT_WAIT_FRAMES(5)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_bros_Palette_01_Anim_2)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CALL(RemoveActorDecoration, ACTOR_SELF, 1, 0)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
@ -388,7 +388,7 @@ EvtScript N(takeTurn_8021E0F0) = {
EVT_END_CASE_GROUP
EVT_CASE_DEFAULT
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2001953125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2))
EVT_THREAD
EVT_CALL(GetActorPos, ACTOR_SELF, LW(1), LW(2), LW(0))
EVT_SET(LW(0), 0)
@ -408,9 +408,9 @@ EvtScript N(takeTurn_8021E0F0) = {
EVT_END_THREAD
EVT_CALL(JumpToGoal, ACTOR_SELF, 16, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_bros_Palette_01_Anim_8)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1005859375), EVT_FLOAT(0.80078125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.30078125), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.3), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_END_SWITCH
EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LW(0), 0, 0, 0, 1, 32)
@ -418,7 +418,7 @@ EvtScript N(takeTurn_8021E0F0) = {
EVT_CASE_OR_EQ(0)
EVT_CASE_OR_EQ(2)
EVT_CALL(UseBattleCamPreset, 2)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1005859375), EVT_FLOAT(0.80078125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
@ -428,7 +428,7 @@ EvtScript N(takeTurn_8021E0F0) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 40)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_ADD(LW(0), 30)

View File

@ -216,7 +216,7 @@ EvtScript N(80220DB0) = {
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SET(LW(1), 0)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.400390625))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.4))
EVT_CALL(AddGoalPos, ACTOR_SELF, 30, 0, 0)
EVT_CALL(JumpToGoal, ACTOR_SELF, 15, FALSE, TRUE, FALSE)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x20B4)
@ -465,7 +465,7 @@ EvtScript N(80221CD4) = {
EVT_WAIT_FRAMES(15)
EVT_CALL(func_8024ECF8, 0, 1, 0)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_king_Palette_00_Anim_9)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 20, FALSE, TRUE, FALSE)
@ -707,12 +707,12 @@ EvtScript N(80222D9C) = {
EVT_IF_EQ(LW(0), 0)
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_NOT_FLAG(LW(0), 0x80000)
EVT_CALL(ShakeCam, 1, 0, 2, EVT_FLOAT(0.2001953125))
EVT_CALL(ShakeCam, 1, 0, 2, EVT_FLOAT(0.2))
EVT_END_IF
EVT_ELSE
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_NOT_FLAG(LW(0), 0x80000)
EVT_CALL(ShakeCam, 1, 0, 2, EVT_FLOAT(0.7001953125))
EVT_CALL(ShakeCam, 1, 0, 2, EVT_FLOAT(0.7))
EVT_END_IF
EVT_END_IF
EVT_END_IF

View File

@ -235,7 +235,7 @@ EvtScript N(shakeTree) = {
EVT_BUF_READ1(LW(2))
EVT_LOOP(LW(2))
EVT_BUF_READ1(LW(3))
EVT_CALL(N(TransformFoliage), LW(3), EVT_FLOAT(0.1005859375), EVT_FLOAT(0.2001953125), LW(15), 0)
EVT_CALL(N(TransformFoliage), LW(3), EVT_FLOAT(0.1), EVT_FLOAT(0.2), LW(15), 0)
EVT_IF_EQ(LF(0), 0)
EVT_SET(LF(0), 1)
EVT_CALL(PlaySoundAtModel, LW(3), 358, 0)
@ -246,7 +246,7 @@ EvtScript N(shakeTree) = {
EVT_BUF_READ1(LW(2))
EVT_LOOP(LW(2))
EVT_BUF_READ1(LW(3))
EVT_CALL(N(TransformFoliage), LW(3), EVT_FLOAT(0.1005859375), EVT_FLOAT(-0.19921875), LW(15), 0)
EVT_CALL(N(TransformFoliage), LW(3), EVT_FLOAT(0.1), EVT_FLOAT(-0.2), LW(15), 0)
EVT_END_LOOP
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
@ -267,7 +267,7 @@ EvtScript N(shakeTree) = {
EVT_BUF_READ1(LW(3))
EVT_LOOP(LW(3))
EVT_BUF_READ1(LW(4))
EVT_CALL(N(TransformFoliage), LW(4), EVT_FLOAT(0.1005859375), EVT_FLOAT(0.2001953125), LW(15), 0)
EVT_CALL(N(TransformFoliage), LW(4), EVT_FLOAT(0.1), EVT_FLOAT(0.2), LW(15), 0)
EVT_IF_EQ(LF(0), 0)
EVT_SET(LF(0), 1)
EVT_CALL(PlaySoundAtModel, LW(4), 357, 0)
@ -278,7 +278,7 @@ EvtScript N(shakeTree) = {
EVT_BUF_READ1(LW(3))
EVT_LOOP(LW(3))
EVT_BUF_READ1(LW(4))
EVT_CALL(N(TransformFoliage), LW(4), EVT_FLOAT(0.1005859375), EVT_FLOAT(-0.19921875), LW(15), 0)
EVT_CALL(N(TransformFoliage), LW(4), EVT_FLOAT(0.1), EVT_FLOAT(-0.2), LW(15), 0)
EVT_END_LOOP
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
@ -352,7 +352,7 @@ EvtScript N(80223DBC) = {
EVT_CALL(SetGoalPos, ACTOR_SELF, 10, 0, 10)
EVT_CALL(SetPartFlagBits, -127, 2, 1, 0)
EVT_CALL(PlaySoundAtPart, -127, 2, 769)
EVT_CALL(SetPartJumpGravity, -127, 2, EVT_FLOAT(0.80078125))
EVT_CALL(SetPartJumpGravity, -127, 2, EVT_FLOAT(0.8))
EVT_CALL(SetPartMoveSpeed, -127, 2, EVT_FLOAT(4.0))
EVT_CALL(FallPartTo, -127, 2, 10, 20, 10, 20)
EVT_CALL(JumpPartTo, -127, 2, 30, 20, 10, 10, 1)
@ -366,7 +366,7 @@ EvtScript N(80223DBC) = {
EVT_RETURN
EVT_END_IF
EVT_CALL(PlaySoundAtPart, -127, 2, 769)
EVT_CALL(SetPartJumpGravity, -127, 2, EVT_FLOAT(0.80078125))
EVT_CALL(SetPartJumpGravity, -127, 2, EVT_FLOAT(0.8))
EVT_CALL(SetPartMoveSpeed, -127, 2, EVT_FLOAT(4.0))
EVT_CALL(GetStatusFlags, ACTOR_ENEMY0, LW(0))
EVT_IF_NOT_FLAG(LW(0), 0x80000)
@ -384,7 +384,7 @@ EvtScript N(80223DBC) = {
EVT_CALL(GetPartOffset, -127, 2, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 65)
EVT_SET(LW(1), 20)
EVT_CALL(SetPartJumpGravity, -127, 2, EVT_FLOAT(0.7001953125))
EVT_CALL(SetPartJumpGravity, -127, 2, EVT_FLOAT(0.7))
EVT_CALL(JumpPartTo, -127, 2, LW(0), LW(1), LW(2), 20, 1)
EVT_ADD(LW(0), 12)
EVT_CALL(JumpPartTo, -127, 2, LW(0), LW(1), LW(2), 8, 1)
@ -403,7 +403,7 @@ EvtScript N(80223DBC) = {
EVT_ELSE
EVT_ADD(LW(1), 20)
EVT_END_IF
EVT_CALL(SetPartJumpGravity, -127, 2, EVT_FLOAT(0.7001953125))
EVT_CALL(SetPartJumpGravity, -127, 2, EVT_FLOAT(0.7))
EVT_CALL(JumpPartTo, -127, 2, LW(0), LW(1), LW(2), 20, 1)
EVT_CALL(SetOwnerTarget, 513, 1)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
@ -413,7 +413,7 @@ EvtScript N(80223DBC) = {
EVT_CALL(GetPartOffset, -127, 2, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 35)
EVT_SET(LW(1), 20)
EVT_CALL(SetPartJumpGravity, -127, 2, EVT_FLOAT(0.7001953125))
EVT_CALL(SetPartJumpGravity, -127, 2, EVT_FLOAT(0.7))
EVT_CALL(JumpPartTo, -127, 2, LW(0), LW(1), LW(2), 20, 1)
EVT_ADD(LW(0), 12)
EVT_CALL(JumpPartTo, -127, 2, LW(0), LW(1), LW(2), 8, 1)
@ -432,7 +432,7 @@ EvtScript N(80223DBC) = {
EVT_ELSE
EVT_ADD(LW(1), 20)
EVT_END_IF
EVT_CALL(SetPartJumpGravity, -127, 2, EVT_FLOAT(0.7001953125))
EVT_CALL(SetPartJumpGravity, -127, 2, EVT_FLOAT(0.7))
EVT_CALL(JumpPartTo, -127, 2, LW(0), LW(1), LW(2), 20, 1)
EVT_CALL(SetOwnerTarget, 514, 1)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
@ -440,7 +440,7 @@ EvtScript N(80223DBC) = {
EVT_CALL(GetPartOffset, -127, 2, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 20)
EVT_SET(LW(1), 20)
EVT_CALL(SetPartJumpGravity, -127, 2, EVT_FLOAT(0.7001953125))
EVT_CALL(SetPartJumpGravity, -127, 2, EVT_FLOAT(0.7))
EVT_CALL(JumpPartTo, -127, 2, LW(0), LW(1), LW(2), 20, 1)
EVT_ADD(LW(0), 12)
EVT_CALL(JumpPartTo, -127, 2, LW(0), LW(1), LW(2), 8, 1)

View File

@ -219,7 +219,7 @@ EvtScript N(handleEvent_8021BB84) = {
EVT_CALL(SetAnimationRate, ACTOR_SELF, 1, EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(5)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_bros_Palette_00_Anim_2)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CASE_EQ(38)
EVT_SET_CONST(LW(0), 0x00000001)
@ -314,7 +314,7 @@ EvtScript N(takeTurn_8021C3B0) = {
EVT_SET(LW(1), 10)
EVT_ADD(LW(2), 3)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2001953125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2))
EVT_THREAD
EVT_CALL(GetActorPos, ACTOR_SELF, LW(1), LW(2), LW(0))
EVT_SET(LW(0), 0)
@ -334,10 +334,10 @@ EvtScript N(takeTurn_8021C3B0) = {
EVT_END_THREAD
EVT_CALL(JumpToGoal, ACTOR_SELF, 16, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_bros_Palette_00_Anim_D)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1005859375), EVT_FLOAT(0.80078125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, 5, 0)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.30078125), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.3), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, -2, 0)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
@ -381,7 +381,7 @@ EvtScript N(takeTurn_8021C3B0) = {
EVT_CALL(SetActorYaw, ACTOR_SELF, 0)
EVT_WAIT_FRAMES(5)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_bros_Palette_00_Anim_2)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CALL(RemoveActorDecoration, ACTOR_SELF, 1, 0)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
@ -390,7 +390,7 @@ EvtScript N(takeTurn_8021C3B0) = {
EVT_END_CASE_GROUP
EVT_CASE_DEFAULT
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2001953125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2))
EVT_THREAD
EVT_CALL(GetActorPos, ACTOR_SELF, LW(1), LW(2), LW(0))
EVT_SET(LW(0), 0)
@ -410,9 +410,9 @@ EvtScript N(takeTurn_8021C3B0) = {
EVT_END_THREAD
EVT_CALL(JumpToGoal, ACTOR_SELF, 16, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_bros_Palette_00_Anim_8)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1005859375), EVT_FLOAT(0.80078125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.30078125), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.3), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_END_SWITCH
EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LW(0), 0, 0, 0, 1, 32)
@ -420,7 +420,7 @@ EvtScript N(takeTurn_8021C3B0) = {
EVT_CASE_OR_EQ(0)
EVT_CASE_OR_EQ(2)
EVT_CALL(UseBattleCamPreset, 2)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1005859375), EVT_FLOAT(0.80078125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
@ -430,7 +430,7 @@ EvtScript N(takeTurn_8021C3B0) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 40)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_ADD(LW(0), 30)

View File

@ -217,7 +217,7 @@ EvtScript N(handleEvent_8021F2C4) = {
EVT_CALL(SetAnimationRate, ACTOR_SELF, 1, EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(5)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_bros_Palette_00_Anim_2)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CASE_EQ(38)
EVT_SET_CONST(LW(0), 0x00000001)
@ -312,7 +312,7 @@ EvtScript N(takeTurn_8021FAF0) = {
EVT_SET(LW(1), 10)
EVT_ADD(LW(2), 3)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2001953125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2))
EVT_THREAD
EVT_CALL(GetActorPos, ACTOR_SELF, LW(1), LW(2), LW(0))
EVT_SET(LW(0), 0)
@ -332,10 +332,10 @@ EvtScript N(takeTurn_8021FAF0) = {
EVT_END_THREAD
EVT_CALL(JumpToGoal, ACTOR_SELF, 16, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_bros_Palette_00_Anim_D)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1005859375), EVT_FLOAT(0.80078125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, 5, 0)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.30078125), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.3), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, -2, 0)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
@ -379,7 +379,7 @@ EvtScript N(takeTurn_8021FAF0) = {
EVT_CALL(SetActorYaw, ACTOR_SELF, 0)
EVT_WAIT_FRAMES(5)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_bros_Palette_00_Anim_2)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CALL(RemoveActorDecoration, ACTOR_SELF, 1, 0)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
@ -388,7 +388,7 @@ EvtScript N(takeTurn_8021FAF0) = {
EVT_END_CASE_GROUP
EVT_CASE_DEFAULT
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2001953125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2))
EVT_THREAD
EVT_CALL(GetActorPos, ACTOR_SELF, LW(1), LW(2), LW(0))
EVT_SET(LW(0), 0)
@ -408,9 +408,9 @@ EvtScript N(takeTurn_8021FAF0) = {
EVT_END_THREAD
EVT_CALL(JumpToGoal, ACTOR_SELF, 16, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_bros_Palette_00_Anim_8)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1005859375), EVT_FLOAT(0.80078125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.30078125), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.3), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_END_SWITCH
EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LW(0), 0, 0, 0, 1, 32)
@ -418,7 +418,7 @@ EvtScript N(takeTurn_8021FAF0) = {
EVT_CASE_OR_EQ(0)
EVT_CASE_OR_EQ(2)
EVT_CALL(UseBattleCamPreset, 2)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1005859375), EVT_FLOAT(0.80078125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
@ -428,7 +428,7 @@ EvtScript N(takeTurn_8021FAF0) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 40)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_ADD(LW(0), 30)

View File

@ -424,7 +424,7 @@ EvtScript N(takeTurn_80225314) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 20)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_jr_troopa_default_idle)
@ -463,7 +463,7 @@ EvtScript N(takeTurn_80225314) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 40)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_ADD(LW(0), 30)

View File

@ -617,7 +617,7 @@ EvtScript N(8022DD48) = {
EVT_CALL(SetPartFlagBits, -127, 2, 8388608, 1)
EVT_WAIT_FRAMES(10)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(2.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2001953125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2))
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(AddGoalPos, ACTOR_SELF, 20, 60, 0)
EVT_CALL(FlyToGoal, ACTOR_SELF, 30, 0, 0)
@ -646,7 +646,7 @@ EvtScript N(8022DF54) = {
EVT_CALL(SetPartFlagBits, -127, 3, 131073, 0)
EVT_CALL(SetPartFlagBits, -127, 3, 8388608, 1)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(2.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 20)
EVT_SET(LW(1), 0)
@ -729,7 +729,7 @@ EvtScript N(8022E198) = {
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_jr_troopa_default_jump)
EVT_WAIT_FRAMES(2)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_jr_troopa_default_jump_still)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 10)
@ -770,7 +770,7 @@ EvtScript N(8022E198) = {
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_jr_troopa_default_jump)
EVT_WAIT_FRAMES(2)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_jr_troopa_default_jump_still)
EVT_THREAD
EVT_WAIT_FRAMES(8)
@ -784,7 +784,7 @@ EvtScript N(8022E198) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 40)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_ADD(LW(0), 30)
@ -830,7 +830,7 @@ EvtScript N(8022ED10) = {
EVT_CALL(BattleCamTargetActor, ACTOR_SELF)
EVT_CALL(SetActorSounds, -127, 2, 8416, 0)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(5.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetAnimation, ACTOR_SELF, 2, NPC_ANIM_spiked_para_jr_troopa_default_run)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
@ -870,7 +870,7 @@ EvtScript N(8022ED10) = {
EVT_CALL(BattleCamTargetActor, ACTOR_SELF)
EVT_CALL(SetActorSounds, -127, 2, 8416, 0)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(5.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetAnimation, ACTOR_SELF, 2, NPC_ANIM_spiked_para_jr_troopa_default_run)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
@ -1434,9 +1434,9 @@ EvtScript N(802318F8) = {
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x301)
EVT_CALL(func_8027D32C, -127)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), 0, LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2001953125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2))
EVT_CALL(FallToGoal, -127, 10)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(JumpToGoal, ACTOR_SELF, 8, FALSE, TRUE, FALSE)
EVT_CALL(HPBarToCurrent, ACTOR_SELF)
EVT_CALL(func_8027D2D8, -127)

View File

@ -315,7 +315,7 @@ EvtScript N(takeTurn_802234A4) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 40)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_ADD(LW(0), 30)
@ -358,7 +358,7 @@ EvtScript N(takeTurn_802234A4) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 40)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_ADD(LW(0), 30)

View File

@ -305,7 +305,7 @@ EvtScript N(handleEvent_8022ADD8) = {
EVT_SET_CONST(LW(0), 0x00000001)
EVT_SET_CONST(LW(1), NPC_ANIM_mage_jr_troopa_default_run)
EVT_EXEC_WAIT(DoReturnHome)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CASE_EQ(38)
EVT_SET_CONST(LW(0), 0x00000001)
@ -383,7 +383,7 @@ EvtScript N(takeTurn_8022B4F0) = {
EVT_ELSE
EVT_SET(LW(3), 0)
EVT_SET(LW(4), 14)
EVT_SETF(LW(5), EVT_FLOAT(0.400390625))
EVT_SETF(LW(5), EVT_FLOAT(0.4))
EVT_END_IF
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), LW(3))
@ -408,7 +408,7 @@ EvtScript N(takeTurn_8022B4F0) = {
EVT_ELSE
EVT_SET(LW(6), -3)
EVT_SET(LW(7), 8)
EVT_SETF(LW(8), EVT_FLOAT(0.400390625))
EVT_SETF(LW(8), EVT_FLOAT(0.4))
EVT_END_IF
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), LW(6))
@ -434,7 +434,7 @@ EvtScript N(takeTurn_8022B4F0) = {
EVT_ELSE
EVT_SET(LW(6), -3)
EVT_SET(LW(7), 8)
EVT_SETF(LW(8), EVT_FLOAT(0.400390625))
EVT_SETF(LW(8), EVT_FLOAT(0.4))
EVT_END_IF
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), LW(6))

View File

@ -364,7 +364,7 @@ EvtScript N(80226D4C) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 40)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_ADD(LW(0), 30)
@ -411,7 +411,7 @@ EvtScript N(takeTurn_80226F58) = {
EVT_CALL(BattleCamTargetActor, ACTOR_SELF)
EVT_CALL(SetActorSounds, -127, 2, 8416, 0)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(5.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_para_jr_troopa_default_run)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
@ -450,7 +450,7 @@ EvtScript N(takeTurn_80226F58) = {
EVT_CALL(BattleCamTargetActor, ACTOR_SELF)
EVT_CALL(SetActorSounds, -127, 2, 8416, 0)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(5.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_para_jr_troopa_default_run)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
@ -541,9 +541,9 @@ EvtScript N(802279B0) = {
EVT_CALL(SetActorSounds, -127, 2, 0, 0)
EVT_CALL(func_8027D32C, -127)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), 0, LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2001953125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2))
EVT_CALL(FallToGoal, -127, 10)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(JumpToGoal, ACTOR_SELF, 8, FALSE, TRUE, FALSE)
EVT_CALL(HPBarToCurrent, ACTOR_SELF)
EVT_CALL(func_8027D2D8, -127)
@ -585,12 +585,12 @@ EvtScript N(80227D38) = {
EVT_CALL(ResetAllActorSounds, ACTOR_SELF)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_para_jr_troopa_default_run)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(6.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2001953125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2))
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(3), LW(4), LW(5))
EVT_SUB(LW(4), LW(1))
EVT_MULF(LW(4), EVT_FLOAT(0.30078125))
EVT_MULF(LW(4), EVT_FLOAT(0.3))
EVT_CALL(FlyToGoal, ACTOR_SELF, 0, LW(4), 0)
EVT_RETURN
EVT_END

View File

@ -208,7 +208,7 @@ EvtScript N(idle_8021C4D4) = {
EVT_END_LOOP
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 5)
EVT_CALL(SetActorIdleSpeed, ACTOR_SELF, EVT_FLOAT(0.6005859375))
EVT_CALL(SetActorIdleSpeed, ACTOR_SELF, EVT_FLOAT(0.6))
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 2, EVT_ADDR(N(idleAnimations_8021C424)))
EVT_CALL(SetIdleGoal, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(IdleFlyToGoal, ACTOR_SELF, 0, -5, 0)
@ -223,7 +223,7 @@ EvtScript N(idle_8021C4D4) = {
EVT_END_LOOP
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 5)
EVT_CALL(SetActorIdleSpeed, ACTOR_SELF, EVT_FLOAT(0.6005859375))
EVT_CALL(SetActorIdleSpeed, ACTOR_SELF, EVT_FLOAT(0.6))
EVT_CALL(SetIdleGoal, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(IdleFlyToGoal, ACTOR_SELF, 0, -5, 0)
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 2, EVT_ADDR(N(idleAnimations_8021C3D8)))
@ -391,7 +391,7 @@ EvtScript N(takeTurn_8021CDFC) = {
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x20E0)
EVT_CALL(SetActorSounds, -127, 2, 0, 0)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(5.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetAnimation, ACTOR_SELF, 2, NPC_ANIM_paragoomba_default_attack)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
@ -441,7 +441,7 @@ EvtScript N(takeTurn_8021CDFC) = {
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x20E0)
EVT_CALL(SetActorSounds, -127, 2, 0, 0)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(5.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetAnimation, ACTOR_SELF, 2, NPC_ANIM_paragoomba_default_attack)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
@ -501,12 +501,12 @@ EvtScript N(8021D614) = {
EVT_CALL(SetActorSounds, -127, 2, 769, 0)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 15, FALSE, TRUE, FALSE)
EVT_CALL(N(StartRumbleWithParams), 100, 10)
EVT_THREAD
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.30078125))
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.3))
EVT_END_THREAD
EVT_CALL(ResetActorSounds, -127, 2)
EVT_CALL(GetLastEvent, ACTOR_SELF, LW(3))
@ -690,7 +690,7 @@ EvtScript N(handleEvent_8021DF5C) = {
EVT_CALL(SetAnimationRate, ACTOR_SELF, 1, EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(5)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_normal_idle)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CASE_EQ(38)
EVT_SET_CONST(LW(0), 0x00000001)
@ -785,7 +785,7 @@ EvtScript N(takeTurn_8021E788) = {
EVT_SET(LW(1), 10)
EVT_ADD(LW(2), 3)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2001953125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2))
EVT_THREAD
EVT_CALL(GetActorPos, ACTOR_SELF, LW(1), LW(2), LW(0))
EVT_SET(LW(0), 0)
@ -805,10 +805,10 @@ EvtScript N(takeTurn_8021E788) = {
EVT_END_THREAD
EVT_CALL(JumpToGoal, ACTOR_SELF, 16, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_normal_asleep)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1005859375), EVT_FLOAT(0.80078125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, 5, 0)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.30078125), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.3), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, -2, 0)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
@ -852,7 +852,7 @@ EvtScript N(takeTurn_8021E788) = {
EVT_CALL(SetActorYaw, ACTOR_SELF, 0)
EVT_WAIT_FRAMES(5)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_normal_idle)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CALL(RemoveActorDecoration, ACTOR_SELF, 1, 0)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
@ -861,7 +861,7 @@ EvtScript N(takeTurn_8021E788) = {
EVT_END_CASE_GROUP
EVT_CASE_DEFAULT
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2001953125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2))
EVT_THREAD
EVT_CALL(GetActorPos, ACTOR_SELF, LW(1), LW(2), LW(0))
EVT_SET(LW(0), 0)
@ -881,9 +881,9 @@ EvtScript N(takeTurn_8021E788) = {
EVT_END_THREAD
EVT_CALL(JumpToGoal, ACTOR_SELF, 16, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_normal_pre_headbonk)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1005859375), EVT_FLOAT(0.80078125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.30078125), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.3), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_END_SWITCH
EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LW(0), ((0)), 0, 0, 1, 32)
@ -891,7 +891,7 @@ EvtScript N(takeTurn_8021E788) = {
EVT_CASE_OR_EQ(0)
EVT_CASE_OR_EQ(2)
EVT_CALL(UseBattleCamPreset, 2)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1005859375), EVT_FLOAT(0.80078125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
@ -901,7 +901,7 @@ EvtScript N(takeTurn_8021E788) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 40)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_ADD(LW(0), 30)

View File

@ -217,7 +217,7 @@ EvtScript N(handleEvent_8021A854) = {
EVT_CALL(SetAnimationRate, ACTOR_SELF, 1, EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(5)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_spiked_goomba_default_idle)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CASE_EQ(38)
EVT_SET_CONST(LW(0), 0x00000001)
@ -327,7 +327,7 @@ EvtScript N(takeTurn_8021B19C) = {
EVT_SET(LW(1), 10)
EVT_ADD(LW(2), 3)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2001953125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2))
EVT_THREAD
EVT_CALL(GetActorPos, ACTOR_SELF, LW(1), LW(2), LW(0))
EVT_SET(LW(0), 0)
@ -347,10 +347,10 @@ EvtScript N(takeTurn_8021B19C) = {
EVT_END_THREAD
EVT_CALL(JumpToGoal, ACTOR_SELF, 16, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_spiked_goomba_default_sleep)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1005859375), EVT_FLOAT(0.80078125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, 5, 0)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.30078125), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.3), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, -2, 0)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
@ -394,7 +394,7 @@ EvtScript N(takeTurn_8021B19C) = {
EVT_CALL(SetActorYaw, ACTOR_SELF, 0)
EVT_WAIT_FRAMES(5)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_spiked_goomba_default_idle)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CALL(RemoveActorDecoration, ACTOR_SELF, 1, 0)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
@ -403,7 +403,7 @@ EvtScript N(takeTurn_8021B19C) = {
EVT_END_CASE_GROUP
EVT_CASE_DEFAULT
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2001953125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2))
EVT_THREAD
EVT_CALL(GetActorPos, ACTOR_SELF, LW(1), LW(2), LW(0))
EVT_SET(LW(0), 0)
@ -423,9 +423,9 @@ EvtScript N(takeTurn_8021B19C) = {
EVT_END_THREAD
EVT_CALL(JumpToGoal, ACTOR_SELF, 16, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_spiked_goomba_default_headbonk)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1005859375), EVT_FLOAT(0.80078125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.30078125), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.3), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_END_SWITCH
EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LW(0), ((0)), 0, 0, 2, 32)
@ -433,7 +433,7 @@ EvtScript N(takeTurn_8021B19C) = {
EVT_CASE_OR_EQ(0)
EVT_CASE_OR_EQ(2)
EVT_CALL(UseBattleCamPreset, 2)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1005859375), EVT_FLOAT(0.80078125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
@ -443,7 +443,7 @@ EvtScript N(takeTurn_8021B19C) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 40)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_ADD(LW(0), 30)

View File

@ -414,7 +414,7 @@ EvtScript N(80229160) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 40)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_ADD(LW(0), 30)
@ -461,7 +461,7 @@ EvtScript N(takeTurn_8022936C) = {
EVT_CALL(BattleCamTargetActor, ACTOR_SELF)
EVT_CALL(SetActorSounds, -127, 2, 8416, 0)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(5.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_spiked_para_jr_troopa_default_run)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
@ -500,7 +500,7 @@ EvtScript N(takeTurn_8022936C) = {
EVT_CALL(BattleCamTargetActor, ACTOR_SELF)
EVT_CALL(SetActorSounds, -127, 2, 8416, 0)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(5.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_spiked_para_jr_troopa_default_run)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
@ -640,9 +640,9 @@ EvtScript N(8022A018) = {
EVT_CALL(SetActorSounds, -127, 2, 0, 0)
EVT_CALL(func_8027D32C, -127)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), 0, LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2001953125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2))
EVT_CALL(FallToGoal, -127, 10)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(JumpToGoal, ACTOR_SELF, 8, FALSE, TRUE, FALSE)
EVT_CALL(HPBarToCurrent, ACTOR_SELF)
EVT_CALL(func_8027D2D8, -127)
@ -684,12 +684,12 @@ EvtScript N(8022A39C) = {
EVT_CALL(ResetAllActorSounds, ACTOR_SELF)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_spiked_para_jr_troopa_default_run)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(6.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2001953125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2))
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(3), LW(4), LW(5))
EVT_SUB(LW(4), LW(1))
EVT_MULF(LW(4), EVT_FLOAT(0.30078125))
EVT_MULF(LW(4), EVT_FLOAT(0.3))
EVT_CALL(FlyToGoal, ACTOR_SELF, 0, LW(4), 0)
EVT_RETURN
EVT_END

View File

@ -182,7 +182,7 @@ EvtScript N(8021A12C) = {
EVT_CALL(SetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SET(LW(1), 0)
EVT_CALL(SetActorSounds, -127, 2, 769, 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 15, FALSE, TRUE, FALSE)
EVT_CALL(GetIndexFromPos, -127, LW(10))
@ -605,7 +605,7 @@ EvtScript N(takeTurn_8021B81C) = {
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(1), 24)
EVT_CALL(SetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SET(LW(1), 0)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
@ -645,7 +645,7 @@ EvtScript N(takeTurn_8021B81C) = {
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(1), 24)
EVT_CALL(SetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(3), LW(4), LW(5))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
@ -797,7 +797,7 @@ EvtScript N(takeTurn_Chan) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 40)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_ADD(LW(0), 30)

View File

@ -111,8 +111,9 @@ extern EvtScript N(handleEvent_8021D600);
extern EvtScript N(nextTurn_8022A038);
extern EvtScript N(copyPartner);
extern s32 D_80232C20[];
extern s32 D_80232C50;
BSS char N(pad)[8]; // BSS Alignment Hack
BSS s32 D_80232C20[12];
BSS s32 D_80232C50;
ApiStatus func_802180D0_464560(Evt* script, s32 isInitialCall) {
s32 i;
@ -274,7 +275,7 @@ EvtScript N(flyingTackle) = {
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_lee_Palette_00_Anim_9)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(AddGoalPos, ACTOR_SELF, -100, 0, 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.30078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.3))
EVT_CALL(JumpToGoal, ACTOR_SELF, 17, FALSE, TRUE, FALSE)
EVT_IF_EQ(LW(10), 5)
EVT_CALL(EnemyTestTarget, ACTOR_SELF, LW(0), DAMAGE_TYPE_TRIGGER_LUCKY, 0, 0, 0)
@ -304,7 +305,7 @@ EvtScript N(flyingTackle) = {
EVT_ELSE
EVT_CALL(AddGoalPos, ACTOR_SELF, 10, -15, 0)
EVT_END_IF
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.30078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.3))
EVT_CALL(JumpToGoal, ACTOR_SELF, 12, FALSE, TRUE, FALSE)
EVT_WAIT_FRAMES(2)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
@ -413,7 +414,7 @@ EvtScript N(8021E5DC) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 15)
EVT_ADD(LW(1), 10)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.1005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.1))
EVT_CALL(SetAnimation, ACTOR_SELF, LW(10), LW(11))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, FALSE, FALSE)
@ -434,7 +435,7 @@ EvtScript N(8021E5DC) = {
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 60)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.400390625))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.4))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 15, FALSE, TRUE, FALSE)
EVT_ADD(LW(0), 20)
@ -679,7 +680,7 @@ EvtScript N(8021F08C) = {
EVT_CALL(JumpToGoal, ACTOR_SELF, 15, FALSE, TRUE, FALSE)
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(10))
EVT_IF_FLAG(LW(10), 0x80000)
EVT_SETF(LW(5), EVT_FLOAT(7.2001953125))
EVT_SETF(LW(5), EVT_FLOAT(7.2))
EVT_ELSE
EVT_SET(LW(5), 18)
EVT_END_IF
@ -763,9 +764,9 @@ EvtScript N(8021F6E0) = {
EVT_EXEC_WAIT(N(8021F5F8))
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(10))
EVT_IF_FLAG(LW(10), 0x80000)
EVT_SETF(LW(0), EVT_FLOAT(7.2001953125))
EVT_SETF(LW(1), EVT_FLOAT(7.6005859375))
EVT_SETF(LW(1), EVT_FLOAT(3.6005859375))
EVT_SETF(LW(0), EVT_FLOAT(7.2))
EVT_SETF(LW(1), EVT_FLOAT(7.6))
EVT_SETF(LW(1), EVT_FLOAT(3.6))
EVT_ELSE
EVT_SET(LW(0), 18)
EVT_SET(LW(1), 19)
@ -804,9 +805,9 @@ EvtScript N(8021F6E0) = {
EVT_END_CASE_GROUP
EVT_END_SWITCH
EVT_CHILD_THREAD
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.1005859375), EVT_FLOAT(0.80078125), EVT_FLOAT(1.0))
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.30078125), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.3), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
EVT_END_CHILD_THREAD
@ -882,9 +883,9 @@ EvtScript N(8021F6E0) = {
EVT_CALL(EnableActorBlur, -127, 0)
EVT_END_SWITCH
EVT_CHILD_THREAD
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.1005859375), EVT_FLOAT(0.80078125), EVT_FLOAT(1.0))
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.30078125), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.3), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
EVT_END_CHILD_THREAD
@ -936,7 +937,7 @@ ApiStatus func_80218E2C_4652BC(Evt* script, s32 isInitialCall) {
EvtScript N(80220100) = {
EVT_CALL(UseIdleAnimation, ACTOR_SELF, FALSE)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
@ -1487,7 +1488,7 @@ EvtScript N(takeTurn_80221200) = {
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 60)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.400390625))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.4))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 20, FALSE, TRUE, FALSE)
EVT_ADD(LW(0), 30)
@ -1831,7 +1832,7 @@ EvtScript N(takeTurn_802229C4) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 40)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.400390625))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.4))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 20, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_battle_bombette_Palette_00_Anim_E)
@ -2200,7 +2201,7 @@ EvtScript N(80223B74) = {
EVT_CASE_OR_EQ(2)
EVT_CALL(UseBattleCamPreset, 2)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_battle_parakarry_Palette_00_Anim_5)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.400390625))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.4))
EVT_CALL(AddGoalPos, ACTOR_SELF, 50, 0, 0)
EVT_CALL(JumpToGoal, ACTOR_SELF, 15, FALSE, FALSE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_battle_parakarry_Palette_00_Anim_0)
@ -2540,7 +2541,7 @@ EvtScript N(takeTurn_80224CA0) = {
EVT_CASE_OR_EQ(5)
EVT_SET(LW(10), LW(0))
EVT_CALL(UseBattleCamPreset, 2)
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.400390625), EVT_FLOAT(1.400390625), EVT_FLOAT(1.0))
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.4), EVT_FLOAT(1.4), EVT_FLOAT(1.0))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_battle_bow_Palette_00_Anim_7)
EVT_WAIT_FRAMES(2)
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
@ -2602,7 +2603,7 @@ EvtScript N(takeTurn_80224CA0) = {
EVT_LOOP(LW(7))
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x2019)
EVT_ADD(LW(10), 1)
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.400390625), EVT_FLOAT(1.400390625), EVT_FLOAT(1.0))
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.4), EVT_FLOAT(1.4), EVT_FLOAT(1.0))
EVT_IF_EQ(LF(0), 0)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_battle_bow_Palette_00_Anim_7)
EVT_SET(LF(0), 1)
@ -2626,7 +2627,7 @@ EvtScript N(takeTurn_80224CA0) = {
EVT_CALL(ShakeCam, 1, 0, 2, EVT_FLOAT(0.5))
EVT_CALL(ShakeCam, 1, 0, 2, EVT_FLOAT(1.5))
EVT_CALL(ShakeCam, 1, 0, 1, EVT_FLOAT(0.5))
EVT_CALL(ShakeCam, 1, 0, 1, EVT_FLOAT(0.2001953125))
EVT_CALL(ShakeCam, 1, 0, 1, EVT_FLOAT(0.2))
EVT_END_THREAD
EVT_CALL(GetActorVar, -127, 1, LW(9))
EVT_SWITCH(LW(9))
@ -3020,11 +3021,11 @@ EvtScript N(takeTurn_80226004) = {
EVT_IF_FLAG(LW(0), 0x80000)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(1), 4)
EVT_CALL(PlayEffect, 0x33, 8, LW(0), LW(1), LW(2), EVT_FLOAT(0.5205078125), LW(10), 0, 0, 0, 0, 0, 0, 0)
EVT_CALL(PlayEffect, 0x33, 8, LW(0), LW(1), LW(2), EVT_FLOAT(0.5205), LW(10), 0, 0, 0, 0, 0, 0, 0)
EVT_ELSE
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(1), 12)
EVT_CALL(PlayEffect, 0x33, 8, LW(0), LW(1), LW(2), EVT_FLOAT(1.30078125), LW(10), 0, 0, 0, 0, 0, 0, 0)
EVT_CALL(PlayEffect, 0x33, 8, LW(0), LW(1), LW(2), EVT_FLOAT(1.3), LW(10), 0, 0, 0, 0, 0, 0, 0)
EVT_END_IF
EVT_CALL(N(UnkBackgroundFunc3))
EVT_SET(LW(9), 0)
@ -3373,24 +3374,24 @@ EvtScript N(takeTurn_802270BC) = {
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
EVT_CASE_EQ(1)
EVT_WAIT_FRAMES(13)
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.05078125), EVT_FLOAT(1.05078125), EVT_FLOAT(1.05078125))
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.05), EVT_FLOAT(1.05), EVT_FLOAT(1.05))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.1005859375), EVT_FLOAT(1.1005859375), EVT_FLOAT(1.1005859375))
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.1), EVT_FLOAT(1.1), EVT_FLOAT(1.1))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.150390625), EVT_FLOAT(1.150390625), EVT_FLOAT(1.150390625))
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.15), EVT_FLOAT(1.15), EVT_FLOAT(1.15))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.2001953125), EVT_FLOAT(1.2001953125), EVT_FLOAT(1.2001953125))
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.2), EVT_FLOAT(1.2), EVT_FLOAT(1.2))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.25), EVT_FLOAT(1.25), EVT_FLOAT(1.25))
EVT_CASE_EQ(2)
EVT_WAIT_FRAMES(13)
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.1005859375), EVT_FLOAT(1.1005859375), EVT_FLOAT(1.1005859375))
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.1), EVT_FLOAT(1.1), EVT_FLOAT(1.1))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.2001953125), EVT_FLOAT(1.2001953125), EVT_FLOAT(1.2001953125))
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.2), EVT_FLOAT(1.2), EVT_FLOAT(1.2))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.30078125), EVT_FLOAT(1.30078125), EVT_FLOAT(1.30078125))
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.3), EVT_FLOAT(1.3), EVT_FLOAT(1.3))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.400390625), EVT_FLOAT(1.400390625), EVT_FLOAT(1.400390625))
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.4), EVT_FLOAT(1.4), EVT_FLOAT(1.4))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.5), EVT_FLOAT(1.5), EVT_FLOAT(1.5))
EVT_END_SWITCH
@ -3452,37 +3453,37 @@ EvtScript N(takeTurn_802270BC) = {
EVT_SWITCH(LW(0))
EVT_CASE_EQ(0)
EVT_WAIT_FRAMES(13)
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.1005859375), EVT_FLOAT(1.1005859375), EVT_FLOAT(1.1005859375))
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.1), EVT_FLOAT(1.1), EVT_FLOAT(1.1))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.1005859375), EVT_FLOAT(1.1005859375), EVT_FLOAT(1.1005859375))
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.1), EVT_FLOAT(1.1), EVT_FLOAT(1.1))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.2001953125), EVT_FLOAT(1.2001953125), EVT_FLOAT(1.2001953125))
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.2), EVT_FLOAT(1.2), EVT_FLOAT(1.2))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.2001953125), EVT_FLOAT(1.2001953125), EVT_FLOAT(1.2001953125))
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.2), EVT_FLOAT(1.2), EVT_FLOAT(1.2))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.30078125), EVT_FLOAT(1.30078125), EVT_FLOAT(1.30078125))
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.3), EVT_FLOAT(1.3), EVT_FLOAT(1.3))
EVT_CASE_EQ(1)
EVT_WAIT_FRAMES(13)
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.150390625), EVT_FLOAT(1.150390625), EVT_FLOAT(1.150390625))
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.15), EVT_FLOAT(1.15), EVT_FLOAT(1.15))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.2001953125), EVT_FLOAT(1.2001953125), EVT_FLOAT(1.2001953125))
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.2), EVT_FLOAT(1.2), EVT_FLOAT(1.2))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.3505859375), EVT_FLOAT(1.3505859375), EVT_FLOAT(1.3505859375))
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.35), EVT_FLOAT(1.35), EVT_FLOAT(1.35))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.400390625), EVT_FLOAT(1.400390625), EVT_FLOAT(1.400390625))
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.4), EVT_FLOAT(1.4), EVT_FLOAT(1.4))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.55078125), EVT_FLOAT(1.55078125), EVT_FLOAT(1.55078125))
EVT_CASE_EQ(2)
EVT_WAIT_FRAMES(13)
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.2001953125), EVT_FLOAT(1.2001953125), EVT_FLOAT(1.2001953125))
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.2), EVT_FLOAT(1.2), EVT_FLOAT(1.2))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.30078125), EVT_FLOAT(1.30078125), EVT_FLOAT(1.30078125))
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.3), EVT_FLOAT(1.3), EVT_FLOAT(1.3))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.5), EVT_FLOAT(1.5), EVT_FLOAT(1.5))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.6005859375), EVT_FLOAT(1.6005859375), EVT_FLOAT(1.6005859375))
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.6), EVT_FLOAT(1.6), EVT_FLOAT(1.6))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.80078125), EVT_FLOAT(1.80078125), EVT_FLOAT(1.80078125))
EVT_CALL(SetPartScale, -127, 1, EVT_FLOAT(1.8), EVT_FLOAT(1.8), EVT_FLOAT(1.8))
EVT_END_SWITCH
EVT_END_THREAD
EVT_CALL(SetActorSounds, -127, 2, 0, 0)
@ -3493,7 +3494,7 @@ EvtScript N(takeTurn_802270BC) = {
EVT_WAIT_FRAMES(10)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_battle_sushie_Palette_00_Anim_6)
EVT_END_THREAD
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 20, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_battle_sushie_Palette_00_Anim_7)
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 0)
@ -3521,7 +3522,7 @@ EvtScript N(takeTurn_802270BC) = {
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 60)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.400390625))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.4))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 20, FALSE, TRUE, FALSE)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x29A)
@ -3817,7 +3818,7 @@ EvtScript N(takeTurn_80228B78) = {
EVT_ADD(LW(0), -1)
EVT_ADD(LW(1), 4)
EVT_ADD(LW(2), 2)
EVT_CALL(SetPartScale, -127, 3, EVT_FLOAT(0.400390625), EVT_FLOAT(0.400390625), EVT_FLOAT(0.400390625))
EVT_CALL(SetPartScale, -127, 3, EVT_FLOAT(0.4), EVT_FLOAT(0.4), EVT_FLOAT(0.4))
EVT_ELSE
EVT_ADD(LW(0), -3)
EVT_ADD(LW(1), 10)
@ -3832,7 +3833,7 @@ EvtScript N(takeTurn_80228B78) = {
EVT_LOOP(4)
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(10))
EVT_IF_FLAG(LW(10), 0x80000)
EVT_ADDF(LW(1), EVT_FLOAT(2.400390625))
EVT_ADDF(LW(1), EVT_FLOAT(2.4))
EVT_ELSE
EVT_ADD(LW(1), 6)
EVT_END_IF
@ -3845,7 +3846,7 @@ EvtScript N(takeTurn_80228B78) = {
EVT_ADD(LW(0), -3)
EVT_ADD(LW(1), 16)
EVT_ADD(LW(2), 2)
EVT_SETF(LW(3), EVT_FLOAT(0.400390625))
EVT_SETF(LW(3), EVT_FLOAT(0.4))
EVT_ELSE
EVT_ADD(LW(0), -8)
EVT_ADD(LW(1), 40)
@ -3997,7 +3998,7 @@ EvtScript N(copyPartner) = {
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(10))
EVT_IF_FLAG(LW(10), 0x80000)
EVT_ADD(LW(1), 8)
EVT_SETF(LW(3), EVT_FLOAT(0.400390625))
EVT_SETF(LW(3), EVT_FLOAT(0.4))
EVT_ELSE
EVT_ADD(LW(1), 20)
EVT_SETF(LW(3), EVT_FLOAT(1.0))
@ -4075,7 +4076,7 @@ EvtScript N(copyPartner) = {
EVT_SWITCH(LW(5))
EVT_CASE_EQ(8)
EVT_CALL(GetActorPos, LW(10), LW(0), LW(1), LW(2))
EVT_CALL(SetActorJumpGravity, LW(10), EVT_FLOAT(0.0107421875))
EVT_CALL(SetActorJumpGravity, LW(10), EVT_FLOAT(0.01))
EVT_CALL(SetGoalPos, LW(10), LW(0), 10, LW(2))
EVT_CALL(JumpToGoal, LW(10), 10, FALSE, FALSE, FALSE)
EVT_WAIT_FRAMES(10)
@ -4083,7 +4084,7 @@ EvtScript N(copyPartner) = {
EVT_CASE_OR_EQ(9)
EVT_CASE_OR_EQ(4)
EVT_CALL(GetActorPos, LW(10), LW(0), LW(1), LW(2))
EVT_CALL(SetActorJumpGravity, LW(10), EVT_FLOAT(0.0107421875))
EVT_CALL(SetActorJumpGravity, LW(10), EVT_FLOAT(0.01))
EVT_CALL(SetGoalPos, LW(10), LW(0), 30, LW(2))
EVT_CALL(JumpToGoal, LW(10), 20, FALSE, FALSE, FALSE)
EVT_END_CASE_GROUP

View File

@ -158,7 +158,7 @@ EvtScript N(8022A4A4) = {
EVT_CALL(SetAnimationRate, ACTOR_SELF, 1, EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(5)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_5)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CASE_OR_EQ(23)
EVT_CASE_OR_EQ(25)
@ -225,7 +225,7 @@ EvtScript N(takeTurn_8022AA54) = {
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_7)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(AddGoalPos, ACTOR_SELF, 30, 0, 0)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(4.6005859375))
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(4.6))
EVT_CALL(RunToGoal, ACTOR_SELF, 0, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_2)
EVT_WAIT_FRAMES(10)
@ -263,7 +263,7 @@ EvtScript N(takeTurn_8022AA54) = {
EVT_END_IF
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_2)
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(3.80078125))
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(3.8))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_7)
EVT_CALL(RunToGoal, ACTOR_SELF, 0, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_2)

View File

@ -170,7 +170,7 @@ EvtScript N(8022B8C0) = {
EVT_CALL(SetAnimationRate, ACTOR_SELF, 1, EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(5)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_6)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CASE_OR_EQ(23)
EVT_CASE_OR_EQ(25)
@ -235,7 +235,7 @@ EvtScript N(singleStrike2) = {
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_8)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(AddGoalPos, ACTOR_SELF, 50, 0, 0)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(3.80078125))
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(3.8))
EVT_CALL(RunToGoal, ACTOR_SELF, 0, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_3)
EVT_WAIT_FRAMES(10)
@ -300,7 +300,7 @@ EvtScript N(singleStrike2) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 50)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.2001953125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.2))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_21)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 15, FALSE, TRUE, FALSE)
@ -320,7 +320,7 @@ EvtScript N(singleStrike2) = {
EVT_END_SWITCH
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_3)
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(3.80078125))
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(3.8))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_8)
EVT_CALL(RunToGoal, ACTOR_SELF, 0, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_3)
@ -395,7 +395,7 @@ EvtScript N(doubleStrike2) = {
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, SOUND_JUMP_3E2)
EVT_CALL(EnableActorBlur, -127, 1)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_14)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.900390625))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.9))
EVT_CALL(JumpToGoal, ACTOR_SELF, 25, FALSE, TRUE, FALSE)
EVT_CALL(EnableActorBlur, -127, 0)
EVT_END_THREAD
@ -403,7 +403,7 @@ EvtScript N(doubleStrike2) = {
EVT_CALL(ShakeCam, 1, 0, 2, EVT_FLOAT(0.5))
EVT_CALL(ShakeCam, 1, 0, 2, EVT_FLOAT(1.5))
EVT_CALL(ShakeCam, 1, 0, 2, EVT_FLOAT(0.5))
EVT_CALL(ShakeCam, 1, 0, 2, EVT_FLOAT(0.2001953125))
EVT_CALL(ShakeCam, 1, 0, 2, EVT_FLOAT(0.2))
EVT_END_THREAD
EVT_WAIT_FRAMES(2)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x3ED)
@ -430,7 +430,7 @@ EvtScript N(doubleStrike2) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 50)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_21)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 30, FALSE, TRUE, FALSE)
@ -450,7 +450,7 @@ EvtScript N(doubleStrike2) = {
EVT_END_SWITCH
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_3)
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(3.80078125))
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(3.8))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_8)
EVT_CALL(RunToGoal, ACTOR_SELF, 0, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_3)

View File

@ -195,7 +195,7 @@ EvtScript N(8022DC44) = {
EVT_CALL(SetAnimationRate, ACTOR_SELF, 1, EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(5)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_6)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CASE_OR_EQ(23)
EVT_CASE_OR_EQ(25)
@ -260,7 +260,7 @@ EvtScript N(singleStrike3) = {
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_8)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(AddGoalPos, ACTOR_SELF, 50, 0, 0)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(3.80078125))
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(3.8))
EVT_CALL(RunToGoal, ACTOR_SELF, 0, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_3)
EVT_WAIT_FRAMES(10)
@ -325,7 +325,7 @@ EvtScript N(singleStrike3) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 50)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.2001953125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.2))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_21)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 15, FALSE, TRUE, FALSE)
@ -345,7 +345,7 @@ EvtScript N(singleStrike3) = {
EVT_END_SWITCH
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_3)
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(3.80078125))
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(3.8))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_8)
EVT_CALL(RunToGoal, ACTOR_SELF, 0, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_3)
@ -420,7 +420,7 @@ EvtScript N(doubleStrike3) = {
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, SOUND_JUMP_3E2)
EVT_CALL(EnableActorBlur, -127, 1)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_14)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.900390625))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.9))
EVT_CALL(JumpToGoal, ACTOR_SELF, 25, FALSE, TRUE, FALSE)
EVT_CALL(EnableActorBlur, -127, 0)
EVT_END_THREAD
@ -428,7 +428,7 @@ EvtScript N(doubleStrike3) = {
EVT_CALL(ShakeCam, 1, 0, 2, EVT_FLOAT(0.5))
EVT_CALL(ShakeCam, 1, 0, 2, EVT_FLOAT(1.5))
EVT_CALL(ShakeCam, 1, 0, 2, EVT_FLOAT(0.5))
EVT_CALL(ShakeCam, 1, 0, 2, EVT_FLOAT(0.2001953125))
EVT_CALL(ShakeCam, 1, 0, 2, EVT_FLOAT(0.2))
EVT_END_THREAD
EVT_WAIT_FRAMES(2)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x3ED)
@ -455,7 +455,7 @@ EvtScript N(doubleStrike3) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 50)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_21)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 30, FALSE, TRUE, FALSE)
@ -475,7 +475,7 @@ EvtScript N(doubleStrike3) = {
EVT_END_SWITCH
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_3)
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(3.80078125))
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(3.8))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_8)
EVT_CALL(RunToGoal, ACTOR_SELF, 0, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_3)
@ -560,7 +560,7 @@ EvtScript N(tripleStrike3) = {
EVT_CALL(ShakeCam, 1, 0, 2, EVT_FLOAT(0.5))
EVT_CALL(ShakeCam, 1, 0, 2, EVT_FLOAT(1.5))
EVT_CALL(ShakeCam, 1, 0, 2, EVT_FLOAT(0.5))
EVT_CALL(ShakeCam, 1, 0, 2, EVT_FLOAT(0.2001953125))
EVT_CALL(ShakeCam, 1, 0, 2, EVT_FLOAT(0.2))
EVT_END_THREAD
EVT_WAIT_FRAMES(2)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x3ED)
@ -570,7 +570,7 @@ EvtScript N(tripleStrike3) = {
EVT_THREAD
EVT_WAIT_FRAMES(5)
EVT_CALL(EnablePlayerBlur, 1)
EVT_CALL(SetActorJumpGravity, ACTOR_PLAYER, EVT_FLOAT(0.30078125))
EVT_CALL(SetActorJumpGravity, ACTOR_PLAYER, EVT_FLOAT(0.3))
EVT_CALL(GetActorPos, ACTOR_PLAYER, LW(0), LW(1), LW(2))
EVT_CALL(SetJumpAnimations, ACTOR_PLAYER, 0, ANIM_FALL_BACK, ANIM_FALL_BACK, ANIM_FALL_BACK)
EVT_CALL(SetGoalPos, ACTOR_PLAYER, LW(0), LW(1), LW(2))
@ -582,7 +582,7 @@ EvtScript N(tripleStrike3) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 50)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_21)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 30, FALSE, TRUE, FALSE)
@ -619,7 +619,7 @@ EvtScript N(tripleStrike3) = {
EVT_CALL(ShakeCam, 1, 0, 2, EVT_FLOAT(2.0))
EVT_CALL(ShakeCam, 1, 0, 2, EVT_FLOAT(1.0))
EVT_CALL(ShakeCam, 1, 0, 2, EVT_FLOAT(0.5))
EVT_CALL(ShakeCam, 1, 0, 2, EVT_FLOAT(0.2001953125))
EVT_CALL(ShakeCam, 1, 0, 2, EVT_FLOAT(0.2))
EVT_END_THREAD
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x3EE)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x20BB)
@ -645,7 +645,7 @@ EvtScript N(tripleStrike3) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 50)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_21)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 30, FALSE, TRUE, FALSE)
@ -665,7 +665,7 @@ EvtScript N(tripleStrike3) = {
EVT_END_SWITCH
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_3)
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(3.80078125))
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(3.8))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_8)
EVT_CALL(RunToGoal, ACTOR_SELF, 0, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_the_master_Palette_00_Anim_3)
@ -759,7 +759,7 @@ EvtScript N(8023059C) = {
EVT_CALL(SetPartAlpha, -127, 2, 80)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetPartJumpGravity, -127, 2, EVT_FLOAT(0.1005859375))
EVT_CALL(SetPartJumpGravity, -127, 2, EVT_FLOAT(0.1))
EVT_CALL(JumpPartTo, -127, 2, LW(0), LW(1), LW(2), 10, 1)
EVT_CALL(SetPartFlagBits, -127, 2, 1, 1)
EVT_WAIT_FRAMES(2)

View File

@ -1,7 +1,6 @@
#include "common.h"
#include "battle/battle.h"
#include "script_api/battle.h"
#include "message_ids.h"
#define NAMESPACE b_area_mac

View File

@ -1,5 +0,0 @@
#include "common.h"
#define NAMESPACE b_area_mim
#include "common/UnkBattleFunc2.inc.c"

View File

@ -1,7 +0,0 @@
#include "common.h"
#define NAMESPACE b_area_mim
#include "common/UnkBattleFunc1.inc.c"
#include "common/UnkFloatFunc4.inc.c"

View File

@ -1,5 +0,0 @@
#include "common.h"
#define NAMESPACE b_area_mim
#include "common/UnkFogFunc2.inc.c"

View File

@ -0,0 +1,727 @@
#include "common.h"
#include "battle/battle.h"
#include "script_api/battle.h"
#include "sprite/npc/bzzap.h"
#define NAMESPACE b_area_mim_bzzap
extern EvtScript N(init_8021AA24);
extern EvtScript N(takeTurn_8021D28C);
extern EvtScript N(idle_8021AB10);
extern EvtScript N(handleEvent_8021ACA8);
s32 N(idleAnimations_8021A820)[] = {
STATUS_NORMAL, NPC_ANIM_bzzap_Palette_00_Anim_1,
STATUS_STONE, NPC_ANIM_bzzap_Palette_00_Anim_0,
STATUS_SLEEP, NPC_ANIM_bzzap_Palette_00_Anim_9,
STATUS_POISON, NPC_ANIM_bzzap_Palette_00_Anim_1,
STATUS_STOP, NPC_ANIM_bzzap_Palette_00_Anim_0,
STATUS_STATIC, NPC_ANIM_bzzap_Palette_00_Anim_1,
STATUS_PARALYZE, NPC_ANIM_bzzap_Palette_00_Anim_0,
STATUS_DIZZY, NPC_ANIM_bzzap_Palette_00_Anim_A,
STATUS_FEAR, NPC_ANIM_bzzap_Palette_00_Anim_A,
STATUS_END,
};
s32 N(defenseTable_8021A86C)[] = {
ELEMENT_NORMAL, 0,
ELEMENT_END,
};
s32 N(statusTable_8021A878)[] = {
STATUS_NORMAL, 0,
STATUS_DEFAULT, 0,
STATUS_SLEEP, 60,
STATUS_POISON, 50,
STATUS_FROZEN, 0,
STATUS_DIZZY, 100,
STATUS_FEAR, 0,
STATUS_STATIC, 0,
STATUS_PARALYZE, 90,
STATUS_SHRINK, 75,
STATUS_STOP, 90,
STATUS_DEFAULT_TURN_MOD, 0,
STATUS_SLEEP_TURN_MOD, 0,
STATUS_POISON_TURN_MOD, 0,
STATUS_FROZEN_TURN_MOD, 0,
STATUS_DIZZY_TURN_MOD, 1,
STATUS_FEAR_TURN_MOD, 0,
STATUS_STATIC_TURN_MOD, 0,
STATUS_PARALYZE_TURN_MOD, 0,
STATUS_SHRINK_TURN_MOD, 0,
STATUS_STOP_TURN_MOD, 0,
STATUS_END,
};
ActorPartBlueprint N(partsTable_8021A924)[] = {
{
.flags = ACTOR_PART_FLAG_MULTI_TARGET,
.index = 1,
.posOffset = { 0, 0, 0 },
.targetOffset = { -7, 33 },
.opacity = 255,
.idleAnimations = N(idleAnimations_8021A820),
.defenseTable = N(defenseTable_8021A86C),
.eventFlags = ACTOR_EVENT_FLAG_0,
.elementImmunityFlags = 0,
.unk_1C = 758,
},
{
.flags = ACTOR_PART_FLAG_INVISIBLE | ACTOR_PART_FLAG_NO_TARGET | ACTOR_PART_FLAG_100000,
.index = 2,
.posOffset = { 0, 0, 0 },
.targetOffset = { 0, 24 },
.opacity = 255,
.idleAnimations = N(idleAnimations_8021A820),
.defenseTable = N(defenseTable_8021A86C),
.eventFlags = ACTOR_EVENT_FLAG_0,
.elementImmunityFlags = 0,
.unk_1C = -5,
},
{
.flags = ACTOR_PART_FLAG_INVISIBLE | ACTOR_PART_FLAG_NO_TARGET | ACTOR_PART_FLAG_100000,
.index = 3,
.posOffset = { 0, 0, 0 },
.targetOffset = { 0, 24 },
.opacity = 255,
.idleAnimations = N(idleAnimations_8021A820),
.defenseTable = N(defenseTable_8021A86C),
.eventFlags = ACTOR_EVENT_FLAG_0,
.elementImmunityFlags = 0,
.unk_1C = -5,
},
{
.flags = ACTOR_PART_FLAG_INVISIBLE | ACTOR_PART_FLAG_NO_TARGET | ACTOR_PART_FLAG_100000,
.index = 4,
.posOffset = { 0, 0, 0 },
.targetOffset = { 0, 24 },
.opacity = 255,
.idleAnimations = N(idleAnimations_8021A820),
.defenseTable = N(defenseTable_8021A86C),
.eventFlags = ACTOR_EVENT_FLAG_0,
.elementImmunityFlags = 0,
.unk_1C = -5,
},
{
.flags = ACTOR_PART_FLAG_INVISIBLE | ACTOR_PART_FLAG_NO_TARGET | ACTOR_PART_FLAG_100000,
.index = 5,
.posOffset = { 0, 0, 0 },
.targetOffset = { 0, 24 },
.opacity = 255,
.idleAnimations = N(idleAnimations_8021A820),
.defenseTable = N(defenseTable_8021A86C),
.eventFlags = ACTOR_EVENT_FLAG_0,
.elementImmunityFlags = 0,
.unk_1C = -5,
},
{
.flags = ACTOR_PART_FLAG_INVISIBLE | ACTOR_PART_FLAG_NO_TARGET | ACTOR_PART_FLAG_100000,
.index = 6,
.posOffset = { 0, 0, 0 },
.targetOffset = { 0, 24 },
.opacity = 255,
.idleAnimations = N(idleAnimations_8021A820),
.defenseTable = N(defenseTable_8021A86C),
.eventFlags = ACTOR_EVENT_FLAG_0,
.elementImmunityFlags = 0,
.unk_1C = -5,
},
};
ActorBlueprint NAMESPACE = {
.flags = ACTOR_FLAG_FLYING,
.type = ACTOR_TYPE_BZZAP,
.level = 19,
.maxHP = 3,
.partCount = ARRAY_COUNT(N(partsTable_8021A924)),
.partsData = N(partsTable_8021A924),
.script = N(init_8021AA24),
.statusTable = N(statusTable_8021A878),
.escapeChance = 40,
.airLiftChance = 95,
.spookChance = 95,
.baseStatusChance = 70,
.upAndAwayChance = 95,
.spinSmashReq = 0,
.powerBounceChance = 90,
.coinReward = 1,
.size = { 38, 38 },
.hpBarOffset = { 0, 0 },
.statusIconOffset = { -10, 20 },
.statusMessageOffset = { 10, 20 },
};
#include "common/UnkBattleFunc1.inc.c"
#include "common/UnkFloatFunc4.inc.c"
EvtScript N(init_8021AA24) = {
EVT_CALL(BindTakeTurn, ACTOR_SELF, EVT_ADDR(N(takeTurn_8021D28C)))
EVT_CALL(BindIdle, ACTOR_SELF, EVT_ADDR(N(idle_8021AB10)))
EVT_CALL(BindHandleEvent, ACTOR_SELF, EVT_ADDR(N(handleEvent_8021ACA8)))
EVT_CALL(SetPartScale, ACTOR_SELF, 2, EVT_FLOAT(0.4), EVT_FLOAT(0.4), EVT_FLOAT(0.4))
EVT_CALL(SetPartScale, ACTOR_SELF, 3, EVT_FLOAT(0.4), EVT_FLOAT(0.4), EVT_FLOAT(0.4))
EVT_CALL(SetPartScale, ACTOR_SELF, 4, EVT_FLOAT(0.4), EVT_FLOAT(0.4), EVT_FLOAT(0.4))
EVT_CALL(SetPartScale, ACTOR_SELF, 5, EVT_FLOAT(0.4), EVT_FLOAT(0.4), EVT_FLOAT(0.4))
EVT_CALL(SetPartScale, ACTOR_SELF, 6, EVT_FLOAT(0.4), EVT_FLOAT(0.4), EVT_FLOAT(0.4))
EVT_RETURN
EVT_END
};
EvtScript N(idle_8021AB10) = {
EVT_LABEL(0)
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(10))
EVT_IF_FLAG(LW(10), STATUS_FLAG_SLEEP | STATUS_FLAG_DIZZY)
EVT_CALL(SetTargetOffset, ACTOR_SELF, 1, -7, 19)
EVT_CALL(func_8027D4C8, ACTOR_SELF, 1, 2, -6)
EVT_CALL(N(UnkBattleFunc1), -20, 20, 10, 27)
EVT_ELSE
EVT_CALL(SetTargetOffset, ACTOR_SELF, 1, -7, 33)
EVT_CALL(func_8027D4C8, ACTOR_SELF, 1, 2, -10)
EVT_CALL(N(UnkBattleFunc1), -16, 22, 4, 22)
EVT_END_IF
EVT_WAIT_FRAMES(1)
EVT_GOTO(0)
EVT_RETURN
EVT_END
};
EvtScript N(8021AC20) = {
EVT_CALL(SetPartRotation, ACTOR_SELF, 1, 0, 0, 0)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_bzzap_Palette_00_Anim_3)
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(8.0))
EVT_CALL(FlyToGoal, ACTOR_SELF, 0, 1, 11)
EVT_RETURN
EVT_END
};
EvtScript N(handleEvent_8021ACA8) = {
EVT_CALL(UseIdleAnimation, ACTOR_SELF, FALSE)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 0)
EVT_CALL(GetLastEvent, ACTOR_SELF, LW(0))
EVT_SWITCH(LW(0))
EVT_CASE_OR_EQ(EVENT_HIT_COMBO)
EVT_CASE_OR_EQ(EVENT_HIT)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_bzzap_Palette_00_Anim_6)
EVT_EXEC_WAIT(DoNormalHit)
EVT_END_CASE_GROUP
EVT_CASE_EQ(EVENT_BURN_HIT)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_bzzap_Palette_00_Anim_7)
EVT_SET_CONST(LW(2), NPC_ANIM_bzzap_Palette_00_Anim_8)
EVT_EXEC_WAIT(DoBurnHit)
EVT_CASE_EQ(EVENT_BURN_DEATH)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_bzzap_Palette_00_Anim_7)
EVT_SET_CONST(LW(2), NPC_ANIM_bzzap_Palette_00_Anim_8)
EVT_EXEC_WAIT(DoBurnHit)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_bzzap_Palette_00_Anim_8)
EVT_EXEC_WAIT(DoDeath)
EVT_RETURN
EVT_CASE_EQ(EVENT_SPIN_SMASH_HIT)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_bzzap_Palette_00_Anim_6)
EVT_EXEC_WAIT(DoSpinSmashHit)
EVT_CASE_EQ(EVENT_SPIN_SMASH_DEATH)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_bzzap_Palette_00_Anim_6)
EVT_EXEC_WAIT(DoSpinSmashHit)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_bzzap_Palette_00_Anim_B)
EVT_EXEC_WAIT(DoDeath)
EVT_RETURN
EVT_CASE_EQ(EVENT_SHOCK_HIT)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_bzzap_Palette_00_Anim_6)
EVT_EXEC_WAIT(DoShockHit)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_bzzap_Palette_00_Anim_6)
EVT_EXEC_WAIT(DoJumpBack)
EVT_EXEC_WAIT(N(8021AC20))
EVT_CASE_EQ(EVENT_SHOCK_DEATH)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_bzzap_Palette_00_Anim_6)
EVT_EXEC_WAIT(DoShockHit)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_bzzap_Palette_00_Anim_B)
EVT_EXEC_WAIT(DoDeath)
EVT_RETURN
EVT_CASE_OR_EQ(EVENT_UNKNOWN_TRIGGER)
EVT_CASE_OR_EQ(EVENT_IMMUNE)
EVT_CASE_OR_EQ(EVENT_AIR_LIFT_FAILED)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_bzzap_Palette_00_Anim_1)
EVT_EXEC_WAIT(DoImmune)
EVT_END_CASE_GROUP
EVT_CASE_EQ(EVENT_DEATH)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_bzzap_Palette_00_Anim_6)
EVT_EXEC_WAIT(DoNormalHit)
EVT_WAIT_FRAMES(10)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_bzzap_Palette_00_Anim_B)
EVT_EXEC_WAIT(DoDeath)
EVT_RETURN
EVT_CASE_EQ(EVENT_BEGIN_FIRST_STRIKE)
EVT_CALL(SetActorPos, ACTOR_SELF, 20, 0, 0)
EVT_CALL(HPBarToCurrent, ACTOR_SELF)
EVT_CASE_EQ(EVENT_END_FIRST_STRIKE)
EVT_EXEC_WAIT(N(8021AC20))
EVT_CALL(HPBarToHome, ACTOR_SELF)
EVT_CASE_EQ(EVENT_RECOVER_STATUS)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_bzzap_Palette_00_Anim_1)
EVT_EXEC_WAIT(DoRecover)
EVT_CASE_EQ(EVENT_SCARE_AWAY)
EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLYING, 0)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_bzzap_Palette_00_Anim_3)
EVT_SET_CONST(LW(2), NPC_ANIM_bzzap_Palette_00_Anim_6)
EVT_EXEC_WAIT(DoScareAway)
EVT_RETURN
EVT_CASE_EQ(EVENT_BEGIN_AIR_LIFT)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_bzzap_Palette_00_Anim_1)
EVT_EXEC_WAIT(DoAirLift)
EVT_CASE_EQ(EVENT_BLOW_AWAY)
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_SLEEP | STATUS_FLAG_FROZEN | STATUS_FLAG_FEAR | STATUS_FLAG_PARALYZE | STATUS_FLAG_DIZZY | STATUS_FLAG_STONE | STATUS_FLAG_STOP)
EVT_IF_FLAG(LW(0), STATUS_FLAG_SHRINK)
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, 3, 0)
EVT_ELSE
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, 9, 0)
EVT_END_IF
EVT_END_IF
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_bzzap_Palette_00_Anim_6)
EVT_EXEC_WAIT(DoBlowAway)
EVT_CASE_DEFAULT
EVT_END_SWITCH
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_RETURN
EVT_END
};
EvtScript N(8021B28C) = {
EVT_CALL(UseIdleAnimation, ACTOR_SELF, FALSE)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 0)
EVT_CALL(SetTargetActor, ACTOR_SELF, ACTOR_PLAYER)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_63)
EVT_CALL(BattleCamTargetActor, ACTOR_SELF)
EVT_CALL(func_8024ECF8, -1, 1, 0)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_bzzap_Palette_00_Anim_3)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(AddGoalPos, ACTOR_SELF, 52, 10, 0)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(6.0))
EVT_CALL(FlyToGoal, ACTOR_SELF, 0, -4, 12)
EVT_CALL(EnemyTestTarget, ACTOR_SELF, LW(0), 0, 0, 1, BS_FLAGS1_10)
EVT_SWITCH(LW(0))
EVT_CASE_OR_EQ(HIT_RESULT_MISS)
EVT_CASE_OR_EQ(HIT_RESULT_LUCKY)
EVT_SET(LW(10), LW(0))
EVT_WAIT_FRAMES(10)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 20)
EVT_ADD(LW(2), 1)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(8.0))
EVT_CALL(FlyToGoal, ACTOR_SELF, 0, -10, 4)
EVT_WAIT_FRAMES(5)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x20CA)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_bzzap_Palette_00_Anim_4)
EVT_WAIT_FRAMES(10)
EVT_IF_EQ(LW(10), HIT_RESULT_LUCKY)
EVT_CALL(EnemyTestTarget, ACTOR_SELF, LW(0), DAMAGE_TYPE_TRIGGER_LUCKY, 0, 0, 0)
EVT_END_IF
EVT_WAIT_FRAMES(15)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(YieldTurn)
EVT_CALL(SetActorYaw, ACTOR_SELF, 180)
EVT_CALL(AddActorDecoration, ACTOR_SELF, 1, 0, 2)
EVT_EXEC_WAIT(N(8021AC20))
EVT_CALL(RemoveActorDecoration, ACTOR_SELF, 1, 0)
EVT_CALL(SetActorYaw, ACTOR_SELF, 0)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_RETURN
EVT_END_CASE_GROUP
EVT_END_SWITCH
EVT_WAIT_FRAMES(10)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 20)
EVT_ADD(LW(2), 1)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(5.0))
EVT_CALL(FlyToGoal, ACTOR_SELF, 0, -10, 4)
EVT_WAIT_FRAMES(5)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x20CA)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_bzzap_Palette_00_Anim_4)
EVT_WAIT_FRAMES(6)
EVT_WAIT_FRAMES(2)
EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LW(0), 0, 0, STATUS_FLAG_8 | STATUS_FLAG_20 | STATUS_FLAG_100 | STATUS_FLAG_200 | STATUS_FLAG_POISON | STATUS_FLAG_80000000, 6, BS_FLAGS1_SP_EVT_ACTIVE)
EVT_SWITCH(LW(0))
EVT_CASE_OR_EQ(HIT_RESULT_HIT)
EVT_CASE_OR_EQ(HIT_RESULT_QUAKE_IMMUNE)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_WAIT_FRAMES(20)
EVT_CALL(YieldTurn)
EVT_EXEC_WAIT(N(8021AC20))
EVT_END_CASE_GROUP
EVT_END_SWITCH
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_RETURN
EVT_END
};
EvtScript N(8021B77C) = {
EVT_SET(LW(9), LW(0))
EVT_CALL(SetPartYaw, ACTOR_SELF, LW(9), 0)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(10), LW(11), LW(12))
EVT_ADD(LW(10), 200)
EVT_ADD(LW(11), 100)
EVT_CALL(SetPartPos, ACTOR_SELF, LW(9), LW(10), LW(11), LW(12))
EVT_CALL(SetPartFlagBits, ACTOR_SELF, LW(9), ACTOR_PART_FLAG_INVISIBLE, 0)
EVT_CALL(SetAnimation, ACTOR_SELF, LW(9), 0x4B0003)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(10), LW(11), LW(12))
EVT_ADD(LW(11), 50)
EVT_SUB(LW(12), 30)
EVT_CALL(SetPartMoveSpeed, ACTOR_SELF, LW(9), EVT_FLOAT(6.0))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, LW(9), EVT_FLOAT(1.0))
EVT_CALL(FlyPartTo, ACTOR_SELF, LW(9), LW(10), LW(11), LW(12), 0, -10, 0)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(3), LW(4), LW(5))
EVT_CALL(GetPartOffset, ACTOR_SELF, LW(9), LW(6), LW(7), LW(8))
EVT_CALL(MakeLerp, 90, 450, 50, 0)
EVT_LABEL(0)
EVT_CALL(UpdateLerp)
EVT_CALL(N(UnkFloatFunc4), LW(3), LW(5), 30, LW(0), LW(6), LW(8))
EVT_CALL(SetPartPos, ACTOR_SELF, LW(9), LW(6), LW(7), LW(8))
EVT_IF_GT(LW(3), LW(6))
EVT_CALL(SetPartYaw, ACTOR_SELF, LW(9), 180)
EVT_ELSE
EVT_CALL(SetPartYaw, ACTOR_SELF, LW(9), 0)
EVT_END_IF
EVT_WAIT_FRAMES(1)
EVT_IF_EQ(LW(1), 1)
EVT_GOTO(0)
EVT_END_IF
EVT_CALL(SetPartYaw, ACTOR_SELF, LW(9), 0)
EVT_IF_EQ(LW(9), 2)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_I)
EVT_CALL(SetBattleCamZoom, 400)
EVT_CALL(SetBattleCamOffsetZ, 30)
EVT_CALL(BattleCamTargetActor, ACTOR_PLAYER)
EVT_CALL(MoveBattleCamOver, 60)
EVT_END_IF
EVT_CALL(SetAnimation, ACTOR_SELF, LW(9), 0x4B0003)
EVT_CALL(GetActorPos, ACTOR_PLAYER, LW(10), LW(11), LW(12))
EVT_ADD(LW(11), 30)
EVT_ADD(LW(12), 30)
EVT_CALL(SetPartMoveSpeed, ACTOR_SELF, LW(9), EVT_FLOAT(6.0))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, LW(9), EVT_FLOAT(1.0))
EVT_CALL(FlyPartTo, ACTOR_SELF, LW(9), LW(10), LW(11), LW(12), 0, -10, 0)
EVT_CALL(GetActorPos, ACTOR_PLAYER, LW(3), LW(4), LW(5))
EVT_CALL(GetPartOffset, ACTOR_SELF, LW(9), LW(6), LW(7), LW(8))
EVT_CALL(MakeLerp, -90, -720, 100, 0)
EVT_LABEL(1)
EVT_CALL(UpdateLerp)
EVT_CALL(N(UnkFloatFunc4), LW(3), LW(5), 30, LW(0), LW(6), LW(8))
EVT_CALL(SetPartPos, ACTOR_SELF, LW(9), LW(6), LW(7), LW(8))
EVT_IF_GT(LW(3), LW(6))
EVT_CALL(SetPartYaw, ACTOR_SELF, LW(9), 180)
EVT_ELSE
EVT_CALL(SetPartYaw, ACTOR_SELF, LW(9), 0)
EVT_END_IF
EVT_WAIT_FRAMES(1)
EVT_IF_EQ(LW(1), 1)
EVT_GOTO(1)
EVT_END_IF
EVT_RETURN
EVT_END
};
EvtScript N(8021BC74) = {
EVT_CALL(UseIdleAnimation, ACTOR_SELF, FALSE)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 0)
EVT_CALL(SetTargetActor, ACTOR_SELF, ACTOR_PLAYER)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_63)
EVT_CALL(BattleCamTargetActor, ACTOR_SELF)
EVT_CALL(func_8024ECF8, -1, 1, 0)
EVT_CALL(SetPartSounds, ACTOR_SELF, 2, 1, 0, 0)
EVT_CALL(SetPartSounds, ACTOR_SELF, 3, 1, 0, 0)
EVT_CALL(SetPartSounds, ACTOR_SELF, 4, 1, 0, 0)
EVT_CALL(SetPartSounds, ACTOR_SELF, 5, 1, 0, 0)
EVT_CALL(SetPartSounds, ACTOR_SELF, 6, 1, 0, 0)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x20CC)
EVT_CALL(SetActorYaw, ACTOR_SELF, 180)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_bzzap_Palette_00_Anim_5)
EVT_WAIT_FRAMES(40)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_bzzap_Palette_00_Anim_1)
EVT_CALL(SetActorYaw, ACTOR_SELF, 0)
EVT_CALL(PlaySound, 0x358)
EVT_SET(LW(0), 2)
EVT_EXEC_GET_TID(N(8021B77C), LW(10))
EVT_WAIT_FRAMES(11)
EVT_SET(LW(0), 3)
EVT_EXEC(N(8021B77C))
EVT_WAIT_FRAMES(11)
EVT_SET(LW(0), 4)
EVT_EXEC(N(8021B77C))
EVT_WAIT_FRAMES(11)
EVT_SET(LW(0), 5)
EVT_EXEC(N(8021B77C))
EVT_WAIT_FRAMES(11)
EVT_SET(LW(0), 6)
EVT_EXEC(N(8021B77C))
EVT_LABEL(0)
EVT_IS_THREAD_RUNNING(LW(10), LW(0))
EVT_WAIT_FRAMES(1)
EVT_IF_EQ(LW(0), 1)
EVT_GOTO(0)
EVT_END_IF
EVT_CALL(EnemyTestTarget, ACTOR_SELF, LW(0), 0, 0, 1, BS_FLAGS1_10)
EVT_SWITCH(LW(0))
EVT_CASE_OR_EQ(HIT_RESULT_MISS)
EVT_CASE_OR_EQ(HIT_RESULT_LUCKY)
EVT_SET(LW(10), LW(0))
EVT_THREAD
EVT_CALL(PlaySoundAtPart, ACTOR_SELF, 2, 0x20CB)
EVT_CALL(SetAnimation, ACTOR_SELF, 2, NPC_ANIM_bzzap_Palette_00_Anim_4)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(AddGoalPos, ACTOR_SELF, -30, -20, 1)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetPartMoveSpeed, ACTOR_SELF, 2, EVT_FLOAT(3.0))
EVT_CALL(FlyPartTo, ACTOR_SELF, 2, LW(0), LW(1), LW(2), 0, -10, 0)
EVT_CALL(SetAnimation, ACTOR_SELF, 2, NPC_ANIM_bzzap_Palette_00_Anim_3)
EVT_CALL(SetPartYaw, ACTOR_SELF, 2, 180)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(1), 100)
EVT_ADD(LW(2), 100)
EVT_CALL(AddActorDecoration, ACTOR_SELF, 2, 0, 2)
EVT_CALL(FlyPartTo, ACTOR_SELF, 2, LW(0), LW(1), LW(2), 0, 10, 0)
EVT_CALL(RemoveActorDecoration, ACTOR_SELF, 2, 0)
EVT_CALL(SetPartFlagBits, ACTOR_SELF, 2, ACTOR_PART_FLAG_INVISIBLE, 1)
EVT_END_THREAD
EVT_WAIT_FRAMES(11)
EVT_THREAD
EVT_CALL(PlaySoundAtPart, ACTOR_SELF, 3, 0x20CB)
EVT_CALL(SetAnimation, ACTOR_SELF, 3, NPC_ANIM_bzzap_Palette_00_Anim_4)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(AddGoalPos, ACTOR_SELF, -30, -20, 1)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetPartMoveSpeed, ACTOR_SELF, 3, EVT_FLOAT(3.0))
EVT_CALL(FlyPartTo, ACTOR_SELF, 3, LW(0), LW(1), LW(2), 0, -10, 0)
EVT_CALL(SetAnimation, ACTOR_SELF, 3, NPC_ANIM_bzzap_Palette_00_Anim_3)
EVT_CALL(SetPartYaw, ACTOR_SELF, 3, 180)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(1), 100)
EVT_ADD(LW(2), 100)
EVT_CALL(AddActorDecoration, ACTOR_SELF, 3, 0, 2)
EVT_CALL(FlyPartTo, ACTOR_SELF, 3, LW(0), LW(1), LW(2), 0, 10, 0)
EVT_CALL(RemoveActorDecoration, ACTOR_SELF, 3, 0)
EVT_CALL(SetPartFlagBits, ACTOR_SELF, 3, ACTOR_PART_FLAG_INVISIBLE, 1)
EVT_END_THREAD
EVT_WAIT_FRAMES(11)
EVT_THREAD
EVT_CALL(PlaySoundAtPart, ACTOR_SELF, 4, 0x20CB)
EVT_CALL(SetAnimation, ACTOR_SELF, 4, NPC_ANIM_bzzap_Palette_00_Anim_4)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(AddGoalPos, ACTOR_SELF, -30, -20, 1)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetPartMoveSpeed, ACTOR_SELF, 4, EVT_FLOAT(3.0))
EVT_CALL(FlyPartTo, ACTOR_SELF, 4, LW(0), LW(1), LW(2), 0, -10, 0)
EVT_CALL(SetAnimation, ACTOR_SELF, 4, NPC_ANIM_bzzap_Palette_00_Anim_3)
EVT_CALL(SetPartYaw, ACTOR_SELF, 4, 180)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(1), 100)
EVT_ADD(LW(2), 100)
EVT_CALL(AddActorDecoration, ACTOR_SELF, 4, 0, 2)
EVT_CALL(FlyPartTo, ACTOR_SELF, 4, LW(0), LW(1), LW(2), 0, 10, 0)
EVT_CALL(RemoveActorDecoration, ACTOR_SELF, 4, 0)
EVT_CALL(SetPartFlagBits, ACTOR_SELF, 4, ACTOR_PART_FLAG_INVISIBLE, 1)
EVT_END_THREAD
EVT_WAIT_FRAMES(11)
EVT_THREAD
EVT_CALL(PlaySoundAtPart, ACTOR_SELF, 5, 0x20CB)
EVT_CALL(SetAnimation, ACTOR_SELF, 5, NPC_ANIM_bzzap_Palette_00_Anim_4)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(AddGoalPos, ACTOR_SELF, -30, -20, 1)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetPartMoveSpeed, ACTOR_SELF, 5, EVT_FLOAT(3.0))
EVT_CALL(FlyPartTo, ACTOR_SELF, 5, LW(0), LW(1), LW(2), 0, -10, 0)
EVT_CALL(SetAnimation, ACTOR_SELF, 5, NPC_ANIM_bzzap_Palette_00_Anim_3)
EVT_CALL(SetPartYaw, ACTOR_SELF, 5, 180)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(1), 100)
EVT_ADD(LW(2), 100)
EVT_CALL(AddActorDecoration, ACTOR_SELF, 5, 0, 2)
EVT_CALL(FlyPartTo, ACTOR_SELF, 5, LW(0), LW(1), LW(2), 0, 10, 0)
EVT_CALL(RemoveActorDecoration, ACTOR_SELF, 5, 0)
EVT_CALL(SetPartFlagBits, ACTOR_SELF, 5, ACTOR_PART_FLAG_INVISIBLE, 1)
EVT_END_THREAD
EVT_WAIT_FRAMES(11)
EVT_THREAD
EVT_CALL(PlaySoundAtPart, ACTOR_SELF, 6, 0x20CB)
EVT_CALL(SetAnimation, ACTOR_SELF, 6, NPC_ANIM_bzzap_Palette_00_Anim_4)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(AddGoalPos, ACTOR_SELF, -30, -20, 1)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetPartMoveSpeed, ACTOR_SELF, 6, EVT_FLOAT(3.0))
EVT_CALL(FlyPartTo, ACTOR_SELF, 6, LW(0), LW(1), LW(2), 0, -10, 0)
EVT_CALL(SetAnimation, ACTOR_SELF, 6, NPC_ANIM_bzzap_Palette_00_Anim_3)
EVT_CALL(SetPartYaw, ACTOR_SELF, 6, 180)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(1), 100)
EVT_ADD(LW(2), 100)
EVT_CALL(AddActorDecoration, ACTOR_SELF, 6, 0, 2)
EVT_CALL(FlyPartTo, ACTOR_SELF, 6, LW(0), LW(1), LW(2), 0, 10, 0)
EVT_CALL(RemoveActorDecoration, ACTOR_SELF, 6, 0)
EVT_CALL(SetPartFlagBits, ACTOR_SELF, 6, ACTOR_PART_FLAG_INVISIBLE, 1)
EVT_END_THREAD
EVT_WAIT_FRAMES(11)
EVT_IF_EQ(LW(10), HIT_RESULT_LUCKY)
EVT_CALL(EnemyTestTarget, ACTOR_SELF, LW(0), DAMAGE_TYPE_TRIGGER_LUCKY, 0, 0, 0)
EVT_END_IF
EVT_WAIT_FRAMES(30)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_WAIT_FRAMES(30)
EVT_CALL(StopSound, 856)
EVT_CALL(YieldTurn)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_RETURN
EVT_END_CASE_GROUP
EVT_END_SWITCH
EVT_THREAD
EVT_CALL(PlaySoundAtPart, ACTOR_SELF, 2, 0x20CB)
EVT_CALL(SetAnimation, ACTOR_SELF, 2, NPC_ANIM_bzzap_Palette_00_Anim_4)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(AddGoalPos, ACTOR_SELF, -10, -10, 1)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetPartMoveSpeed, ACTOR_SELF, 2, EVT_FLOAT(3.0))
EVT_CALL(FlyPartTo, ACTOR_SELF, 2, LW(0), LW(1), LW(2), 0, -10, 0)
EVT_WAIT_FRAMES(2)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LW(0), DAMAGE_TYPE_NO_CONTACT, 0, 0, 1, BS_FLAGS1_10)
EVT_CALL(SetAnimation, ACTOR_SELF, 2, NPC_ANIM_bzzap_Palette_00_Anim_3)
EVT_CALL(SetPartYaw, ACTOR_SELF, 2, 180)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(1), 100)
EVT_ADD(LW(2), 100)
EVT_CALL(FlyPartTo, ACTOR_SELF, 2, LW(0), LW(1), LW(2), 0, 10, 0)
EVT_CALL(SetPartFlagBits, ACTOR_SELF, 2, ACTOR_PART_FLAG_INVISIBLE, 1)
EVT_END_THREAD
EVT_WAIT_FRAMES(11)
EVT_THREAD
EVT_CALL(PlaySoundAtPart, ACTOR_SELF, 3, 0x20CB)
EVT_CALL(SetAnimation, ACTOR_SELF, 3, NPC_ANIM_bzzap_Palette_00_Anim_4)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(AddGoalPos, ACTOR_SELF, -10, -10, 1)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetPartMoveSpeed, ACTOR_SELF, 3, EVT_FLOAT(3.0))
EVT_CALL(FlyPartTo, ACTOR_SELF, 3, LW(0), LW(1), LW(2), 0, -10, 0)
EVT_WAIT_FRAMES(2)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LW(0), DAMAGE_TYPE_NO_CONTACT, 0, 0, 1, BS_FLAGS1_40)
EVT_CALL(SetAnimation, ACTOR_SELF, 3, NPC_ANIM_bzzap_Palette_00_Anim_3)
EVT_CALL(SetPartYaw, ACTOR_SELF, 3, 180)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(1), 100)
EVT_ADD(LW(2), 100)
EVT_CALL(FlyPartTo, ACTOR_SELF, 3, LW(0), LW(1), LW(2), 0, 10, 0)
EVT_CALL(SetPartFlagBits, ACTOR_SELF, 3, ACTOR_PART_FLAG_INVISIBLE, 1)
EVT_END_THREAD
EVT_WAIT_FRAMES(11)
EVT_THREAD
EVT_CALL(PlaySoundAtPart, ACTOR_SELF, 4, 0x20CB)
EVT_CALL(SetAnimation, ACTOR_SELF, 4, NPC_ANIM_bzzap_Palette_00_Anim_4)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(AddGoalPos, ACTOR_SELF, -10, -10, 1)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetPartMoveSpeed, ACTOR_SELF, 4, EVT_FLOAT(3.0))
EVT_CALL(FlyPartTo, ACTOR_SELF, 4, LW(0), LW(1), LW(2), 0, -10, 0)
EVT_WAIT_FRAMES(2)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LW(0), DAMAGE_TYPE_NO_CONTACT, 0, 0, 1, BS_FLAGS1_40)
EVT_CALL(SetAnimation, ACTOR_SELF, 4, NPC_ANIM_bzzap_Palette_00_Anim_3)
EVT_CALL(SetPartYaw, ACTOR_SELF, 4, 180)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(1), 100)
EVT_ADD(LW(2), 100)
EVT_CALL(FlyPartTo, ACTOR_SELF, 4, LW(0), LW(1), LW(2), 0, 10, 0)
EVT_CALL(SetPartFlagBits, ACTOR_SELF, 4, ACTOR_PART_FLAG_INVISIBLE, 1)
EVT_END_THREAD
EVT_WAIT_FRAMES(11)
EVT_THREAD
EVT_CALL(PlaySoundAtPart, ACTOR_SELF, 5, 0x20CB)
EVT_CALL(SetAnimation, ACTOR_SELF, 5, NPC_ANIM_bzzap_Palette_00_Anim_4)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(AddGoalPos, ACTOR_SELF, -10, -10, 1)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetPartMoveSpeed, ACTOR_SELF, 5, EVT_FLOAT(3.0))
EVT_CALL(FlyPartTo, ACTOR_SELF, 5, LW(0), LW(1), LW(2), 0, -10, 0)
EVT_WAIT_FRAMES(2)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LW(0), DAMAGE_TYPE_NO_CONTACT, 0, 0, 1, BS_FLAGS1_40)
EVT_CALL(SetAnimation, ACTOR_SELF, 5, NPC_ANIM_bzzap_Palette_00_Anim_3)
EVT_CALL(SetPartYaw, ACTOR_SELF, 5, 180)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(1), 100)
EVT_ADD(LW(2), 100)
EVT_CALL(FlyPartTo, ACTOR_SELF, 5, LW(0), LW(1), LW(2), 0, 10, 0)
EVT_CALL(SetPartFlagBits, ACTOR_SELF, 5, ACTOR_PART_FLAG_INVISIBLE, 1)
EVT_END_THREAD
EVT_WAIT_FRAMES(11)
EVT_WAIT_FRAMES(1)
EVT_CALL(PlaySoundAtPart, ACTOR_SELF, 6, 0x20CB)
EVT_CALL(SetAnimation, ACTOR_SELF, 6, NPC_ANIM_bzzap_Palette_00_Anim_4)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(AddGoalPos, ACTOR_SELF, -10, -10, 1)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetPartMoveSpeed, ACTOR_SELF, 6, EVT_FLOAT(3.0))
EVT_CALL(FlyPartTo, ACTOR_SELF, 6, LW(0), LW(1), LW(2), 0, -10, 0)
EVT_WAIT_FRAMES(2)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LW(0), DAMAGE_TYPE_NO_CONTACT, 0, 0, 1, BS_FLAGS1_SP_EVT_ACTIVE)
EVT_SWITCH(LW(0))
EVT_CASE_OR_EQ(HIT_RESULT_HIT)
EVT_CASE_OR_EQ(HIT_RESULT_QUAKE_IMMUNE)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(SetAnimation, ACTOR_SELF, 6, NPC_ANIM_bzzap_Palette_00_Anim_3)
EVT_CALL(SetPartYaw, ACTOR_SELF, 6, 180)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(1), 100)
EVT_ADD(LW(2), 100)
EVT_CALL(FlyPartTo, ACTOR_SELF, 6, LW(0), LW(1), LW(2), 0, 10, 0)
EVT_CALL(SetPartFlagBits, ACTOR_SELF, 6, ACTOR_PART_FLAG_INVISIBLE, 1)
EVT_CALL(StopSound, 856)
EVT_CALL(YieldTurn)
EVT_END_CASE_GROUP
EVT_END_SWITCH
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_RETURN
EVT_END
};
EvtScript N(takeTurn_8021D28C) = {
EVT_CALL(GetBattlePhase, LW(0))
EVT_IF_EQ(LW(0), PHASE_FIRST_STRIKE)
EVT_EXEC_WAIT(N(8021B28C))
EVT_RETURN
EVT_END_IF
EVT_CALL(RandInt, 1000, LW(0))
EVT_IF_LT(LW(0), 500)
EVT_EXEC_WAIT(N(8021B28C))
EVT_ELSE
EVT_EXEC_WAIT(N(8021BC74))
EVT_END_IF
EVT_RETURN
EVT_END
};

View File

@ -0,0 +1,661 @@
#include "common.h"
#include "effects.h"
#include "battle/battle.h"
#include "script_api/battle.h"
#include "sprite/npc/fuzzy.h"
#define NAMESPACE b_area_mim_forest_fuzzy
extern s32 N(idleAnimations_802184C4)[];
extern EvtScript N(init_80218510);
extern EvtScript N(takeTurn_8021A61C);
extern EvtScript N(idle_80218574);
extern EvtScript N(handleEvent_80218584);
extern Formation N(specialFormation_8021A800);
s32 N(defenseTable_802183C0)[] = {
ELEMENT_NORMAL, 0,
ELEMENT_END,
};
s32 N(statusTable_802183CC)[] = {
STATUS_NORMAL, 0,
STATUS_DEFAULT, 0,
STATUS_SLEEP, 95,
STATUS_POISON, 90,
STATUS_FROZEN, 0,
STATUS_DIZZY, 90,
STATUS_FEAR, 0,
STATUS_STATIC, 70,
STATUS_PARALYZE, 75,
STATUS_SHRINK, 75,
STATUS_STOP, 90,
STATUS_DEFAULT_TURN_MOD, 0,
STATUS_SLEEP_TURN_MOD, -1,
STATUS_POISON_TURN_MOD, 0,
STATUS_FROZEN_TURN_MOD, 0,
STATUS_DIZZY_TURN_MOD, 0,
STATUS_FEAR_TURN_MOD, 0,
STATUS_STATIC_TURN_MOD, 0,
STATUS_PARALYZE_TURN_MOD, 0,
STATUS_SHRINK_TURN_MOD, 0,
STATUS_STOP_TURN_MOD, 0,
STATUS_END,
};
ActorPartBlueprint N(partsTable_80218478)[] = {
{
.flags = ACTOR_PART_FLAG_MULTI_TARGET,
.index = 1,
.posOffset = { 0, 0, 0 },
.targetOffset = { 0, 20 },
.opacity = 255,
.idleAnimations = N(idleAnimations_802184C4),
.defenseTable = N(defenseTable_802183C0),
.eventFlags = ACTOR_EVENT_FLAG_0,
.elementImmunityFlags = 0,
.unk_1C = 246,
},
};
ActorBlueprint NAMESPACE = {
.flags = 0,
.type = ACTOR_TYPE_FOREST_FUZZY,
.level = 11,
.maxHP = 6,
.partCount = ARRAY_COUNT(N(partsTable_80218478)),
.partsData = N(partsTable_80218478),
.script = N(init_80218510),
.statusTable = N(statusTable_802183CC),
.escapeChance = 40,
.airLiftChance = 90,
.spookChance = 90,
.baseStatusChance = 85,
.upAndAwayChance = 95,
.spinSmashReq = 0,
.powerBounceChance = 100,
.coinReward = 1,
.size = { 33, 28 },
.hpBarOffset = { 0, 0 },
.statusIconOffset = { -10, 20 },
.statusMessageOffset = { 10, 20 },
};
s32 N(idleAnimations_802184C4)[] = {
STATUS_NORMAL, NPC_ANIM_fuzzy_Palette_01_Anim_1,
STATUS_STONE, NPC_ANIM_fuzzy_Palette_01_Anim_0,
STATUS_SLEEP, NPC_ANIM_fuzzy_Palette_01_Anim_E,
STATUS_POISON, NPC_ANIM_fuzzy_Palette_01_Anim_1,
STATUS_STOP, NPC_ANIM_fuzzy_Palette_01_Anim_0,
STATUS_STATIC, NPC_ANIM_fuzzy_Palette_01_Anim_1,
STATUS_PARALYZE, NPC_ANIM_fuzzy_Palette_01_Anim_0,
STATUS_DIZZY, NPC_ANIM_fuzzy_Palette_01_Anim_F,
STATUS_FEAR, NPC_ANIM_fuzzy_Palette_01_Anim_F,
STATUS_END,
};
EvtScript N(init_80218510) = {
EVT_CALL(BindTakeTurn, ACTOR_SELF, EVT_ADDR(N(takeTurn_8021A61C)))
EVT_CALL(BindIdle, ACTOR_SELF, EVT_ADDR(N(idle_80218574)))
EVT_CALL(BindHandleEvent, ACTOR_SELF, EVT_ADDR(N(handleEvent_80218584)))
EVT_CALL(SetActorVar, ACTOR_SELF, 0, 0)
EVT_RETURN
EVT_END
};
EvtScript N(idle_80218574) = {
EVT_RETURN
EVT_END
};
EvtScript N(handleEvent_80218584) = {
EVT_CALL(UseIdleAnimation, ACTOR_SELF, FALSE)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 0)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, 0, 0)
EVT_CALL(GetLastEvent, ACTOR_SELF, LW(0))
EVT_SWITCH(LW(0))
EVT_CASE_OR_EQ(EVENT_HIT_COMBO)
EVT_CASE_OR_EQ(EVENT_HIT)
EVT_CALL(GetLastElement, LW(0))
EVT_IF_FLAG(LW(0), DAMAGE_TYPE_ELECTRIC)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_fuzzy_Palette_01_Anim_13)
EVT_ELSE
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_fuzzy_Palette_01_Anim_8)
EVT_END_IF
EVT_EXEC_WAIT(DoNormalHit)
EVT_END_CASE_GROUP
EVT_CASE_EQ(EVENT_BURN_HIT)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_fuzzy_Palette_01_Anim_10)
EVT_SET_CONST(LW(2), NPC_ANIM_fuzzy_Palette_01_Anim_12)
EVT_EXEC_WAIT(DoBurnHit)
EVT_CASE_EQ(EVENT_BURN_DEATH)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_fuzzy_Palette_01_Anim_10)
EVT_SET_CONST(LW(2), NPC_ANIM_fuzzy_Palette_01_Anim_12)
EVT_EXEC_WAIT(DoBurnHit)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_fuzzy_Palette_01_Anim_12)
EVT_EXEC_WAIT(DoDeath)
EVT_RETURN
EVT_CASE_EQ(EVENT_SPIN_SMASH_HIT)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_fuzzy_Palette_01_Anim_8)
EVT_EXEC_WAIT(DoSpinSmashHit)
EVT_CASE_EQ(EVENT_SPIN_SMASH_DEATH)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_fuzzy_Palette_01_Anim_8)
EVT_EXEC_WAIT(DoSpinSmashHit)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_fuzzy_Palette_01_Anim_8)
EVT_EXEC_WAIT(DoDeath)
EVT_RETURN
EVT_CASE_EQ(EVENT_SHOCK_HIT)
EVT_CALL(func_80269470)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_fuzzy_Palette_01_Anim_13)
EVT_EXEC_WAIT(DoShockHit)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_fuzzy_Palette_01_Anim_13)
EVT_EXEC_WAIT(DoJumpBack)
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_fuzzy_Palette_01_Anim_3)
EVT_EXEC_WAIT(D_8029C0A4)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CASE_EQ(EVENT_SHOCK_DEATH)
EVT_CALL(func_80269470)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_fuzzy_Palette_01_Anim_13)
EVT_EXEC_WAIT(DoShockHit)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_fuzzy_Palette_01_Anim_13)
EVT_EXEC_WAIT(DoDeath)
EVT_RETURN
EVT_CASE_OR_EQ(EVENT_UNKNOWN_TRIGGER)
EVT_CASE_OR_EQ(EVENT_IMMUNE)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_fuzzy_Palette_01_Anim_1)
EVT_EXEC_WAIT(DoImmune)
EVT_END_CASE_GROUP
EVT_CASE_EQ(EVENT_DEATH)
EVT_CALL(GetLastElement, LW(0))
EVT_IF_FLAG(LW(0), DAMAGE_TYPE_ELECTRIC)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_fuzzy_Palette_01_Anim_13)
EVT_EXEC_WAIT(DoNormalHit)
EVT_WAIT_FRAMES(10)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_fuzzy_Palette_01_Anim_13)
EVT_EXEC_WAIT(DoDeath)
EVT_ELSE
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_fuzzy_Palette_01_Anim_8)
EVT_EXEC_WAIT(DoNormalHit)
EVT_WAIT_FRAMES(10)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_fuzzy_Palette_01_Anim_8)
EVT_EXEC_WAIT(DoDeath)
EVT_END_IF
EVT_RETURN
EVT_CASE_EQ(EVENT_RECOVER_STATUS)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_fuzzy_Palette_01_Anim_1)
EVT_EXEC_WAIT(DoRecover)
EVT_CASE_EQ(EVENT_SCARE_AWAY)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_fuzzy_Palette_01_Anim_3)
EVT_SET_CONST(LW(2), NPC_ANIM_fuzzy_Palette_01_Anim_9)
EVT_EXEC_WAIT(DoScareAway)
EVT_RETURN
EVT_CASE_EQ(EVENT_BEGIN_AIR_LIFT)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_fuzzy_Palette_01_Anim_3)
EVT_EXEC_WAIT(DoAirLift)
EVT_CASE_EQ(EVENT_BLOW_AWAY)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_fuzzy_Palette_01_Anim_3)
EVT_EXEC_WAIT(DoBlowAway)
EVT_RETURN
EVT_CASE_EQ(EVENT_AIR_LIFT_FAILED)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_fuzzy_Palette_01_Anim_1)
EVT_EXEC_WAIT(DoImmune)
EVT_CASE_DEFAULT
EVT_END_SWITCH
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_RETURN
EVT_END
};
EvtScript N(80218C48) = {
EVT_CALL(UseIdleAnimation, ACTOR_SELF, FALSE)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 0)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_19)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetBattleCamTarget, LW(0), LW(1), LW(2))
EVT_CALL(SetBattleCamZoom, 330)
EVT_CALL(SetBattleCamOffsetZ, 30)
EVT_CALL(MoveBattleCamOver, 20)
EVT_WAIT_FRAMES(20)
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, 0, 0)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_B)
EVT_THREAD
EVT_WAIT_FRAMES(30)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x206E)
EVT_WAIT_FRAMES(30)
EVT_LOOP(4)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x206F)
EVT_WAIT_FRAMES(11)
EVT_END_LOOP
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x2070)
EVT_END_THREAD
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_fuzzy_Palette_01_Anim_D)
EVT_WAIT_FRAMES(130)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_fuzzy_Palette_01_Anim_2)
EVT_CALL(SummonEnemy, EVT_ADDR(N(specialFormation_8021A800)), 0)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(1), LW(2), LW(3))
EVT_CALL(SetActorPos, LW(0), LW(1), LW(2), LW(3))
EVT_CALL(SetGoalToIndex, LW(0), LW(10))
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(MoveBattleCamOver, 20)
EVT_THREAD
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_fuzzy_Palette_01_Anim_2)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.4))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(1), LW(2), LW(3))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(1), LW(2), LW(3))
EVT_CALL(JumpToGoal, ACTOR_SELF, 14, FALSE, TRUE, FALSE)
EVT_END_THREAD
EVT_WAIT_FRAMES(1)
EVT_CALL(SetAnimation, LW(0), 1, NPC_ANIM_fuzzy_Palette_01_Anim_2)
EVT_CALL(SetActorJumpGravity, LW(0), EVT_FLOAT(1.4))
EVT_CALL(JumpToGoal, LW(0), 14, FALSE, TRUE, FALSE)
EVT_CALL(GetActorPos, LW(0), LW(1), LW(2), LW(3))
EVT_CALL(ForceHomePos, LW(0), LW(1), LW(2), LW(3))
EVT_CALL(HPBarToHome, LW(0))
EVT_CALL(SetAnimation, LW(0), 1, NPC_ANIM_fuzzy_Palette_01_Anim_1)
EVT_CALL(GetActorVar, ACTOR_SELF, 0, LW(1))
EVT_SWITCH(LW(1))
EVT_CASE_EQ(0)
EVT_CALL(SetActorVar, LW(0), 0, 1)
EVT_CASE_EQ(1)
EVT_CALL(SetActorVar, LW(0), 0, 2)
EVT_END_SWITCH
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_RETURN
EVT_END
};
#include "common/UnkBattleFunc2.inc.c"
EvtScript N(80219054) = {
EVT_CALL(UseIdleAnimation, ACTOR_SELF, FALSE)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 0)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_63)
EVT_CALL(BattleCamTargetActor, ACTOR_SELF)
EVT_CALL(func_8024ECF8, -1, 1, 0)
EVT_CALL(GetBattlePhase, LW(0))
EVT_IF_EQ(LW(0), PHASE_FIRST_STRIKE)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 50)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_GOTO(100)
EVT_END_IF
EVT_CALL(SetTargetActor, ACTOR_SELF, ACTOR_PLAYER)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_fuzzy_Palette_01_Anim_3)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 50)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(6.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_EXEC_WAIT(D_8029C12C)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_fuzzy_Palette_01_Anim_1)
EVT_LABEL(100)
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, 10, 0)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_fuzzy_Palette_01_Anim_4)
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, 9, 0)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, 8, 0)
EVT_WAIT_FRAMES(5)
EVT_CALL(EnemyTestTarget, ACTOR_SELF, LW(0), DAMAGE_TYPE_IGNORE_DEFENSE, 0, 1, BS_FLAGS1_10)
EVT_SWITCH(LW(0))
EVT_CASE_OR_EQ(HIT_RESULT_MISS)
EVT_CASE_OR_EQ(HIT_RESULT_LUCKY)
EVT_SET(LW(10), LW(0))
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 5)
EVT_SET(LW(1), 0)
EVT_SUB(LW(2), 5)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(3.0))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_fuzzy_Palette_01_Anim_5)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 11, FALSE, TRUE, FALSE)
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, 0, 0)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_fuzzy_Palette_01_Anim_9)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 20)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(3.0))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 6, FALSE, TRUE, FALSE)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 15)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(3.0))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_WAIT_FRAMES(4)
EVT_WAIT_FRAMES(5)
EVT_IF_EQ(LW(10), HIT_RESULT_LUCKY)
EVT_CALL(EnemyTestTarget, ACTOR_SELF, LW(0), DAMAGE_TYPE_TRIGGER_LUCKY, 0, 0, 0)
EVT_END_IF
EVT_WAIT_FRAMES(5)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(YieldTurn)
EVT_CALL(SetActorYaw, ACTOR_SELF, 180)
EVT_CALL(AddActorDecoration, ACTOR_SELF, 1, 0, 2)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_fuzzy_Palette_01_Anim_3)
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(8.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_EXEC_WAIT(D_8029C12C)
EVT_CALL(RemoveActorDecoration, ACTOR_SELF, 1, 0)
EVT_CALL(SetActorYaw, ACTOR_SELF, 0)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_RETURN
EVT_END_CASE_GROUP
EVT_CASE_EQ(HIT_RESULT_HIT_STATIC)
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(0))
EVT_IF_FLAG(LW(0), STATUS_FLAG_STATIC)
EVT_SET(LF(0), 0)
EVT_ELSE
EVT_SET(LF(0), 1)
EVT_END_IF
EVT_END_SWITCH
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(AddGoalPos, ACTOR_SELF, -3, -12, -15)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(3.0))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_fuzzy_Palette_01_Anim_5)
EVT_CALL(JumpToGoal, ACTOR_SELF, 8, FALSE, TRUE, FALSE)
EVT_IF_EQ(LF(0), 1)
EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LW(0), DAMAGE_TYPE_IGNORE_DEFENSE, 0, 0, 0, BS_FLAGS1_SP_EVT_ACTIVE)
EVT_RETURN
EVT_END_IF
EVT_WAIT_FRAMES(10)
EVT_CALL(UseIdleAnimation, ACTOR_PLAYER, FALSE)
EVT_CALL(SetAnimation, ACTOR_PLAYER, 0, 0x03000C)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x3E0)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_fuzzy_Palette_01_Anim_7)
EVT_WAIT_FRAMES(21)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_fuzzy_Palette_01_Anim_0)
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 330)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x3E0)
EVT_CALL(SetActorDispOffset, ACTOR_SELF, -3, -2, 0)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(0.9), EVT_FLOAT(1.2), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(0.8), EVT_FLOAT(1.3), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(0.7), EVT_FLOAT(1.4), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(0.7), EVT_FLOAT(1.5), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(2)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(0.6), EVT_FLOAT(1.6), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(10)
EVT_WAIT_FRAMES(2)
EVT_CALL(UseIdleAnimation, ACTOR_PLAYER, TRUE)
EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LW(10), DAMAGE_TYPE_IGNORE_DEFENSE, 0, 0, 1, BS_FLAGS1_SP_EVT_ACTIVE)
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, 0, 0)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_fuzzy_Palette_01_Anim_1)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(GetLastDamage, ACTOR_PLAYER, LW(3))
EVT_IF_NE(LW(3), 0)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x206D)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x214)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(1), 10)
EVT_CALL(N(UnkBattleFunc2), LW(0), LW(1), LW(2), LW(3))
EVT_THREAD
EVT_WAIT_FRAMES(15)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, SOUND_25C)
EVT_CALL(N(UnkBattleFunc2_2), LW(0), LW(1), LW(2), LW(3))
EVT_END_THREAD
EVT_ADD(LW(0), 20)
EVT_ADD(LW(1), 20)
EVT_CALL(PlayEffect, EFFECT_ID_40, 0, LW(0), LW(1), LW(2), LW(3), 0, 0, 0, 0, 0, 0, 0, 0)
EVT_CALL(GetActorHP, ACTOR_SELF, LW(0))
EVT_ADD(LW(0), LW(3))
EVT_CALL(SetEnemyHP, ACTOR_SELF, LW(0))
EVT_END_IF
EVT_THREAD
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.6), EVT_FLOAT(0.6), EVT_FLOAT(1.0))
EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 10, 0)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 330)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(0.7), EVT_FLOAT(1.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 300)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 270)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(0.7), EVT_FLOAT(1.0))
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 240)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 210)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(0.7), EVT_FLOAT(1.4), EVT_FLOAT(1.0))
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 180)
EVT_WAIT_FRAMES(2)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(0.7), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(2)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.2), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_END_THREAD
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 40)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.4), EVT_FLOAT(0.2), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_THREAD
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.2), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 150)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 120)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 90)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 60)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 30)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 0)
EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 0, 0)
EVT_END_THREAD
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 30)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 8, FALSE, TRUE, FALSE)
EVT_WAIT_FRAMES(5)
EVT_CALL(YieldTurn)
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, 0, 0)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_fuzzy_Palette_01_Anim_3)
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(8.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_EXEC_WAIT(D_8029C12C)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_fuzzy_Palette_01_Anim_1)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_RETURN
EVT_END
};
EvtScript N(8021A0D4) = {
EVT_SET(LF(1), 0)
EVT_SET(LF(2), 0)
EVT_SET(LF(3), 0)
EVT_SET(LF(4), 0)
EVT_CALL(EnemyCreateTargetList, 32770)
EVT_CALL(InitTargetIterator)
EVT_LABEL(0)
EVT_CALL(GetOwnerTarget, LW(0), LW(5))
EVT_CALL(GetIndexFromHome, LW(0), LW(5))
EVT_MOD(LW(5), 4)
EVT_SWITCH(LW(5))
EVT_CASE_EQ(0)
EVT_SET(LF(1), 1)
EVT_CASE_EQ(1)
EVT_SET(LF(2), 1)
EVT_CASE_EQ(2)
EVT_SET(LF(3), 1)
EVT_CASE_EQ(3)
EVT_SET(LF(4), 1)
EVT_END_SWITCH
EVT_CALL(ChooseNextTarget, 0, LW(0))
EVT_IF_NE(LW(0), -1)
EVT_GOTO(0)
EVT_END_IF
EVT_SET(LW(10), -1)
EVT_SET(LW(11), -1)
EVT_CALL(GetIndexFromHome, ACTOR_SELF, LW(0))
EVT_SWITCH(LW(0))
EVT_CASE_EQ(0)
EVT_IF_EQ(LF(2), 0)
EVT_SET(LW(10), 1)
EVT_END_IF
EVT_CASE_EQ(1)
EVT_IF_EQ(LF(1), 0)
EVT_SET(LW(10), 0)
EVT_END_IF
EVT_IF_EQ(LF(3), 0)
EVT_IF_EQ(LW(10), -1)
EVT_SET(LW(10), 2)
EVT_ELSE
EVT_SET(LW(11), 2)
EVT_END_IF
EVT_END_IF
EVT_CASE_EQ(2)
EVT_IF_EQ(LF(2), 0)
EVT_SET(LW(10), 1)
EVT_END_IF
EVT_IF_EQ(LF(4), 0)
EVT_IF_EQ(LW(10), -1)
EVT_SET(LW(10), 3)
EVT_ELSE
EVT_SET(LW(11), 3)
EVT_END_IF
EVT_END_IF
EVT_CASE_EQ(3)
EVT_IF_EQ(LF(3), 0)
EVT_SET(LW(10), 2)
EVT_END_IF
EVT_END_SWITCH
EVT_IF_NE(LW(11), -1)
EVT_CALL(RandInt, 1000, LW(0))
EVT_IF_LT(LW(0), 500)
EVT_SET(LW(10), LW(11))
EVT_END_IF
EVT_END_IF
EVT_RETURN
EVT_END
};
EvtScript N(8021A45C) = {
EVT_SET(LW(9), 0)
EVT_CALL(EnemyCreateTargetList, 32770)
EVT_CALL(InitTargetIterator)
EVT_LABEL(0)
EVT_CALL(GetOwnerTarget, LW(0), LW(1))
EVT_CALL(GetOriginalActorType, LW(0), LW(2))
EVT_SWITCH(LW(2))
EVT_CASE_OR_EQ(ACTOR_TYPE_FOREST_FUZZY)
EVT_CASE_OR_EQ(ACTOR_TYPE_JUNGLE_FUZZY)
EVT_CALL(GetStatusFlags, LW(0), LW(3))
EVT_IF_NOT_FLAG(LW(3), STATUS_FLAG_SLEEP | STATUS_FLAG_FROZEN | STATUS_FLAG_FEAR | STATUS_FLAG_PARALYZE | STATUS_FLAG_DIZZY | STATUS_FLAG_STONE | STATUS_FLAG_STOP)
EVT_CALL(GetActorVar, LW(0), 0, LW(3))
EVT_IF_NE(LW(3), 2)
EVT_ADD(LW(9), 1)
EVT_END_IF
EVT_END_IF
EVT_END_CASE_GROUP
EVT_CASE_EQ(ACTOR_TYPE_SPEAR_GUY)
EVT_CALL(GetStatusFlags, LW(0), LW(3))
EVT_IF_NOT_FLAG(LW(3), STATUS_FLAG_SLEEP | STATUS_FLAG_FROZEN | STATUS_FLAG_FEAR | STATUS_FLAG_PARALYZE | STATUS_FLAG_DIZZY | STATUS_FLAG_STONE | STATUS_FLAG_STOP)
EVT_CALL(GetActorVar, LW(0), 1, LW(3))
EVT_IF_LT(LW(3), 2)
EVT_ADD(LW(9), 1)
EVT_END_IF
EVT_END_IF
EVT_END_SWITCH
EVT_CALL(ChooseNextTarget, 0, LW(0))
EVT_IF_NE(LW(0), -1)
EVT_GOTO(0)
EVT_END_IF
EVT_RETURN
EVT_END
};
EvtScript N(takeTurn_8021A61C) = {
EVT_CALL(GetBattlePhase, LW(0))
EVT_IF_EQ(LW(0), PHASE_FIRST_STRIKE)
EVT_EXEC_WAIT(N(80219054))
EVT_RETURN
EVT_END_IF
EVT_CALL(GetActorVar, ACTOR_SELF, 0, LW(0))
EVT_IF_EQ(LW(0), 2)
EVT_EXEC_WAIT(N(80219054))
EVT_RETURN
EVT_END_IF
EVT_EXEC_WAIT(N(8021A0D4))
EVT_IF_EQ(LW(10), -1)
EVT_EXEC_WAIT(N(80219054))
EVT_RETURN
EVT_END_IF
EVT_EXEC_WAIT(N(8021A45C))
EVT_SWITCH(LW(9))
EVT_CASE_EQ(1)
EVT_CALL(RandInt, 1000, LW(0))
EVT_IF_LT(LW(0), 300)
EVT_EXEC_WAIT(N(80218C48))
EVT_RETURN
EVT_END_IF
EVT_CASE_EQ(2)
EVT_CALL(RandInt, 1000, LW(0))
EVT_IF_LT(LW(0), 150)
EVT_EXEC_WAIT(N(80218C48))
EVT_RETURN
EVT_END_IF
EVT_CASE_EQ(3)
EVT_CALL(RandInt, 1000, LW(0))
EVT_IF_LT(LW(0), 100)
EVT_EXEC_WAIT(N(80218C48))
EVT_RETURN
EVT_END_IF
EVT_END_SWITCH
EVT_EXEC_WAIT(N(80219054))
EVT_RETURN
EVT_END
};
Vec3i N(vector3D_8021A7F4) = { 0, -1000, 0 };
Formation N(specialFormation_8021A800) = {
{ .actor = &NAMESPACE, .home = { .vec = &N(vector3D_8021A7F4) }},
};

View File

@ -0,0 +1,371 @@
#include "common.h"
#include "effects.h"
#include "battle/battle.h"
#include "script_api/battle.h"
#include "sprite/npc/piranha_plant.h"
#define NAMESPACE b_area_mim_piranha_plant
extern EvtScript N(init_8021D498);
extern EvtScript N(takeTurn_8021DCD4);
extern EvtScript N(idle_8021D4E4);
extern EvtScript N(handleEvent_8021D60C);
s32 N(idleAnimations_8021D330)[] = {
STATUS_NORMAL, NPC_ANIM_piranha_plant_Palette_00_Anim_1,
STATUS_STONE, NPC_ANIM_piranha_plant_Palette_00_Anim_0,
STATUS_SLEEP, NPC_ANIM_piranha_plant_Palette_00_Anim_0,
STATUS_POISON, NPC_ANIM_piranha_plant_Palette_00_Anim_1,
STATUS_STOP, NPC_ANIM_piranha_plant_Palette_00_Anim_0,
STATUS_STATIC, NPC_ANIM_piranha_plant_Palette_00_Anim_1,
STATUS_PARALYZE, NPC_ANIM_piranha_plant_Palette_00_Anim_0,
STATUS_DIZZY, NPC_ANIM_piranha_plant_Palette_00_Anim_1,
STATUS_FEAR, NPC_ANIM_piranha_plant_Palette_00_Anim_1,
STATUS_END,
};
s32 N(unk_missing_8021D37C)[] = {
STATUS_NORMAL, NPC_ANIM_piranha_plant_Palette_00_Anim_1,
STATUS_END,
};
s32 N(unk_missing_8021D388)[] = {
STATUS_NORMAL, NPC_ANIM_piranha_plant_Palette_00_Anim_6,
STATUS_END,
};
s32 N(defenseTable_8021D394)[] = {
ELEMENT_NORMAL, 0,
ELEMENT_END,
};
s32 N(statusTable_8021D3A0)[] = {
STATUS_NORMAL, 0,
STATUS_DEFAULT, 0,
STATUS_SLEEP, 95,
STATUS_POISON, 0,
STATUS_FROZEN, 0,
STATUS_DIZZY, 50,
STATUS_FEAR, 0,
STATUS_STATIC, 0,
STATUS_PARALYZE, 100,
STATUS_SHRINK, 80,
STATUS_STOP, 90,
STATUS_DEFAULT_TURN_MOD, 0,
STATUS_SLEEP_TURN_MOD, 1,
STATUS_POISON_TURN_MOD, 0,
STATUS_FROZEN_TURN_MOD, 0,
STATUS_DIZZY_TURN_MOD, 0,
STATUS_FEAR_TURN_MOD, 0,
STATUS_STATIC_TURN_MOD, 0,
STATUS_PARALYZE_TURN_MOD, 0,
STATUS_SHRINK_TURN_MOD, 0,
STATUS_STOP_TURN_MOD, 0,
STATUS_END,
};
ActorPartBlueprint N(partsTable_8021D44C)[] = {
{
.flags = ACTOR_PART_FLAG_MULTI_TARGET,
.index = 1,
.posOffset = { 0, 0, 0 },
.targetOffset = { 0, 35 },
.opacity = 255,
.idleAnimations = N(idleAnimations_8021D330),
.defenseTable = N(defenseTable_8021D394),
.eventFlags = ACTOR_EVENT_FLAG_SPIKY_TOP,
.elementImmunityFlags = 0,
.unk_1C = 246,
},
};
ActorBlueprint NAMESPACE = {
.flags = 0,
.type = ACTOR_TYPE_PIRANHA_PLANT,
.level = 11,
.maxHP = 5,
.partCount = ARRAY_COUNT(N(partsTable_8021D44C)),
.partsData = N(partsTable_8021D44C),
.script = N(init_8021D498),
.statusTable = N(statusTable_8021D3A0),
.escapeChance = 70,
.airLiftChance = 20,
.spookChance = 20,
.baseStatusChance = 40,
.upAndAwayChance = 95,
.spinSmashReq = 0,
.powerBounceChance = 90,
.coinReward = 1,
.size = { 38, 38 },
.hpBarOffset = { 0, 0 },
.statusIconOffset = { -7, 33 },
.statusMessageOffset = { 10, 33 },
};
EvtScript N(init_8021D498) = {
EVT_CALL(BindTakeTurn, ACTOR_SELF, EVT_ADDR(N(takeTurn_8021DCD4)))
EVT_CALL(BindIdle, ACTOR_SELF, EVT_ADDR(N(idle_8021D4E4)))
EVT_CALL(BindHandleEvent, ACTOR_SELF, EVT_ADDR(N(handleEvent_8021D60C)))
EVT_RETURN
EVT_END
};
EvtScript N(idle_8021D4E4) = {
EVT_RETURN
EVT_END
};
EvtScript N(8021D4F4) = {
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(MoveBattleCamOver, 20)
EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_NO_SHADOW, 1)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, SOUND_MOLE_DIG)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_piranha_plant_Palette_00_Anim_4)
EVT_WAIT_FRAMES(10)
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, SOUND_MOLE_SURFACE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_piranha_plant_Palette_00_Anim_3)
EVT_WAIT_FRAMES(10)
EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_NO_SHADOW, 0)
EVT_RETURN
EVT_END
};
EvtScript N(handleEvent_8021D60C) = {
EVT_CALL(UseIdleAnimation, ACTOR_SELF, FALSE)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 0)
EVT_CALL(GetLastEvent, ACTOR_SELF, LW(0))
EVT_SWITCH(LW(0))
EVT_CASE_OR_EQ(EVENT_HIT_COMBO)
EVT_CASE_OR_EQ(EVENT_HIT)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_piranha_plant_Palette_00_Anim_9)
EVT_EXEC_WAIT(DoNormalHit)
EVT_END_CASE_GROUP
EVT_CASE_EQ(EVENT_BURN_HIT)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_piranha_plant_Palette_00_Anim_A)
EVT_SET_CONST(LW(2), NPC_ANIM_piranha_plant_Palette_00_Anim_B)
EVT_EXEC_WAIT(DoBurnHit)
EVT_CASE_EQ(EVENT_BURN_DEATH)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_piranha_plant_Palette_00_Anim_A)
EVT_SET_CONST(LW(2), NPC_ANIM_piranha_plant_Palette_00_Anim_B)
EVT_EXEC_WAIT(DoBurnHit)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_piranha_plant_Palette_00_Anim_B)
EVT_EXEC_WAIT(DoDeath)
EVT_RETURN
EVT_CASE_EQ(EVENT_SPIN_SMASH_HIT)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_piranha_plant_Palette_00_Anim_9)
EVT_EXEC_WAIT(DoSpinSmashHit)
EVT_CASE_EQ(EVENT_SPIN_SMASH_DEATH)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_piranha_plant_Palette_00_Anim_9)
EVT_EXEC_WAIT(DoSpinSmashHit)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_piranha_plant_Palette_00_Anim_9)
EVT_EXEC_WAIT(DoDeath)
EVT_RETURN
EVT_CASE_EQ(EVENT_SHOCK_HIT)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_piranha_plant_Palette_00_Anim_9)
EVT_EXEC_WAIT(DoShockHit)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(4.0))
EVT_EXEC_WAIT(N(8021D4F4))
EVT_CASE_EQ(EVENT_SHOCK_DEATH)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_piranha_plant_Palette_00_Anim_9)
EVT_EXEC_WAIT(DoShockHit)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_piranha_plant_Palette_00_Anim_9)
EVT_EXEC_WAIT(DoDeath)
EVT_RETURN
EVT_CASE_OR_EQ(EVENT_UNKNOWN_TRIGGER)
EVT_CASE_OR_EQ(EVENT_IMMUNE)
EVT_CASE_OR_EQ(EVENT_AIR_LIFT_FAILED)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_piranha_plant_Palette_00_Anim_1)
EVT_EXEC_WAIT(DoImmune)
EVT_END_CASE_GROUP
EVT_CASE_EQ(EVENT_SPIKE_TAUNT)
EVT_THREAD
EVT_WAIT_FRAMES(10)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(3))
EVT_IF_FLAG(LW(3), STATUS_FLAG_SHRINK)
EVT_ADD(LW(0), 0)
EVT_ADD(LW(1), 14)
EVT_ELSE
EVT_ADD(LW(0), 0)
EVT_ADD(LW(1), 35)
EVT_END_IF
EVT_CALL(PlayEffect, EFFECT_ID_1A, 0, LW(0), LW(1), LW(2), 20, 0, 0, 0, 0, 0, 0, 0, 0)
EVT_WAIT_FRAMES(20)
EVT_END_THREAD
EVT_LOOP(40)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_piranha_plant_Palette_00_Anim_1)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_piranha_plant_Palette_00_Anim_6)
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_piranha_plant_Palette_00_Anim_1)
EVT_CASE_EQ(EVENT_DEATH)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_piranha_plant_Palette_00_Anim_9)
EVT_EXEC_WAIT(DoNormalHit)
EVT_WAIT_FRAMES(10)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_piranha_plant_Palette_00_Anim_9)
EVT_EXEC_WAIT(DoDeath)
EVT_RETURN
EVT_CASE_EQ(EVENT_RECOVER_STATUS)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_piranha_plant_Palette_00_Anim_1)
EVT_EXEC_WAIT(DoRecover)
EVT_CASE_EQ(EVENT_SCARE_AWAY)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_piranha_plant_Palette_00_Anim_9)
EVT_EXEC_WAIT(DoNormalHit)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, SOUND_MOLE_DIG)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_piranha_plant_Palette_00_Anim_4)
EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_NO_SHADOW, 1)
EVT_WAIT_FRAMES(8)
EVT_CALL(func_8027D32C, ACTOR_SELF)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, FALSE)
EVT_CALL(RemoveActor, ACTOR_SELF)
EVT_RETURN
EVT_CASE_EQ(EVENT_BEGIN_AIR_LIFT)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_piranha_plant_Palette_00_Anim_9)
EVT_EXEC_WAIT(DoAirLift)
EVT_CASE_EQ(EVENT_BLOW_AWAY)
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_piranha_plant_Palette_00_Anim_9)
EVT_EXEC_WAIT(DoBlowAway)
EVT_RETURN
EVT_CASE_DEFAULT
EVT_END_SWITCH
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_RETURN
EVT_END
};
EvtScript N(takeTurn_8021DCD4) = {
EVT_CALL(UseIdleAnimation, ACTOR_SELF, FALSE)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 0)
EVT_CALL(SetTargetActor, ACTOR_SELF, ACTOR_PLAYER)
EVT_CALL(GetBattlePhase, LW(0))
EVT_IF_EQ(LW(0), PHASE_FIRST_STRIKE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_piranha_plant_Palette_00_Anim_4)
EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_NO_SHADOW, 1)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_63)
EVT_CALL(BattleCamTargetActor, ACTOR_SELF)
EVT_CALL(func_8024ECF8, -1, 1, 0)
EVT_CALL(MoveBattleCamOver, 1)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 20)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_WAIT_FRAMES(15)
EVT_GOTO(123)
EVT_END_IF
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, SOUND_MOLE_DIG)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_piranha_plant_Palette_00_Anim_4)
EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_NO_SHADOW, 1)
EVT_WAIT_FRAMES(8)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_19)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 20)
EVT_SET(LW(1), 0)
EVT_CALL(SetBattleCamTarget, LW(0), LW(1), LW(2))
EVT_CALL(SetBattleCamZoom, 350)
EVT_CALL(SetBattleCamOffsetZ, 45)
EVT_CALL(func_8024ECF8, -1, 1, 0)
EVT_CALL(MoveBattleCamOver, 20)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(5))
EVT_IF_FLAG(LW(5), STATUS_FLAG_SHRINK)
EVT_ADD(LW(0), 8)
EVT_ADD(LW(0), -3)
EVT_ELSE
EVT_ADD(LW(0), 20)
EVT_END_IF
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.0))
EVT_CALL(SetActorSounds, ACTOR_SELF, 2, 0, 0)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 20, FALSE, FALSE, FALSE)
EVT_LABEL(123)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, SOUND_MOLE_SURFACE)
EVT_CALL(SetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_NO_SHADOW, 0)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_piranha_plant_Palette_00_Anim_3)
EVT_WAIT_FRAMES(8)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_piranha_plant_Palette_00_Anim_5)
EVT_CALL(EnemyTestTarget, ACTOR_SELF, LW(0), 0, 0, 1, BS_FLAGS1_10)
EVT_SWITCH(LW(0))
EVT_CASE_OR_EQ(HIT_RESULT_MISS)
EVT_CASE_OR_EQ(HIT_RESULT_LUCKY)
EVT_SET(LW(10), LW(0))
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(5))
EVT_IF_NOT_FLAG(LW(5), STATUS_FLAG_SHRINK)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_piranha_plant_Palette_00_Anim_6)
EVT_WAIT_FRAMES(2)
EVT_END_IF
EVT_THREAD
EVT_WAIT_FRAMES(6)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x20DE)
EVT_END_THREAD
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_piranha_plant_Palette_00_Anim_7)
EVT_WAIT_FRAMES(10)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_piranha_plant_Palette_00_Anim_8)
EVT_WAIT_FRAMES(2)
EVT_IF_EQ(LW(10), HIT_RESULT_LUCKY)
EVT_CALL(EnemyTestTarget, ACTOR_SELF, LW(0), DAMAGE_TYPE_TRIGGER_LUCKY, 0, 0, 0)
EVT_END_IF
EVT_WAIT_FRAMES(15)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(YieldTurn)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(4.0))
EVT_EXEC_WAIT(N(8021D4F4))
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_RETURN
EVT_END_CASE_GROUP
EVT_END_SWITCH
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_piranha_plant_Palette_00_Anim_6)
EVT_WAIT_FRAMES(2)
EVT_THREAD
EVT_WAIT_FRAMES(6)
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x20DE)
EVT_END_THREAD
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_piranha_plant_Palette_00_Anim_7)
EVT_WAIT_FRAMES(10)
EVT_WAIT_FRAMES(2)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LW(0), 0, 0, 0, 3, BS_FLAGS1_SP_EVT_ACTIVE)
EVT_SWITCH(LW(0))
EVT_CASE_OR_EQ(HIT_RESULT_HIT)
EVT_CASE_OR_EQ(HIT_RESULT_QUAKE_IMMUNE)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_WAIT_FRAMES(2)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_piranha_plant_Palette_00_Anim_8)
EVT_WAIT_FRAMES(15)
EVT_CALL(YieldTurn)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(6.0))
EVT_EXEC_WAIT(N(8021D4F4))
EVT_END_CASE_GROUP
EVT_END_SWITCH
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE)
EVT_RETURN
EVT_END
};

144
src/battle/area_mim/area.c Normal file
View File

@ -0,0 +1,144 @@
#include "common.h"
#include "battle/battle.h"
#include "script_api/battle.h"
#define NAMESPACE b_area_mim
extern ActorBlueprint N(forest_fuzzy);
extern ActorBlueprint N(piranha_plant);
extern ActorBlueprint N(bzzap);
extern Stage N(mim_01);
Formation N(formation_00) = {
{ .actor = &N(forest_fuzzy), .home = { .index = 1 }, .priority = 10 },
{ .actor = &N(forest_fuzzy), .home = { .index = 2 }, .priority = 9 },
};
Formation N(formation_01) = {
{ .actor = &N(forest_fuzzy), .home = { .index = 0 }, .priority = 10 },
{ .actor = &N(forest_fuzzy), .home = { .index = 1 }, .priority = 9 },
{ .actor = &N(forest_fuzzy), .home = { .index = 2 }, .priority = 8 },
};
Formation N(formation_02) = {
{ .actor = &N(forest_fuzzy), .home = { .index = 0 }, .priority = 10 },
{ .actor = &N(forest_fuzzy), .home = { .index = 1 }, .priority = 9 },
{ .actor = &N(forest_fuzzy), .home = { .index = 2 }, .priority = 8 },
{ .actor = &N(forest_fuzzy), .home = { .index = 3 }, .priority = 7 },
};
Formation N(formation_03) = {
{ .actor = &N(forest_fuzzy), .home = { .index = 1 }, .priority = 10 },
{ .actor = &N(piranha_plant), .home = { .index = 2 }, .priority = 9 },
};
Formation N(formation_04) = {
{ .actor = &N(forest_fuzzy), .home = { .index = 0 }, .priority = 10 },
{ .actor = &N(forest_fuzzy), .home = { .index = 1 }, .priority = 9 },
{ .actor = &N(piranha_plant), .home = { .index = 2 }, .priority = 8 },
};
Formation N(formation_05) = {
{ .actor = &N(forest_fuzzy), .home = { .index = 0 }, .priority = 10 },
{ .actor = &N(forest_fuzzy), .home = { .index = 1 }, .priority = 9 },
{ .actor = &N(piranha_plant), .home = { .index = 2 }, .priority = 8 },
{ .actor = &N(piranha_plant), .home = { .index = 3 }, .priority = 7 },
};
Formation N(formation_06) = {
{ .actor = &N(forest_fuzzy), .home = { .index = 0 }, .priority = 10 },
{ .actor = &N(forest_fuzzy), .home = { .index = 1 }, .priority = 9 },
{ .actor = &N(forest_fuzzy), .home = { .index = 2 }, .priority = 8 },
{ .actor = &N(piranha_plant), .home = { .index = 3 }, .priority = 7 },
};
Formation N(formation_07) = {
{ .actor = &N(forest_fuzzy), .home = { .index = 0 }, .priority = 10 },
{ .actor = &N(piranha_plant), .home = { .index = 1 }, .priority = 9 },
{ .actor = &N(forest_fuzzy), .home = { .index = 2 }, .priority = 8 },
{ .actor = &N(piranha_plant), .home = { .index = 3 }, .priority = 7 },
};
Formation N(formation_08) = {
{ .actor = &N(piranha_plant), .home = { .index = 1 }, .priority = 10 },
};
Formation N(formation_09) = {
{ .actor = &N(piranha_plant), .home = { .index = 1 }, .priority = 10 },
{ .actor = &N(piranha_plant), .home = { .index = 2 }, .priority = 9 },
};
Formation N(formation_0A) = {
{ .actor = &N(piranha_plant), .home = { .index = 0 }, .priority = 10 },
{ .actor = &N(piranha_plant), .home = { .index = 1 }, .priority = 9 },
{ .actor = &N(piranha_plant), .home = { .index = 2 }, .priority = 8 },
};
Formation N(formation_0B) = {
{ .actor = &N(piranha_plant), .home = { .index = 0 }, .priority = 10 },
{ .actor = &N(piranha_plant), .home = { .index = 1 }, .priority = 9 },
{ .actor = &N(piranha_plant), .home = { .index = 2 }, .priority = 8 },
{ .actor = &N(piranha_plant), .home = { .index = 3 }, .priority = 7 },
};
Formation N(formation_0C) = {
{ .actor = &N(piranha_plant), .home = { .index = 1 }, .priority = 10 },
{ .actor = &N(forest_fuzzy), .home = { .index = 2 }, .priority = 9 },
};
Formation N(formation_0D) = {
{ .actor = &N(piranha_plant), .home = { .index = 0 }, .priority = 10 },
{ .actor = &N(piranha_plant), .home = { .index = 1 }, .priority = 9 },
{ .actor = &N(forest_fuzzy), .home = { .index = 2 }, .priority = 8 },
};
Formation N(formation_0E) = {
{ .actor = &N(piranha_plant), .home = { .index = 0 }, .priority = 10 },
{ .actor = &N(forest_fuzzy), .home = { .index = 1 }, .priority = 9 },
{ .actor = &N(forest_fuzzy), .home = { .index = 2 }, .priority = 8 },
};
Formation N(formation_0F) = {
{ .actor = &N(piranha_plant), .home = { .index = 0 }, .priority = 10 },
{ .actor = &N(forest_fuzzy), .home = { .index = 1 }, .priority = 9 },
{ .actor = &N(piranha_plant), .home = { .index = 2 }, .priority = 8 },
};
Formation N(formation_10) = {
{ .actor = &N(bzzap), .home = { .index = 5 }, .priority = 10 },
{ .actor = &N(bzzap), .home = { .index = 6 }, .priority = 9 },
};
Formation N(formation_11) = {
{ .actor = &N(bzzap), .home = { .index = 4 }, .priority = 10 },
{ .actor = &N(bzzap), .home = { .index = 5 }, .priority = 9 },
{ .actor = &N(bzzap), .home = { .index = 6 }, .priority = 8 },
};
BattleList N(formationTable) = {
BATTLE("グリーンチョロボンx2", N(formation_00), &N(mim_01)),
BATTLE("グリーンチョロボンx3", N(formation_01), &N(mim_01)),
BATTLE("グリーンチョロボンx4", N(formation_02), &N(mim_01)),
BATTLE("グリーンチョロボン,パックンフラワー", N(formation_03), &N(mim_01)),
BATTLE("グリーンチョロボンx2,パックンフラワー", N(formation_04), &N(mim_01)),
BATTLE("グリーンチョロボンx2,パックンフラワーx2", N(formation_05), &N(mim_01)),
BATTLE("グリーンチョロボンx3,パックンフラワー", N(formation_06), &N(mim_01)),
BATTLE("グリーンチョロボン,パックンフラワー,グリーンチョロボン,パックンフラワー", N(formation_07), &N(mim_01)),
BATTLE("パックンフラワー", N(formation_08), &N(mim_01)),
BATTLE("パックンフラワーx2", N(formation_09), &N(mim_01)),
BATTLE("パックンフラワーx3", N(formation_0A), &N(mim_01)),
BATTLE("パックンフラワーx4", N(formation_0B), &N(mim_01)),
BATTLE("パックンフラワー,グリーンチョロボン", N(formation_0C), &N(mim_01)),
BATTLE("パックンフラワーx2,グリーンチョロボン", N(formation_0D), &N(mim_01)),
BATTLE("パックンフラワー,グリーンチョロボンx2", N(formation_0E), &N(mim_01)),
BATTLE("パックンフラワー,グリーンチョロボン,パックンフラワー", N(formation_0F), &N(mim_01)),
BATTLE("ハッチーx2", N(formation_10), &N(mim_01)),
BATTLE("ハッチーx3", N(formation_11), &N(mim_01)),
{},
};
StageList N(stageTable) = {
{ "mim_01", &N(mim_01) },
{},
};

View File

@ -0,0 +1,26 @@
#include "common.h"
#include "battle/battle.h"
#define NAMESPACE b_area_mim_mim_01
#include "common/UnkFogFunc2.inc.c"
EvtScript N(beforeBattle_8021E450) = {
EVT_CALL(SetSpriteShading, -1)
EVT_CALL(N(UnkFogFunc2))
EVT_RETURN
EVT_END
};
EvtScript N(afterBattle_8021E47C) = {
EVT_RETURN
EVT_END
};
Stage NAMESPACE = {
.texture = "mim_tex",
.shape = "mim_bt01_shape",
.hit = "mim_bt01_hit",
.preBattle = N(beforeBattle_8021E450),
.postBattle = N(afterBattle_8021E47C),
};

View File

@ -162,7 +162,7 @@ EvtScript N(handleEvent_802221FC) = {
EVT_SET_CONST(LW(0), 0x00000001)
EVT_SET_CONST(LW(1), NPC_ANIM_fuzzy_Palette_00_Anim_3)
EVT_EXEC_WAIT(D_8029C0A4)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CASE_EQ(38)
EVT_SET_CONST(LW(0), 0x00000001)
@ -250,7 +250,7 @@ EvtScript N(takeTurn_80222860) = {
EVT_ADD(LW(0), 50)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(6.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_EXEC_WAIT(D_8029C12C)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_fuzzy_Palette_00_Anim_1)
EVT_LABEL(100)
@ -301,7 +301,7 @@ EvtScript N(takeTurn_80222860) = {
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(8.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_EXEC_WAIT(D_8029C12C)
EVT_CALL(RemoveActorDecoration, ACTOR_SELF, 1, 0)
EVT_CALL(SetActorYaw, ACTOR_SELF, 0)
@ -338,15 +338,15 @@ EvtScript N(takeTurn_80222860) = {
EVT_CALL(SetActorDispOffset, ACTOR_SELF, -3, -2, 0)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(0.900390625), EVT_FLOAT(1.2001953125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(0.9), EVT_FLOAT(1.2), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(0.80078125), EVT_FLOAT(1.30078125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(0.8), EVT_FLOAT(1.3), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(0.7001953125), EVT_FLOAT(1.400390625), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(0.7), EVT_FLOAT(1.4), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(0.7001953125), EVT_FLOAT(1.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(0.7), EVT_FLOAT(1.5), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(2)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(0.6005859375), EVT_FLOAT(1.6005859375), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(0.6), EVT_FLOAT(1.6), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(10)
EVT_WAIT_FRAMES(2)
EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LW(0), DAMAGE_TYPE_IGNORE_DEFENSE, 0, 0, 1, 32)
@ -376,39 +376,39 @@ EvtScript N(takeTurn_80222860) = {
EVT_CALL(SetEnemyHP, -127, LW(0))
EVT_END_IF
EVT_THREAD
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.6005859375), EVT_FLOAT(0.6005859375), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.6), EVT_FLOAT(0.6), EVT_FLOAT(1.0))
EVT_CALL(SetActorRotationOffset, -127, 0, 10, 0)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 330)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(0.7001953125), EVT_FLOAT(1.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(0.7), EVT_FLOAT(1.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 300)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 270)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(0.7001953125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(0.7), EVT_FLOAT(1.0))
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 240)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 210)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(0.7001953125), EVT_FLOAT(1.400390625), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(0.7), EVT_FLOAT(1.4), EVT_FLOAT(1.0))
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 180)
EVT_WAIT_FRAMES(2)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(0.7001953125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(0.7), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(2)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.2001953125), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.2), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_END_THREAD
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 40)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.400390625), EVT_FLOAT(0.2001953125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.4), EVT_FLOAT(0.2), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_THREAD
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.2001953125), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.2), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 150)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
@ -434,7 +434,7 @@ EvtScript N(takeTurn_80222860) = {
EVT_CALL(SetGoalToHome, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(8.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_EXEC_WAIT(D_8029C12C)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_fuzzy_Palette_00_Anim_1)
EVT_END_CASE_GROUP

View File

@ -750,7 +750,7 @@ EvtScript N(shellToss_KentC) = {
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 30)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 8, FALSE, TRUE, FALSE)
EVT_THREAD
@ -907,7 +907,7 @@ EvtScript N(tackle_KentC) = {
EVT_WAIT_FRAMES(2)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_kent_c_koopa_Palette_00_Anim_8)
EVT_END_THREAD
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.30078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.3))
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(JumpToGoal, ACTOR_SELF, 14, FALSE, TRUE, FALSE)
EVT_WAIT_FRAMES(2)

View File

@ -13,7 +13,7 @@ extern EvtScript N(takeTurn_8021E900);
extern EvtScript N(idle_8021D810);
extern EvtScript N(handleEvent_8021DF88);
BSS s32 D_80220160[];
BSS s32 D_80220160;
s32 N(idleAnimations_8021D510)[] = {
STATUS_NORMAL, NPC_ANIM_battle_bandit_Palette_00_Anim_1,
@ -296,8 +296,9 @@ EvtScript N(8021D820) = {
EVT_END
};
EvtScript N(handleEvent_8021DF88) = {
EVT_USE_ARRAY(D_80220160)
EVT_USE_ARRAY(&D_80220160)
EVT_CALL(UseIdleAnimation, ACTOR_SELF, FALSE)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 0)
EVT_CALL(GetLastEvent, ACTOR_SELF, LW(0))
@ -396,7 +397,7 @@ EvtScript N(handleEvent_8021DF88) = {
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_battle_bandit_Palette_00_Anim_7)
EVT_EXEC_WAIT(DoReturnHome)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CASE_EQ(EVENT_SHOCK_DEATH)
EVT_SET_CONST(LW(0), 1)
@ -613,7 +614,7 @@ EvtScript N(takeTurn_8021E900) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 30)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_battle_bandit_Palette_00_Anim_1)
@ -623,7 +624,7 @@ EvtScript N(takeTurn_8021E900) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 30)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_battle_bandit_Palette_00_Anim_E)
@ -657,7 +658,7 @@ EvtScript N(takeTurn_8021E900) = {
EVT_WAIT_FRAMES(1)
EVT_END_LOOP
EVT_END_THREAD
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(10), LW(11), LW(12))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_ADDR(N(idleAnimations_8021D55C)))

View File

@ -430,8 +430,8 @@ EvtScript N(handleEvent_802186C0) = {
EVT_CALL(GetActorPos, ACTOR_SELF, LW(3), LW(4), LW(5))
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(6))
EVT_IF_FLAG(LW(6), STATUS_FLAG_SHRINK)
EVT_MULF(LW(0), EVT_FLOAT(0.400390625))
EVT_MULF(LW(1), EVT_FLOAT(0.400390625))
EVT_MULF(LW(0), EVT_FLOAT(0.4))
EVT_MULF(LW(1), EVT_FLOAT(0.4))
EVT_END_IF
EVT_ADDF(LW(3), LW(0))
EVT_ADDF(LW(4), LW(1))
@ -700,13 +700,13 @@ EvtScript N(takeTurn_8021A018) = {
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_SHRINK)
EVT_CALL(SetPartScale, ACTOR_SELF, 6, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
EVT_ELSE
EVT_CALL(SetPartScale, ACTOR_SELF, 6, EVT_FLOAT(0.400390625), EVT_FLOAT(0.400390625), EVT_FLOAT(1.0))
EVT_CALL(SetPartScale, ACTOR_SELF, 6, EVT_FLOAT(0.4), EVT_FLOAT(0.4), EVT_FLOAT(1.0))
EVT_END_IF
EVT_CHILD_THREAD
EVT_CALL(SetPartFlagBits, ACTOR_SELF, 6, ACTOR_PART_FLAG_INVISIBLE, 0)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetPartPos, ACTOR_SELF, 6, LW(0), LW(1), LW(2))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(2.2001953125))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(2.2))
EVT_CALL(SetAnimation, ACTOR_SELF, 6, NPC_ANIM_pokey_Palette_00_Anim_16)
EVT_CALL(GetStatusFlags, ACTOR_SELF, LW(5))
EVT_CALL(GetActorVar, ACTOR_SELF, 0, LW(10))
@ -716,7 +716,7 @@ EvtScript N(takeTurn_8021A018) = {
EVT_ADD(LW(1), 38)
EVT_ELSE
EVT_ADD(LW(1), 15)
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(1.2001953125))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(1.2))
EVT_END_IF
EVT_CALL(JumpPartTo, ACTOR_SELF, 6, LW(0), LW(1), LW(2), 15, 1)
EVT_CASE_EQ(1)
@ -724,7 +724,7 @@ EvtScript N(takeTurn_8021A018) = {
EVT_ADD(LW(1), 20)
EVT_ELSE
EVT_ADD(LW(1), 8)
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(1.2001953125))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(1.2))
EVT_END_IF
EVT_CALL(JumpPartTo, ACTOR_SELF, 6, LW(0), LW(1), LW(2), 15, 1)
EVT_CASE_EQ(2)
@ -732,7 +732,7 @@ EvtScript N(takeTurn_8021A018) = {
EVT_ADD(LW(1), 8)
EVT_ELSE
EVT_ADD(LW(1), 3)
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(1.2001953125))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(1.2))
EVT_END_IF
EVT_CALL(JumpPartTo, ACTOR_SELF, 6, LW(0), LW(1), LW(2), 15, 1)
EVT_CASE_EQ(3)
@ -765,7 +765,7 @@ EvtScript N(takeTurn_8021A018) = {
EVT_SUB(LW(0), 80)
EVT_SUB(LW(1), 5)
EVT_CALL(SetPartMoveSpeed, ACTOR_SELF, 6, EVT_FLOAT(20.0))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(0.1005859375))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(0.1))
EVT_CALL(SetAnimation, ACTOR_SELF, 6, NPC_ANIM_pokey_Palette_00_Anim_16)
EVT_CALL(JumpPartTo, ACTOR_SELF, 6, LW(0), LW(1), LW(2), 0, 1)
EVT_CALL(SetPartFlagBits, ACTOR_SELF, 6, ACTOR_PART_FLAG_INVISIBLE, 1)
@ -778,7 +778,7 @@ EvtScript N(takeTurn_8021A018) = {
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetPartMoveSpeed, ACTOR_SELF, 6, EVT_FLOAT(20.0))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(0.1005859375))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(0.1))
EVT_CALL(SetAnimation, ACTOR_SELF, 6, NPC_ANIM_pokey_Palette_00_Anim_16)
EVT_CALL(JumpPartTo, ACTOR_SELF, 6, LW(0), LW(1), LW(2), 0, 1)
EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LW(0), DAMAGE_TYPE_NO_CONTACT, 0, STATUS_FLAG_100 | STATUS_FLAG_200 | STATUS_FLAG_POISON | STATUS_FLAG_80000000, 2, BS_FLAGS1_SP_EVT_ACTIVE)
@ -791,7 +791,7 @@ EvtScript N(takeTurn_8021A018) = {
EVT_SUB(LW(0), 55)
EVT_SET(LW(1), 0)
EVT_CALL(SetPartMoveSpeed, ACTOR_SELF, 6, EVT_FLOAT(6.0))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(0.1005859375))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(0.1))
EVT_CALL(FlyPartTo, ACTOR_SELF, 6, LW(0), LW(1), LW(2), 0, 25, 0)
EVT_CALL(SetPartMoveSpeed, ACTOR_SELF, 6, EVT_FLOAT(4.0))
EVT_SUB(LW(0), 24)
@ -938,7 +938,7 @@ EvtScript N(8021AE2C) = {
EVT_CALL(UseIdleAnimation, LW(11), FALSE)
EVT_CALL(SetAnimation, LW(11), 1, NPC_ANIM_pokey_Palette_00_Anim_C)
EVT_CALL(GetActorPos, LW(11), LW(0), LW(1), LW(2))
EVT_CALL(SetActorJumpGravity, LW(11), EVT_FLOAT(1.2001953125))
EVT_CALL(SetActorJumpGravity, LW(11), EVT_FLOAT(1.2))
EVT_CALL(SetGoalPos, LW(11), LW(0), 0, LW(2))
EVT_CALL(JumpToGoal, LW(11), 20, FALSE, TRUE, FALSE)
EVT_WAIT_FRAMES(20)
@ -996,7 +996,7 @@ EvtScript N(8021B590) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 50)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_pokey_Palette_00_Anim_B)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(4.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(2.0))
@ -1019,7 +1019,7 @@ EvtScript N(8021B590) = {
EVT_SUB(LW(0), 5)
EVT_SET(LW(1), 10)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.1005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.1))
EVT_CHILD_THREAD
EVT_WAIT_FRAMES(2)
EVT_SET(LW(0), 0)
@ -1069,7 +1069,7 @@ EvtScript N(8021B590) = {
EVT_END_CASE_GROUP
EVT_END_SWITCH
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.1005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.1))
EVT_CHILD_THREAD
EVT_WAIT_FRAMES(2)
EVT_SET(LW(0), 0)
@ -1092,7 +1092,7 @@ EvtScript N(8021B590) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 40)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_ADD(LW(0), 30)
@ -1253,7 +1253,7 @@ EvtScript N(8021C860) = {
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_SHRINK)
EVT_CALL(SetPartScale, ACTOR_SELF, 6, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
EVT_ELSE
EVT_CALL(SetPartScale, ACTOR_SELF, 6, EVT_FLOAT(0.400390625), EVT_FLOAT(0.400390625), EVT_FLOAT(1.0))
EVT_CALL(SetPartScale, ACTOR_SELF, 6, EVT_FLOAT(0.4), EVT_FLOAT(0.4), EVT_FLOAT(1.0))
EVT_END_IF
EVT_EXEC_WAIT(N(8021C07C))
EVT_SET_CONST(LW(0), 1)
@ -1288,7 +1288,7 @@ EvtScript N(8021C860) = {
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SET(LW(1), 0)
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(0.1005859375))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(0.1))
EVT_CALL(SetPartMoveSpeed, ACTOR_SELF, 6, EVT_FLOAT(7.0))
EVT_CALL(JumpPartTo, ACTOR_SELF, 6, LW(0), LW(1), LW(2), 0, 1)
EVT_CHILD_THREAD
@ -1300,7 +1300,7 @@ EvtScript N(8021C860) = {
EVT_GOTO(1)
EVT_LABEL(10)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_D)
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(0.1005859375))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(0.1))
EVT_CALL(SetPartMoveSpeed, ACTOR_SELF, 6, EVT_FLOAT(6.0))
EVT_CALL(JumpPartTo, ACTOR_SELF, 6, 296, 0, 0, 0, 1)
EVT_CALL(SetPartFlagBits, ACTOR_SELF, 6, ACTOR_PART_FLAG_NO_TARGET, 1)
@ -1314,7 +1314,7 @@ EvtScript N(8021CCAC) = {
EVT_IF_NOT_FLAG(LW(0), STATUS_FLAG_SHRINK)
EVT_CALL(SetPartScale, ACTOR_SELF, 6, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
EVT_ELSE
EVT_CALL(SetPartScale, ACTOR_SELF, 6, EVT_FLOAT(0.400390625), EVT_FLOAT(0.400390625), EVT_FLOAT(1.0))
EVT_CALL(SetPartScale, ACTOR_SELF, 6, EVT_FLOAT(0.4), EVT_FLOAT(0.4), EVT_FLOAT(1.0))
EVT_END_IF
EVT_EXEC_WAIT(N(8021C07C))
EVT_SET_CONST(LW(0), 1)
@ -1383,7 +1383,7 @@ EvtScript N(8021D184) = {
EVT_CALL(GetActorVar, ACTOR_SELF, 3, LW(1))
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(GetActorFlags, ACTOR_SELF, LW(9))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.05078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.05))
EVT_CALL(GetActorPos, ACTOR_SELF, LW(10), LW(11), LW(12))
EVT_SET(LW(13), LW(11))
EVT_ADD(LW(13), 40)

View File

@ -527,7 +527,7 @@ EvtScript N(tackleAttack) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 5)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.1005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.1))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 20, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_bob_omb_Palette_00_Anim_1C)
@ -562,7 +562,7 @@ EvtScript N(tackleAttack) = {
EVT_END_CASE_GROUP
EVT_CASE_EQ(HIT_RESULT_HIT_STATIC)
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.1005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.1))
EVT_CALL(JumpToGoal, ACTOR_SELF, 20, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_bob_omb_Palette_00_Anim_14)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
@ -575,7 +575,7 @@ EvtScript N(tackleAttack) = {
EVT_RETURN
EVT_END_SWITCH
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.1005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.1))
EVT_CALL(JumpToGoal, ACTOR_SELF, 20, FALSE, TRUE, FALSE)
EVT_WAIT_FRAMES(2)
EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LW(0), 0, 0, 0, 1, BS_FLAGS1_SP_EVT_ACTIVE)
@ -587,7 +587,7 @@ EvtScript N(tackleAttack) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 40)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_ADD(LW(0), 30)

View File

@ -119,7 +119,7 @@ EvtScript N(init_80219088) = {
EVT_CALL(SetActorSounds, ACTOR_SELF, 2, 0, 0)
EVT_CALL(GetActorPos, LW(0), LW(1), LW(11), LW(12))
EVT_SUB(LW(1), 90)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.0107421875))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.01))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_bullet_bill_Palette_00_Anim_3)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(1), LW(2), LW(3))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
@ -252,7 +252,7 @@ EvtScript N(takeTurn_802197C0) = {
EVT_CALL(GetActorPos, ACTOR_PLAYER, LW(0), LW(1), LW(2))
EVT_SET(LW(1), LW(3))
EVT_SUB(LW(0), 90)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.0107421875))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.01))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 18, FALSE, TRUE, FALSE)
EVT_IF_EQ(LW(10), HIT_RESULT_LUCKY)
@ -271,7 +271,7 @@ EvtScript N(takeTurn_802197C0) = {
EVT_CALL(GetActorPos, ACTOR_PLAYER, LW(0), LW(1), LW(2))
EVT_SET(LW(1), LW(3))
EVT_ADD(LW(0), 10)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.0107421875))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.01))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 12, FALSE, TRUE, FALSE)
EVT_EXEC_WAIT(N(80219BE0))

View File

@ -265,7 +265,7 @@ EvtScript N(8022B6E8) = {
EVT_IF_EQ(LW(0), 3)
EVT_SET(LF(0), 1)
EVT_END_IF
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(func_80219530_4B2720, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_koopa_bros_Palette_00_Anim_A)
@ -274,7 +274,7 @@ EvtScript N(8022B6E8) = {
EVT_IF_EQ(LF(0), 1)
EVT_CALL(N(StartRumbleWithParams), 256, 5)
EVT_THREAD
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.80078125))
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.8))
EVT_END_THREAD
EVT_END_IF
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_koopa_bros_Palette_00_Anim_C)
@ -304,7 +304,7 @@ EvtScript N(8022B6E8) = {
EVT_IF_EQ(LW(0), 3)
EVT_SET(LF(0), 1)
EVT_END_IF
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(func_80219530_4B2720, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_koopa_bros_Palette_00_Anim_E)
@ -313,7 +313,7 @@ EvtScript N(8022B6E8) = {
EVT_IF_EQ(LF(0), 1)
EVT_CALL(N(StartRumbleWithParams), 256, 5)
EVT_THREAD
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.80078125))
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.8))
EVT_END_THREAD
EVT_END_IF
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))

View File

@ -453,7 +453,7 @@ EvtScript N(8021B0E4) = {
EVT_CALL(PlaySoundAtModel, 31, 482, 0)
EVT_THREAD
EVT_SET_GROUP(0)
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.7001953125))
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.7))
EVT_END_THREAD
EVT_CALL(N(StartRumbleWithParams), 70, 20)
EVT_WAIT_FRAMES(20)
@ -468,12 +468,12 @@ EvtScript N(8021B0E4) = {
EVT_CALL(N(StartRumbleWithParams), 60, 20)
EVT_THREAD
EVT_SET_GROUP(0)
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.6005859375))
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.6))
EVT_END_THREAD
EVT_WAIT_FRAMES(20)
EVT_THREAD
EVT_SET_GROUP(0)
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.30078125))
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.3))
EVT_END_THREAD
EVT_CALL(N(StartRumbleWithParams), 30, 20)
EVT_RETURN
@ -679,7 +679,7 @@ EvtScript N(8021BD6C) = {
EVT_SUB(LW(0), 150)
EVT_SET(LW(1), -200)
EVT_SUB(LW(2), 200)
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 3, EVT_FLOAT(0.30078125))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 3, EVT_FLOAT(0.3))
EVT_CALL(JumpPartTo, ACTOR_SELF, 3, LW(0), LW(1), LW(2), 80, 1)
EVT_RETURN
EVT_END
@ -863,7 +863,7 @@ EvtScript N(8021C67C) = {
EVT_SUB(LW(0), 50)
EVT_SET(LW(1), -200)
EVT_SUB(LW(2), 200)
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 10, EVT_FLOAT(0.30078125))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 10, EVT_FLOAT(0.3))
EVT_CALL(JumpPartTo, ACTOR_SELF, 10, LW(0), LW(1), LW(2), 80, 1)
EVT_RETURN
EVT_END
@ -969,7 +969,7 @@ EvtScript N(8021CB98) = {
EVT_SUB(LW(0), 0)
EVT_SET(LW(1), -200)
EVT_ADD(LW(2), 100)
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(0.6005859375))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 6, EVT_FLOAT(0.6))
EVT_CALL(JumpPartTo, ACTOR_SELF, 6, LW(0), LW(1), LW(2), 80, 1)
EVT_RETURN
EVT_END
@ -985,7 +985,7 @@ EvtScript N(8021CD50) = {
EVT_SUB(LW(0), 0)
EVT_SET(LW(1), -200)
EVT_SUB(LW(2), 200)
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 11, EVT_FLOAT(0.400390625))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 11, EVT_FLOAT(0.4))
EVT_CALL(JumpPartTo, ACTOR_SELF, 11, LW(0), LW(1), LW(2), 80, 1)
EVT_RETURN
EVT_END
@ -1052,7 +1052,7 @@ EvtScript N(8021D054) = {
EVT_SUB(LW(0), 150)
EVT_SET(LW(1), -200)
EVT_ADD(LW(2), 100)
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 8, EVT_FLOAT(0.30078125))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 8, EVT_FLOAT(0.3))
EVT_CALL(JumpPartTo, ACTOR_SELF, 8, LW(0), LW(1), LW(2), 80, 1)
EVT_RETURN
EVT_END
@ -1076,7 +1076,7 @@ EvtScript N(8021D1CC) = {
EVT_SUB(LW(0), 50)
EVT_SET(LW(1), -200)
EVT_SUB(LW(2), 100)
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 9, EVT_FLOAT(0.30078125))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 9, EVT_FLOAT(0.3))
EVT_CALL(JumpPartTo, ACTOR_SELF, 9, LW(0), LW(1), LW(2), 80, 1)
EVT_WAIT_FRAMES(100)
EVT_RETURN
@ -1104,7 +1104,7 @@ EvtScript N(8021D350) = {
EVT_SUB(LW(0), 0)
EVT_SET(LW(1), -200)
EVT_ADD(LW(2), 200)
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 7, EVT_FLOAT(0.30078125))
EVT_CALL(SetPartJumpGravity, ACTOR_SELF, 7, EVT_FLOAT(0.3))
EVT_CALL(JumpPartTo, ACTOR_SELF, 7, LW(0), LW(1), LW(2), 80, 1)
EVT_RETURN
EVT_END
@ -1581,7 +1581,7 @@ EvtScript N(8021F630) = {
EVT_CALL(SetActorPos, ACTOR_ENEMY0, 100, 0, 10)
EVT_CALL(SetAnimation, ACTOR_ENEMY0, 1, NPC_ANIM_koopa_bros_Palette_03_Anim_1C)
EVT_THREAD
EVT_CALL(SetActorJumpGravity, ACTOR_ENEMY0, EVT_FLOAT(0.400390625))
EVT_CALL(SetActorJumpGravity, ACTOR_ENEMY0, EVT_FLOAT(0.4))
EVT_CALL(SetActorSounds, ACTOR_ENEMY0, 2, 0, 0)
EVT_CALL(SetGoalPos, ACTOR_ENEMY0, -300, 250, 0)
EVT_CALL(JumpToGoal, ACTOR_ENEMY0, 50, FALSE, TRUE, FALSE)
@ -1591,7 +1591,7 @@ EvtScript N(8021F630) = {
EVT_CALL(SetActorPos, ACTOR_ENEMY1, 100, 0, 10)
EVT_CALL(SetAnimation, ACTOR_ENEMY1, 1, NPC_ANIM_koopa_bros_Palette_02_Anim_1C)
EVT_THREAD
EVT_CALL(SetActorJumpGravity, ACTOR_ENEMY1, EVT_FLOAT(0.400390625))
EVT_CALL(SetActorJumpGravity, ACTOR_ENEMY1, EVT_FLOAT(0.4))
EVT_CALL(SetActorSounds, ACTOR_ENEMY1, 2, 0, 0)
EVT_CALL(SetGoalPos, ACTOR_ENEMY1, -200, 250, 0)
EVT_CALL(JumpToGoal, ACTOR_ENEMY1, 50, FALSE, TRUE, FALSE)
@ -1601,7 +1601,7 @@ EvtScript N(8021F630) = {
EVT_CALL(SetActorPos, ACTOR_ENEMY2, 100, 0, 10)
EVT_CALL(SetAnimation, ACTOR_ENEMY2, 1, NPC_ANIM_koopa_bros_Palette_00_Anim_1C)
EVT_THREAD
EVT_CALL(SetActorJumpGravity, ACTOR_ENEMY2, EVT_FLOAT(0.400390625))
EVT_CALL(SetActorJumpGravity, ACTOR_ENEMY2, EVT_FLOAT(0.4))
EVT_CALL(SetActorSounds, ACTOR_ENEMY2, 2, 0, 0)
EVT_CALL(SetGoalPos, ACTOR_ENEMY2, 0, 250, 0)
EVT_CALL(JumpToGoal, ACTOR_ENEMY2, 50, FALSE, TRUE, FALSE)
@ -1611,7 +1611,7 @@ EvtScript N(8021F630) = {
EVT_CALL(SetActorPos, ACTOR_ENEMY3, 100, 0, 10)
EVT_CALL(SetAnimation, ACTOR_ENEMY3, 1, NPC_ANIM_koopa_bros_Palette_01_Anim_1C)
EVT_THREAD
EVT_CALL(SetActorJumpGravity, ACTOR_ENEMY3, EVT_FLOAT(0.400390625))
EVT_CALL(SetActorJumpGravity, ACTOR_ENEMY3, EVT_FLOAT(0.4))
EVT_CALL(SetActorSounds, ACTOR_ENEMY3, 2, 0, 0)
EVT_CALL(SetGoalPos, ACTOR_ENEMY3, 150, 250, 0)
EVT_CALL(JumpToGoal, ACTOR_ENEMY3, 50, FALSE, TRUE, FALSE)
@ -1880,7 +1880,7 @@ EvtScript N(80220588) = {
EVT_CASE_EQ(ACTOR_ENEMY3)
EVT_CALL(SetAnimation, LW(10), 1, NPC_ANIM_koopa_bros_Palette_01_Anim_11)
EVT_END_SWITCH
EVT_CALL(SetActorJumpGravity, LW(10), EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, LW(10), EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, LW(10), 20, FALSE, FALSE, FALSE)
EVT_CALL(func_8021837C_4B156C, LW(10))
EVT_CALL(PlaySoundAtActor, LW(10), 0x3E9)
@ -2030,7 +2030,7 @@ EvtScript N(80220588) = {
EVT_CASE_EQ(ACTOR_ENEMY3)
EVT_CALL(SetAnimation, LW(10), 1, NPC_ANIM_koopa_bros_Palette_01_Anim_11)
EVT_END_SWITCH
EVT_CALL(SetActorJumpGravity, LW(10), EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, LW(10), EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, LW(10), 20, FALSE, FALSE, FALSE)
EVT_CALL(func_8021837C_4B156C, LW(10))
EVT_CALL(PlaySoundAtActor, LW(10), 0x3E9)
@ -2096,7 +2096,7 @@ EvtScript N(80220588) = {
EVT_CASE_EQ(ACTOR_ENEMY3)
EVT_CALL(SetAnimation, LW(10), 1, NPC_ANIM_koopa_bros_Palette_01_Anim_11)
EVT_END_SWITCH
EVT_CALL(SetActorJumpGravity, LW(10), EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, LW(10), EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, LW(10), 20, FALSE, FALSE, FALSE)
EVT_CALL(func_8021837C_4B156C, LW(10))
EVT_CALL(PlaySoundAtActor, LW(10), 0x3E9)
@ -2223,7 +2223,7 @@ EvtScript N(80221DB4) = {
EVT_CASE_EQ(ACTOR_ENEMY3)
EVT_CALL(SetAnimation, LW(10), 1, NPC_ANIM_koopa_bros_Palette_01_Anim_11)
EVT_END_SWITCH
EVT_CALL(SetActorJumpGravity, LW(10), EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, LW(10), EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, LW(10), 20, FALSE, FALSE, FALSE)
EVT_CALL(func_8021837C_4B156C, LW(10))
EVT_CALL(PlaySoundAtActor, LW(10), 0x3E9)
@ -2305,7 +2305,7 @@ EvtScript N(80221DB4) = {
EVT_CASE_EQ(ACTOR_ENEMY3)
EVT_CALL(SetAnimation, LW(10), 1, NPC_ANIM_koopa_bros_Palette_01_Anim_11)
EVT_END_SWITCH
EVT_CALL(SetActorJumpGravity, LW(10), EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, LW(10), EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, LW(10), 20, FALSE, FALSE, FALSE)
EVT_CALL(func_8021837C_4B156C, LW(10))
EVT_CALL(PlaySoundAtActor, LW(10), 0x3E9)

View File

@ -265,7 +265,7 @@ EvtScript N(802257A8) = {
EVT_IF_EQ(LW(0), 3)
EVT_SET(LF(0), 1)
EVT_END_IF
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(func_802185B0_4B17A0, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_koopa_bros_Palette_03_Anim_A)
@ -274,7 +274,7 @@ EvtScript N(802257A8) = {
EVT_IF_EQ(LF(0), 1)
EVT_CALL(N(StartRumbleWithParams), 256, 5)
EVT_THREAD
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.80078125))
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.8))
EVT_END_THREAD
EVT_END_IF
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_koopa_bros_Palette_03_Anim_C)
@ -304,7 +304,7 @@ EvtScript N(802257A8) = {
EVT_IF_EQ(LW(0), 3)
EVT_SET(LF(0), 1)
EVT_END_IF
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(func_802185B0_4B17A0, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_koopa_bros_Palette_03_Anim_E)
@ -313,7 +313,7 @@ EvtScript N(802257A8) = {
EVT_IF_EQ(LF(0), 1)
EVT_CALL(N(StartRumbleWithParams), 256, 5)
EVT_THREAD
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.80078125))
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.8))
EVT_END_THREAD
EVT_END_IF
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))

View File

@ -265,7 +265,7 @@ EvtScript N(80228748) = {
EVT_IF_EQ(LW(0), 3)
EVT_SET(LF(0), 1)
EVT_END_IF
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(func_80218D70_4B1F60, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_koopa_bros_Palette_01_Anim_A)
@ -274,7 +274,7 @@ EvtScript N(80228748) = {
EVT_IF_EQ(LF(0), 1)
EVT_CALL(N(StartRumbleWithParams), 256, 5)
EVT_THREAD
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.80078125))
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.8))
EVT_END_THREAD
EVT_END_IF
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_koopa_bros_Palette_01_Anim_C)
@ -304,7 +304,7 @@ EvtScript N(80228748) = {
EVT_IF_EQ(LW(0), 3)
EVT_SET(LF(0), 1)
EVT_END_IF
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(func_80218D70_4B1F60, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_koopa_bros_Palette_01_Anim_E)
@ -313,7 +313,7 @@ EvtScript N(80228748) = {
EVT_IF_EQ(LF(0), 1)
EVT_CALL(N(StartRumbleWithParams), 256, 5)
EVT_THREAD
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.80078125))
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.8))
EVT_END_THREAD
EVT_END_IF
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))

View File

@ -265,7 +265,7 @@ EvtScript N(8022E688) = {
EVT_IF_EQ(LW(0), 3)
EVT_SET(LF(0), 1)
EVT_END_IF
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(func_80219CF0_4B2EE0, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_koopa_bros_Palette_02_Anim_A)
@ -274,7 +274,7 @@ EvtScript N(8022E688) = {
EVT_IF_EQ(LF(0), 1)
EVT_CALL(N(StartRumbleWithParams), 256, 5)
EVT_THREAD
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.80078125))
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.8))
EVT_END_THREAD
EVT_END_IF
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_koopa_bros_Palette_02_Anim_C)
@ -304,7 +304,7 @@ EvtScript N(8022E688) = {
EVT_IF_EQ(LW(0), 3)
EVT_SET(LF(0), 1)
EVT_END_IF
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(func_80219CF0_4B2EE0, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_koopa_bros_Palette_02_Anim_E)
@ -313,7 +313,7 @@ EvtScript N(8022E688) = {
EVT_IF_EQ(LF(0), 1)
EVT_CALL(N(StartRumbleWithParams), 256, 5)
EVT_THREAD
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.80078125))
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.8))
EVT_END_THREAD
EVT_END_IF
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))

View File

@ -12,7 +12,7 @@ extern EvtScript N(idle_802183E8);
extern EvtScript N(handleEvent_80218404);
extern EvtScript N(80218424);
extern s32 D_80219040;
BSS s32 D_80219040;
s32 N(idleAnimations_80218280)[] = {
STATUS_NORMAL, NPC_ANIM_world_eldstar_Palette_00_Anim_1,

View File

@ -84,20 +84,20 @@ BattleArea gBattleAreas[0x30] = {
{
AREA(area_isk_part_2),
.name = "エリア その2",
.battles = 0x80220448,
.stages = 0x80220470,
.battles = &b_area_isk_part_2_formationTable,
.stages = &b_area_isk_part_2_stageTable,
},
{
AREA(area_mim),
.name = "エリア ",
.battles = 0x8021EA70,
.stages = 0x8021EBEC,
.battles = &b_area_mim_formationTable,
.stages = &b_area_mim_stageTable,
},
{
AREA(area_arn),
.name = "エリア ",
.battles = 0x80228110,
.stages = 0x80228278,
.battles = &b_area_arn_formationTable,
.stages = &b_area_arn_stageTable,
},
{
AREA(area_dgb),

View File

@ -40,4 +40,13 @@ extern StageList b_area_sbk_stageTable;
extern BattleList b_area_isk_part_1_formationTable;
extern StageList b_area_isk_part_1_stageTable;
extern BattleList b_area_isk_part_2_formationTable;
extern StageList b_area_isk_part_2_stageTable;
extern BattleList b_area_mim_formationTable;
extern StageList b_area_mim_stageTable;
extern BattleList b_area_arn_formationTable;
extern StageList b_area_arn_stageTable;
#endif

View File

@ -216,7 +216,7 @@ EvtScript N(handleEvent_80219C14) = {
EVT_CALL(SetAnimationRate, ACTOR_SELF, 1, EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(5)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_normal_idle)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CASE_EQ(EVENT_SHOCK_DEATH)
EVT_SET_CONST(LW(0), 1)
@ -311,7 +311,7 @@ EvtScript N(takeTurn_8021A440) = {
EVT_SET(LW(1), 10)
EVT_ADD(LW(2), 3)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2001953125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2))
EVT_THREAD
EVT_CALL(GetActorPos, ACTOR_SELF, LW(1), LW(2), LW(0))
EVT_SET(LW(0), 0)
@ -331,10 +331,10 @@ EvtScript N(takeTurn_8021A440) = {
EVT_END_THREAD
EVT_CALL(JumpToGoal, ACTOR_SELF, 16, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_normal_asleep)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1005859375), EVT_FLOAT(0.80078125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, 5, 0)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.30078125), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.3), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, -2, 0)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
@ -378,7 +378,7 @@ EvtScript N(takeTurn_8021A440) = {
EVT_CALL(SetActorYaw, ACTOR_SELF, 0)
EVT_WAIT_FRAMES(5)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_normal_idle)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CALL(RemoveActorDecoration, ACTOR_SELF, 1, 0)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
@ -387,7 +387,7 @@ EvtScript N(takeTurn_8021A440) = {
EVT_END_CASE_GROUP
EVT_CASE_DEFAULT
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2001953125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2))
EVT_THREAD
EVT_CALL(GetActorPos, ACTOR_SELF, LW(1), LW(2), LW(0))
EVT_SET(LW(0), 0)
@ -407,9 +407,9 @@ EvtScript N(takeTurn_8021A440) = {
EVT_END_THREAD
EVT_CALL(JumpToGoal, ACTOR_SELF, 16, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_normal_pre_headbonk)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1005859375), EVT_FLOAT(0.80078125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.30078125), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.3), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_END_SWITCH
EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LW(0), 0, 0, 0, 1, BS_FLAGS1_SP_EVT_ACTIVE)
@ -417,7 +417,7 @@ EvtScript N(takeTurn_8021A440) = {
EVT_CASE_OR_EQ(HIT_RESULT_HIT)
EVT_CASE_OR_EQ(HIT_RESULT_QUAKE_IMMUNE)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1005859375), EVT_FLOAT(0.80078125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
@ -427,7 +427,7 @@ EvtScript N(takeTurn_8021A440) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 40)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_ADD(LW(0), 30)

View File

@ -328,7 +328,7 @@ EvtScript N(handleEvent_8021D218) = {
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_koopa_troopa_Palette_01_Anim_4)
EVT_EXEC_WAIT(DoReturnHome)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CASE_EQ(EVENT_SHOCK_DEATH)
EVT_SET_CONST(LW(0), 1)
@ -585,7 +585,7 @@ EvtScript N(takeTurn_8021DD9C) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 40)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_ADD(LW(0), 30)

View File

@ -208,7 +208,7 @@ EvtScript N(idle_8021B434) = {
EVT_END_LOOP
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 5)
EVT_CALL(SetActorIdleSpeed, ACTOR_SELF, EVT_FLOAT(0.6005859375))
EVT_CALL(SetActorIdleSpeed, ACTOR_SELF, EVT_FLOAT(0.6))
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 2, EVT_ADDR(N(idleAnimations_8021B384)))
EVT_CALL(SetIdleGoal, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(IdleFlyToGoal, ACTOR_SELF, 0, -5, 0)
@ -223,7 +223,7 @@ EvtScript N(idle_8021B434) = {
EVT_END_LOOP
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 5)
EVT_CALL(SetActorIdleSpeed, ACTOR_SELF, EVT_FLOAT(0.6005859375))
EVT_CALL(SetActorIdleSpeed, ACTOR_SELF, EVT_FLOAT(0.6))
EVT_CALL(SetIdleGoal, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(IdleFlyToGoal, ACTOR_SELF, 0, -5, 0)
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 2, EVT_ADDR(N(idleAnimations_8021B338)))
@ -391,7 +391,7 @@ EvtScript N(takeTurn_8021BD5C) = {
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x20E0)
EVT_CALL(SetActorSounds, ACTOR_SELF, 2, 0, 0)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(5.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetAnimation, ACTOR_SELF, 2, NPC_ANIM_paragoomba_default_attack)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
@ -441,7 +441,7 @@ EvtScript N(takeTurn_8021BD5C) = {
EVT_CALL(PlaySoundAtActor, ACTOR_SELF, 0x20E0)
EVT_CALL(SetActorSounds, ACTOR_SELF, 2, 0, 0)
EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(5.0))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetAnimation, ACTOR_SELF, 2, NPC_ANIM_paragoomba_default_attack)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
@ -501,12 +501,12 @@ EvtScript N(8021C574) = {
EVT_CALL(SetActorSounds, ACTOR_SELF, 2, 769, 0)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 15, FALSE, TRUE, FALSE)
EVT_CALL(N(StartRumbleWithParams), 100, 10)
EVT_THREAD
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.30078125))
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.3))
EVT_END_THREAD
EVT_CALL(ResetActorSounds, ACTOR_SELF, 2)
EVT_CALL(GetLastEvent, ACTOR_SELF, LW(3))
@ -693,7 +693,7 @@ EvtScript N(handleEvent_8021CEBC) = {
EVT_CALL(SetAnimationRate, ACTOR_SELF, 1, EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(5)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_normal_idle)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CASE_EQ(EVENT_SHOCK_DEATH)
EVT_SET_CONST(LW(0), 1)
@ -788,7 +788,7 @@ EvtScript N(takeTurn_8021D6E8) = {
EVT_SET(LW(1), 10)
EVT_ADD(LW(2), 3)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2001953125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2))
EVT_THREAD
EVT_CALL(GetActorPos, ACTOR_SELF, LW(1), LW(2), LW(0))
EVT_SET(LW(0), 0)
@ -808,10 +808,10 @@ EvtScript N(takeTurn_8021D6E8) = {
EVT_END_THREAD
EVT_CALL(JumpToGoal, ACTOR_SELF, 16, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_normal_asleep)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1005859375), EVT_FLOAT(0.80078125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, 5, 0)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.30078125), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.3), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, -2, 0)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
@ -855,7 +855,7 @@ EvtScript N(takeTurn_8021D6E8) = {
EVT_CALL(SetActorYaw, ACTOR_SELF, 0)
EVT_WAIT_FRAMES(5)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_normal_idle)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CALL(RemoveActorDecoration, ACTOR_SELF, 1, 0)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
@ -864,7 +864,7 @@ EvtScript N(takeTurn_8021D6E8) = {
EVT_END_CASE_GROUP
EVT_CASE_DEFAULT
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2001953125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2))
EVT_THREAD
EVT_CALL(GetActorPos, ACTOR_SELF, LW(1), LW(2), LW(0))
EVT_SET(LW(0), 0)
@ -884,9 +884,9 @@ EvtScript N(takeTurn_8021D6E8) = {
EVT_END_THREAD
EVT_CALL(JumpToGoal, ACTOR_SELF, 16, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_goomba_normal_pre_headbonk)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1005859375), EVT_FLOAT(0.80078125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.30078125), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.3), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_END_SWITCH
EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LW(0), 0, 0, 0, 1, BS_FLAGS1_SP_EVT_ACTIVE)
@ -894,7 +894,7 @@ EvtScript N(takeTurn_8021D6E8) = {
EVT_CASE_OR_EQ(HIT_RESULT_HIT)
EVT_CASE_OR_EQ(HIT_RESULT_QUAKE_IMMUNE)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1005859375), EVT_FLOAT(0.80078125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
@ -904,7 +904,7 @@ EvtScript N(takeTurn_8021D6E8) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 40)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_ADD(LW(0), 30)

View File

@ -234,7 +234,7 @@ EvtScript N(idle_8021EF5C) = {
EVT_END_LOOP
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 5)
EVT_CALL(SetActorIdleSpeed, ACTOR_SELF, EVT_FLOAT(0.6005859375))
EVT_CALL(SetActorIdleSpeed, ACTOR_SELF, EVT_FLOAT(0.6))
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 2, EVT_ADDR(N(idleAnimations_8021ED4C)))
EVT_CALL(SetIdleGoal, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(IdleFlyToGoal, ACTOR_SELF, 0, -5, 0)
@ -251,7 +251,7 @@ EvtScript N(idle_8021EF5C) = {
EVT_END_LOOP
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SUB(LW(0), 5)
EVT_CALL(SetActorIdleSpeed, ACTOR_SELF, EVT_FLOAT(0.6005859375))
EVT_CALL(SetActorIdleSpeed, ACTOR_SELF, EVT_FLOAT(0.6))
EVT_CALL(SetIdleAnimations, ACTOR_SELF, 2, EVT_ADDR(N(idleAnimations_8021ED4C)))
EVT_CALL(SetIdleGoal, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(IdleFlyToGoal, ACTOR_SELF, 0, -5, 0)
@ -578,12 +578,12 @@ EvtScript N(802204DC) = {
EVT_IF_EQ(LW(10), 0)
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 15, FALSE, TRUE, FALSE)
EVT_CALL(N(StartRumbleWithParams), 128, 7)
EVT_THREAD
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.30078125))
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.3))
EVT_END_THREAD
EVT_CALL(ResetActorSounds, ACTOR_SELF, 2)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
@ -600,7 +600,7 @@ EvtScript N(802204DC) = {
EVT_ELSE
EVT_CALL(GetActorPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(0.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 15, FALSE, TRUE, FALSE)
EVT_THREAD
@ -614,7 +614,7 @@ EvtScript N(802204DC) = {
EVT_END_THREAD
EVT_CALL(N(StartRumbleWithParams), 150, 7)
EVT_THREAD
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.30078125))
EVT_CALL(ShakeCam, 1, 0, 5, EVT_FLOAT(0.3))
EVT_END_THREAD
EVT_CALL(ResetActorSounds, ACTOR_SELF, 2)
EVT_END_IF
@ -881,7 +881,7 @@ EvtScript N(handleEvent_80221228) = {
EVT_SET_CONST(LW(0), 1)
EVT_SET_CONST(LW(1), NPC_ANIM_koopa_troopa_Palette_01_Anim_4)
EVT_EXEC_WAIT(DoReturnHome)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CASE_EQ(EVENT_SHOCK_DEATH)
EVT_SET_CONST(LW(0), 1)
@ -1138,7 +1138,7 @@ EvtScript N(takeTurn_80221DAC) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 40)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_ADD(LW(0), 30)

View File

@ -217,7 +217,7 @@ EvtScript N(handleEvent_8021E874) = {
EVT_CALL(SetAnimationRate, ACTOR_SELF, 1, EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(5)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_spiked_goomba_default_idle)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CASE_EQ(EVENT_SHOCK_DEATH)
EVT_SET_CONST(LW(0), 1)
@ -327,7 +327,7 @@ EvtScript N(takeTurn_8021F1BC) = {
EVT_SET(LW(1), 10)
EVT_ADD(LW(2), 3)
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2001953125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2))
EVT_THREAD
EVT_CALL(GetActorPos, ACTOR_SELF, LW(1), LW(2), LW(0))
EVT_SET(LW(0), 0)
@ -347,10 +347,10 @@ EvtScript N(takeTurn_8021F1BC) = {
EVT_END_THREAD
EVT_CALL(JumpToGoal, ACTOR_SELF, 16, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_spiked_goomba_default_sleep)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1005859375), EVT_FLOAT(0.80078125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, 5, 0)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.30078125), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.3), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorDispOffset, ACTOR_SELF, 0, -2, 0)
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
@ -394,7 +394,7 @@ EvtScript N(takeTurn_8021F1BC) = {
EVT_CALL(SetActorYaw, ACTOR_SELF, 0)
EVT_WAIT_FRAMES(5)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_spiked_goomba_default_idle)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6005859375))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.6))
EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE)
EVT_CALL(RemoveActorDecoration, ACTOR_SELF, 1, 0)
EVT_CALL(EnableIdleScript, ACTOR_SELF, 1)
@ -403,7 +403,7 @@ EvtScript N(takeTurn_8021F1BC) = {
EVT_END_CASE_GROUP
EVT_CASE_DEFAULT
EVT_CALL(SetGoalToTarget, ACTOR_SELF)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2001953125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.2))
EVT_THREAD
EVT_CALL(GetActorPos, ACTOR_SELF, LW(1), LW(2), LW(0))
EVT_SET(LW(0), 0)
@ -423,9 +423,9 @@ EvtScript N(takeTurn_8021F1BC) = {
EVT_END_THREAD
EVT_CALL(JumpToGoal, ACTOR_SELF, 16, FALSE, TRUE, FALSE)
EVT_CALL(SetAnimation, ACTOR_SELF, 1, NPC_ANIM_spiked_goomba_default_headbonk)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1005859375), EVT_FLOAT(0.80078125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.30078125), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.3), EVT_FLOAT(0.5), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_END_SWITCH
EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LW(0), 0, 0, 0, 2, BS_FLAGS1_SP_EVT_ACTIVE)
@ -433,7 +433,7 @@ EvtScript N(takeTurn_8021F1BC) = {
EVT_CASE_OR_EQ(HIT_RESULT_HIT)
EVT_CASE_OR_EQ(HIT_RESULT_QUAKE_IMMUNE)
EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1005859375), EVT_FLOAT(0.80078125), EVT_FLOAT(1.0))
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.1), EVT_FLOAT(0.8), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
EVT_CALL(SetActorScale, ACTOR_SELF, EVT_FLOAT(1.0), EVT_FLOAT(1.0), EVT_FLOAT(1.0))
EVT_WAIT_FRAMES(1)
@ -443,7 +443,7 @@ EvtScript N(takeTurn_8021F1BC) = {
EVT_CALL(GetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_ADD(LW(0), 40)
EVT_SET(LW(1), 0)
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.80078125))
EVT_CALL(SetActorJumpGravity, ACTOR_SELF, EVT_FLOAT(1.8))
EVT_CALL(SetGoalPos, ACTOR_SELF, LW(0), LW(1), LW(2))
EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE)
EVT_ADD(LW(0), 30)

Some files were not shown because too many files have changed in this diff Show More