mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 00:42:34 +01:00
mass script to evt type rename (#377)
* add process_scripts.py * mass evt rename
This commit is contained in:
parent
2a571dc6fa
commit
de800e9c9f
1
.vscode/c_cpp_properties.json
vendored
1
.vscode/c_cpp_properties.json
vendored
@ -19,6 +19,7 @@
|
||||
"defines": [
|
||||
"F3DEX_GBI_2",
|
||||
"_LANGUAGE_C",
|
||||
"_MIPS_SZLONG=32",
|
||||
"SCRIPT(...)={}",
|
||||
"VERSION=us"
|
||||
],
|
||||
|
@ -7,11 +7,11 @@
|
||||
#include "si.h"
|
||||
#include "enums.h"
|
||||
|
||||
struct ScriptInstance;
|
||||
struct Evt;
|
||||
|
||||
typedef ApiStatus(*ApiFunc)(struct ScriptInstance*, s32);
|
||||
typedef ApiStatus(*ApiFunc)(struct Evt*, s32);
|
||||
|
||||
typedef Bytecode Script[0];
|
||||
typedef Bytecode EvtSource[0];
|
||||
|
||||
typedef struct {
|
||||
u8 r, g, b, a;
|
||||
@ -276,15 +276,15 @@ typedef struct Trigger {
|
||||
/* 0x04 */ s32 params1;
|
||||
/* 0x08 */ s32 params2;
|
||||
/* 0x0C */ UNK_FUN_PTR(functionHandler);
|
||||
/* 0x10 */ Script* scriptSource;
|
||||
/* 0x14 */ struct ScriptInstance* runningScript;
|
||||
/* 0x10 */ EvtSource* scriptSource;
|
||||
/* 0x14 */ struct Evt* runningScript;
|
||||
/* 0x18 */ s32 priority;
|
||||
/* 0x1C */ s32 scriptVars[3];
|
||||
/* 0x28 */ char unk_28[4];
|
||||
/* 0x2C */ s32 unk_2C;
|
||||
/* 0x30 */ u8 unk_30;
|
||||
/* 0x31 */ char unk_31[3];
|
||||
/* 0x34 */ ScriptID runningScriptID;
|
||||
/* 0x34 */ s32 runningScriptID;
|
||||
} Trigger; // size = 0x38
|
||||
|
||||
typedef Trigger* TriggerList[MAX_TRIGGERS];
|
||||
@ -294,7 +294,7 @@ typedef union X32 {
|
||||
f32 f;
|
||||
} X32;
|
||||
|
||||
typedef struct ScriptInstance {
|
||||
typedef struct Evt {
|
||||
/* 0x000 */ u8 state;
|
||||
/* 0x001 */ u8 currentArgc;
|
||||
/* 0x002 */ u8 currentOpcode;
|
||||
@ -308,9 +308,9 @@ typedef struct ScriptInstance {
|
||||
/* 0x010 */ s8 labelIndices[16];
|
||||
/* 0x020 */ UNK_PTR labelPositions[16];
|
||||
/* 0x060 */ UNK_PTR userData; /* unknown pointer; allocated on the heap, free'd in kill_script() */
|
||||
/* 0x064 */ struct ScriptInstance* blockingParent; /* parent? */
|
||||
/* 0x068 */ struct ScriptInstance* childScript;
|
||||
/* 0x06C */ struct ScriptInstance* parentScript; /* brother? */
|
||||
/* 0x064 */ struct Evt* blockingParent; /* parent? */
|
||||
/* 0x068 */ struct Evt* childScript;
|
||||
/* 0x06C */ struct Evt* parentScript; /* brother? */
|
||||
/* 0x070 */ s32 functionTemp[4];
|
||||
/* 0x080 */ ApiFunc callFunction;
|
||||
/* 0x084 */ s32 varTable[16];
|
||||
@ -322,7 +322,7 @@ typedef struct ScriptInstance {
|
||||
/* 0x138 */ s32* buffer;
|
||||
/* 0x13C */ s32* array;
|
||||
/* 0x140 */ s32* flagArray;
|
||||
/* 0x144 */ ScriptID id;
|
||||
/* 0x144 */ s32 id;
|
||||
/* 0x148 */ union {
|
||||
s32 enemyID;
|
||||
ActorID actorID;
|
||||
@ -341,9 +341,9 @@ typedef struct ScriptInstance {
|
||||
/* 0x15C */ Bytecode* ptrFirstLine;
|
||||
/* 0x160 */ Bytecode* ptrSavedPosition;
|
||||
/* 0x164 */ Bytecode* ptrCurrentLine;
|
||||
} ScriptInstance; // size = 0x168
|
||||
} Evt; // size = 0x168
|
||||
|
||||
typedef ScriptInstance* ScriptList[MAX_SCRIPTS];
|
||||
typedef Evt* ScriptList[MAX_SCRIPTS];
|
||||
|
||||
struct Entity;
|
||||
|
||||
@ -366,7 +366,7 @@ typedef struct Entity {
|
||||
/* 0x18 */ s32* scriptReadPos;
|
||||
/* 0x1C */ EntityCallback updateScriptCallback;
|
||||
/* 0x20 */ EntityCallback updateMatrixOverride;
|
||||
/* 0x24 */ ScriptInstance* boundScript;
|
||||
/* 0x24 */ Evt* boundScript;
|
||||
/* 0x28 */ Bytecode* boundScriptBytecode;
|
||||
/* 0x2C */ s32* savedReadPos;
|
||||
/* 0x30 */ char unk_30[0x8];
|
||||
@ -703,10 +703,10 @@ typedef struct BattleStatus {
|
||||
/* 0x0B1 */ char unk_B1[3];
|
||||
/* 0x0B4 */ UNK_FUN_PTR(preUpdateCallback);
|
||||
/* 0x0B8 */ UNK_FUN_PTR(unk_B8);
|
||||
/* 0x0BC */ struct ScriptInstance* controlScript; /* control handed over to this when changing partners */
|
||||
/* 0x0C0 */ ScriptID controlScriptID;
|
||||
/* 0x0C4 */ struct ScriptInstance* camMovementScript;
|
||||
/* 0x0C8 */ ScriptID camMovementScriptID;
|
||||
/* 0x0BC */ struct Evt* controlScript; /* control handed over to this when changing partners */
|
||||
/* 0x0C0 */ s32 controlScriptID;
|
||||
/* 0x0C4 */ struct Evt* camMovementScript;
|
||||
/* 0x0C8 */ s32 camMovementScriptID;
|
||||
/* 0x0CC */ Vec3f unk_CC;
|
||||
/* 0x0D8 */ struct Actor* playerActor;
|
||||
/* 0x0DC */ struct Actor* partnerActor;
|
||||
@ -1250,7 +1250,7 @@ typedef struct GameStatus {
|
||||
/* 0x068 */ s16 demoButtonInput;
|
||||
/* 0x06A */ s8 demoStickX;
|
||||
/* 0x06B */ s8 demoStickY;
|
||||
/* 0x06C */ ScriptID mainScriptID;
|
||||
/* 0x06C */ s32 mainScriptID;
|
||||
/* 0x070 */ s8 isBattle;
|
||||
/* 0x071 */ s8 demoState; /* (0 = not demo, 1 = map demo, 2 = demo map changing) */
|
||||
/* 0x072 */ s8 nextDemoScene; /* which part of the demo to play next */
|
||||
@ -1749,18 +1749,18 @@ typedef struct Actor {
|
||||
/* 0x1BA */ char unk_1BA[2];
|
||||
/* 0x1BC */ u8 hpFraction; /* used to render HP bar */
|
||||
/* 0x1BD */ char unk_1BD[3];
|
||||
/* 0x1C0 */ Script* idleScriptSource;
|
||||
/* 0x1C4 */ Script* takeTurnScriptSource;
|
||||
/* 0x1C8 */ Script* onHitScriptSource;
|
||||
/* 0x1CC */ Script* onTurnChanceScriptSource;
|
||||
/* 0x1D0 */ struct ScriptInstance* idleScript;
|
||||
/* 0x1D4 */ struct ScriptInstance* takeTurnScript;
|
||||
/* 0x1D8 */ struct ScriptInstance* onHitScript;
|
||||
/* 0x1DC */ struct ScriptInstance* onTurnChangeScript;
|
||||
/* 0x1E0 */ ScriptID idleScriptID;
|
||||
/* 0x1E4 */ ScriptID takeTurnID;
|
||||
/* 0x1E8 */ ScriptID onHitID;
|
||||
/* 0x1EC */ ScriptID onTurnChangeID;
|
||||
/* 0x1C0 */ EvtSource* idleScriptSource;
|
||||
/* 0x1C4 */ EvtSource* takeTurnScriptSource;
|
||||
/* 0x1C8 */ EvtSource* onHitScriptSource;
|
||||
/* 0x1CC */ EvtSource* onTurnChanceScriptSource;
|
||||
/* 0x1D0 */ struct Evt* idleScript;
|
||||
/* 0x1D4 */ struct Evt* takeTurnScript;
|
||||
/* 0x1D8 */ struct Evt* onHitScript;
|
||||
/* 0x1DC */ struct Evt* onTurnChangeScript;
|
||||
/* 0x1E0 */ s32 idleScriptID;
|
||||
/* 0x1E4 */ s32 takeTurnID;
|
||||
/* 0x1E8 */ s32 onHitID;
|
||||
/* 0x1EC */ s32 onTurnChangeID;
|
||||
/* 0x1F0 */ s8 lastEventType;
|
||||
/* 0x1F1 */ u8 turnPriority;
|
||||
/* 0x1F2 */ u8 enemyIndex; /* actorID = this | 200 */
|
||||
|
@ -174,11 +174,11 @@ void ai_enemy_play_sound(Npc* npc, s32 arg1, s32 arg2);
|
||||
|
||||
s32 player_test_move_without_slipping(PlayerStatus*, f32*, f32*, f32*, s32, f32, s32*);
|
||||
|
||||
s32 get_variable(ScriptInstance* script, Bytecode var);
|
||||
s32 set_variable(ScriptInstance* script, Bytecode var, s32 value);
|
||||
f32 get_float_variable(ScriptInstance* script, Bytecode var);
|
||||
f32 set_float_variable(ScriptInstance* script, Bytecode var, f32 value);
|
||||
void set_script_timescale(ScriptInstance* script, f32 timescale);
|
||||
s32 get_variable(Evt* script, Bytecode var);
|
||||
s32 set_variable(Evt* script, Bytecode var, s32 value);
|
||||
f32 get_float_variable(Evt* script, Bytecode var);
|
||||
f32 set_float_variable(Evt* script, Bytecode var, f32 value);
|
||||
void set_script_timescale(Evt* script, f32 timescale);
|
||||
f32 sin_deg(f32 x);
|
||||
f32 cos_deg(f32 x);
|
||||
f32 sin_rad(f32 x);
|
||||
@ -249,9 +249,9 @@ void set_background_color_blend(u8 r, u8 g, u8 b, u8 a);
|
||||
|
||||
void partner_set_tether_distance(f32);
|
||||
s32 does_script_exist(s32 id);
|
||||
s32 does_script_exist_by_ref(ScriptInstance* script);
|
||||
ScriptInstance* start_script(Script* source, s32 priority, s32 initialState);
|
||||
ScriptInstance* start_script_in_group(Script* source, u8 priority, u8 initialState, u8 groupFlags);
|
||||
s32 does_script_exist_by_ref(Evt* script);
|
||||
Evt* start_script(EvtSource* source, s32 priority, s32 initialState);
|
||||
Evt* start_script_in_group(EvtSource* source, u8 priority, u8 initialState, u8 groupFlags);
|
||||
f32 get_player_normal_yaw(void);
|
||||
void set_standard_shadow_scale(Shadow* shadow, f32 scale);
|
||||
void set_peach_shadow_scale(Shadow* shadow, f32 scale);
|
||||
@ -297,7 +297,7 @@ s32 check_input_hammer();
|
||||
|
||||
Npc* get_npc_safe(NpcID npcId);
|
||||
Npc* get_npc_unsafe(NpcID npcId);
|
||||
Npc* resolve_npc(ScriptInstance* script, NpcID npcIdOrPtr);
|
||||
Npc* resolve_npc(Evt* script, NpcID npcIdOrPtr);
|
||||
void set_npc_yaw(Npc* npcPtr, f32 angle);
|
||||
void npc_move_heading(Npc* npc, f32 speed, f32 yaw);
|
||||
void disable_npc_blur(Npc* npc);
|
||||
@ -336,7 +336,7 @@ void create_part_shadow(ActorID actorID, s32 partIndex);
|
||||
void remove_part_shadow(ActorID actorID, s32 partIndex);
|
||||
void create_part_shadow_by_ref(UNK_TYPE arg0, ActorPart* part); // arg0 unused
|
||||
|
||||
ScriptInstance* get_script_by_index(s32 index);
|
||||
Evt* get_script_by_index(s32 index);
|
||||
|
||||
void set_action_state(s32 actionState);
|
||||
s32 get_collider_type_by_id(s32 colliderID);
|
||||
@ -346,7 +346,7 @@ void subtract_hp(s32 amt);
|
||||
void open_status_menu_long(void);
|
||||
|
||||
void suspend_all_group(s32 groupFlags);
|
||||
void kill_script(ScriptInstance* instanceToKill);
|
||||
void kill_script(Evt* instanceToKill);
|
||||
void exec_entity_commandlist(Entity* entity);
|
||||
|
||||
void sfx_reset_door_sounds(void);
|
||||
@ -439,10 +439,10 @@ Npc* func_8003E534(NpcID npcId); // get_npc_safe
|
||||
void func_80077BD0(s32, s32, s32, s32, s32, s32);
|
||||
|
||||
void dead_playFX_11(s32, f32, f32, f32, f32);
|
||||
s32 dead_get_variable(ScriptInstance* script, Bytecode var);
|
||||
f32 dead_get_float_variable(ScriptInstance* script, Bytecode var);
|
||||
s32 dead_set_variable(ScriptInstance* script, Bytecode var, s32 value);
|
||||
f32 dead_set_float_variable(ScriptInstance* script, Bytecode var, f32 value);
|
||||
s32 dead_get_variable(Evt* script, Bytecode var);
|
||||
f32 dead_get_float_variable(Evt* script, Bytecode var);
|
||||
s32 dead_set_variable(Evt* script, Bytecode var, s32 value);
|
||||
f32 dead_set_float_variable(Evt* script, Bytecode var, f32 value);
|
||||
f32 dead_clamp_angle(f32 theta);
|
||||
s32 dead_rand_int(s32);
|
||||
void func_8006CAC0(float mf[4][4], float x, float y, float z);
|
||||
@ -457,8 +457,8 @@ f32 phys_get_spin_history(s32 lag, s32* x, s32* y, s32* z);
|
||||
void sfx_get_spatialized_sound_params(f32 arg0, f32 arg1, f32 arg2, s16* arg3, s16* arg4, s32 arg5);
|
||||
void sfx_play_sound_with_params(s32 arg0, u8 arg1, u8 arg2, s16 arg3);
|
||||
s32 func_8004A784(Npc* npc, f32 arg1, f32* arg2, f32* arg3, f32* arg4, f32* arg5);
|
||||
void base_UnkNpcAIFunc1(ScriptInstance* script, NpcAISettings* aiSettings, EnemyTerritoryThing* territory);
|
||||
void DeadUnkNpcAIFunc1(ScriptInstance* script, NpcAISettings* aiSettings, EnemyTerritoryThing* territory);
|
||||
void base_UnkNpcAIFunc1(Evt* script, NpcAISettings* aiSettings, EnemyTerritoryThing* territory);
|
||||
void DeadUnkNpcAIFunc1(Evt* script, NpcAISettings* aiSettings, EnemyTerritoryThing* territory);
|
||||
|
||||
s32* spr_get_npc_palettes(u16 arg0);
|
||||
void spr_draw_player_sprite(s32 arg0, s32 arg1, s32 arg2, s32 arg3, s32 arg4);
|
||||
|
@ -65,7 +65,7 @@
|
||||
//NOTE: SCRIPT_ALLOC is probably not quite correct, but this is the closest thing to matching for the functions its used in. Needs more work.
|
||||
#define SCRIPT_ALLOC(new, index) \
|
||||
{ \
|
||||
(*gCurrentScriptListPtr)[index] = new = heap_malloc(sizeof(ScriptInstance)); \
|
||||
(*gCurrentScriptListPtr)[index] = new = heap_malloc(sizeof(Evt)); \
|
||||
gNumScripts++; \
|
||||
ASSERT(new != NULL); \
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ typedef struct MapConfig {
|
||||
/* 0x04 */ UNK_PTR collision;
|
||||
/* 0x08 */ UNK_PTR unk_08;
|
||||
/* 0x0C */ char unk_0C[4];
|
||||
/* 0x10 */ Script* main;
|
||||
/* 0x10 */ EvtSource* main;
|
||||
/* 0x14 */ EntryList* entryList;
|
||||
/* 0x18 */ s32 entryCount;
|
||||
/* 0x1C */ char unk_1C[12];
|
||||
@ -87,11 +87,11 @@ typedef struct NpcSettings {
|
||||
/* 0x04 */ s16 height;
|
||||
/* 0x06 */ s16 radius;
|
||||
/* 0x08 */ UNK_PTR otherAI;
|
||||
/* 0x0C */ Script* onInteract;
|
||||
/* 0x10 */ Script* ai;
|
||||
/* 0x14 */ Script* onHit;
|
||||
/* 0x18 */ Script* aux;
|
||||
/* 0x1C */ Script* onDefeat;
|
||||
/* 0x0C */ EvtSource* onInteract;
|
||||
/* 0x10 */ EvtSource* ai;
|
||||
/* 0x14 */ EvtSource* onHit;
|
||||
/* 0x18 */ EvtSource* aux;
|
||||
/* 0x1C */ EvtSource* onDefeat;
|
||||
/* 0x20 */ s32 flags;
|
||||
/* 0x24 */ char unk_24[4];
|
||||
/* 0x28 */ s16 level;
|
||||
@ -194,7 +194,7 @@ typedef struct StaticNpc {
|
||||
/* 0x004 */ NpcSettings* settings;
|
||||
/* 0x008 */ Vec3f pos;
|
||||
/* 0x014 */ s32 flags;
|
||||
/* 0x018 */ Script* init;
|
||||
/* 0x018 */ EvtSource* init;
|
||||
/* 0x01C */ char unk_1C[8];
|
||||
/* 0x024 */ s32 yaw;
|
||||
/* 0x028 */ s8 dropFlags; // TODO: use EnemyDrops (requires tons of map edits)
|
||||
@ -265,24 +265,24 @@ typedef struct Enemy {
|
||||
/* 0x10 */ Vec3s unk_10;
|
||||
/* 0x16 */ char unk_16[2];
|
||||
/* 0x18 */ struct NpcSettings* npcSettings;
|
||||
/* 0x1C */ Script* initBytecode;
|
||||
/* 0x20 */ Script* interactBytecode;
|
||||
/* 0x24 */ Script* aiBytecode;
|
||||
/* 0x28 */ Script* hitBytecode;
|
||||
/* 0x2C */ Script* auxBytecode;
|
||||
/* 0x30 */ Script* defeatBytecode;
|
||||
/* 0x34 */ struct ScriptInstance* initScript;
|
||||
/* 0x38 */ struct ScriptInstance* interactScript;
|
||||
/* 0x3C */ struct ScriptInstance* aiScript;
|
||||
/* 0x40 */ struct ScriptInstance* hitScript;
|
||||
/* 0x44 */ struct ScriptInstance* auxScript;
|
||||
/* 0x48 */ struct ScriptInstance* defeatScript;
|
||||
/* 0x4C */ ScriptID initScriptID;
|
||||
/* 0x50 */ ScriptID interactScriptID;
|
||||
/* 0x54 */ ScriptID aiScriptID;
|
||||
/* 0x58 */ ScriptID hitScriptID;
|
||||
/* 0x5C */ ScriptID auxScriptID;
|
||||
/* 0x60 */ ScriptID defeatScriptID;
|
||||
/* 0x1C */ EvtSource* initBytecode;
|
||||
/* 0x20 */ EvtSource* interactBytecode;
|
||||
/* 0x24 */ EvtSource* aiBytecode;
|
||||
/* 0x28 */ EvtSource* hitBytecode;
|
||||
/* 0x2C */ EvtSource* auxBytecode;
|
||||
/* 0x30 */ EvtSource* defeatBytecode;
|
||||
/* 0x34 */ struct Evt* initScript;
|
||||
/* 0x38 */ struct Evt* interactScript;
|
||||
/* 0x3C */ struct Evt* aiScript;
|
||||
/* 0x40 */ struct Evt* hitScript;
|
||||
/* 0x44 */ struct Evt* auxScript;
|
||||
/* 0x48 */ struct Evt* defeatScript;
|
||||
/* 0x4C */ s32 initScriptID;
|
||||
/* 0x50 */ s32 interactScriptID;
|
||||
/* 0x54 */ s32 aiScriptID;
|
||||
/* 0x58 */ s32 hitScriptID;
|
||||
/* 0x5C */ s32 auxScriptID;
|
||||
/* 0x60 */ s32 defeatScriptID;
|
||||
/* 0x64 */ UNK_PTR unk_64;
|
||||
/* 0x68 */ char unk_68[4];
|
||||
/* 0x6C */ s32 varTable[16];
|
||||
@ -291,8 +291,8 @@ typedef struct Enemy {
|
||||
/* 0xB4 */ s8 unk_B4;
|
||||
/* 0xB5 */ s8 unk_B5;
|
||||
/* 0xB6 */ char unk_B6[2];
|
||||
/* 0xB8 */ Script* unk_B8; // some bytecode
|
||||
/* 0xBC */ struct ScriptInstance* unk_BC; // some script
|
||||
/* 0xB8 */ EvtSource* unk_B8; // some bytecode
|
||||
/* 0xBC */ struct Evt* unk_BC; // some script
|
||||
/* 0xC0 */ s32 unk_C0; // some script ID
|
||||
/* 0xC4 */ s32 unk_C4;
|
||||
/* 0xC8 */ s32 unk_C8;
|
||||
|
@ -6,360 +6,360 @@
|
||||
|
||||
#include "script_api/common.h"
|
||||
|
||||
ApiStatus EnablePartnerBlur(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus DisablePartnerBlur(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus UseBattleCamPreset(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetBattleCamTarget(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetBattleCamOffsetZ(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus AddBattleCamOffsetZ(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetBattleCamYaw(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus BattleCamTargetActor(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus MoveBattleCamOver(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetBattleCamZoom(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus AddBattleCamZoom(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus FreezeBattleCam(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus close_action_command_instruction_popup(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ShowMessageBox(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ShowVariableMessageBox(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus IsMessageBoxDisplayed(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus WaitForMessageBoxDone(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ForceCloseMessageBox(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetMessageBoxDuration(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ItemDamageEnemy(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ItemAfflictEnemy(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ItemCheckHit(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ActorSpeak(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus EndActorSpeech(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ShowBattleChoice(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus OverrideBattleDmaDest(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus LoadBattleDmaData(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PlaySoundAtActor(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PlaySoundAtPart(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetForegroundModelsVisibleUnchecked(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetForegroundModelsVisible(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus MakeStatusField(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus MultiplyByActorScale(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus MultiplyVec2ByActorScale(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus MultiplyVec3ByActorScale(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ApplyShrinkFromOwner(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus StartRumble(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus HasMerleeCastsLeft(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus FXRecoverHP(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus FXRecoverFP(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus IncrementPlayerHP(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus IncrementPlayerFP(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus create_actor(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus StartRumbleWithParams(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus LoadItemScript(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus LoadFreeItemScript(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus LoadMoveScript(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus LoadActionCommand(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetActionSuccess(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetActionSuccess(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetActionSuccessCopy(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetBlockResult(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus CloseActionCommandInfo(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus LoadBattleSection(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetBattlePhase(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetLastElement(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetGoalToHome(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetIdleGoalToHome(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetGoalToIndex(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetIndexFromPos(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetIndexFromHome(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus CountPlayerTargets(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ForceHomePos(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetHomePos(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetGoalToTarget(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetPartGoalToTarget(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetGoalToFirstTarget(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetGoalPos(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetIdleGoal(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus AddGoalPos(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetGoalPos(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetIdleGoal(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetPartTarget(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetActorPos(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetPartOffset(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetPartPos(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetHomePos(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetActorPos(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetPartPos(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetEnemyTargetOffset(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetAnimation(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetAnimation(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetAnimationRate(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetActorYaw(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetActorYaw(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetPartYaw(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetPartYaw(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetActorJumpGravity(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetActorIdleJumpGravity(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetActorSpeed(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetActorIdleSpeed(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetPartJumpGravity(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetPartMoveSpeed(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetJumpAnimations(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus AddActorPos(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetActorDispOffset(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetPartDispOffset(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetPartDispOffset(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus AddPartDispOffset(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetActorVar(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetActorVar(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus AddActorVar(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetPartMovementVar(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetPartMovementVar(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus AddPartMovementVar(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetActorRotation(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetActorRotationOffset(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetActorRotation(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetPartRotation(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetPartRotationOffset(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetPartRotation(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetActorScale(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetActorScaleModifier(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetActorScale(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetPartScale(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetPartScale(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetBattleFlags(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetBattleFlagBits(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetBattleFlags2(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetBattleFlagBits2(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetActorFlags(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetActorFlagBits(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetActorFlags(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetPartFlags(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetPartFlagBits(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetPartTargetFlags(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetPartTargetFlagBits(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetPartFlags(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetPartTargetFlags(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetPartEventFlags(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetPartEventBits(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetPartEventFlags(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus HPBarToHome(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus HPBarToCurrent(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SummonEnemy(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetOwnerID(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetOwnerID(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ActorExists(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetBattleInputMask(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetBattleInputButtons(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus CheckButtonPress(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus CheckButtonHeld(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus CheckButtonDown(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetBattleState(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PlayerCreateTargetList(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus EnemyCreateTargetList(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus InitTargetIterator(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetOwnerTarget(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ChooseNextTarget(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetTargetListLength(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetOwnerTarget(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetPlayerActorID(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetDistanceToGoal(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus AddActorDecoration(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus RemoveActorDecoration(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ModifyActorDecoration(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus UseIdleAnimation(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetStatusFlags(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus RemovePlayerBuffs(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetPartAlpha(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus CreatePartShadow(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus RemovePartShadow(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetBattleVar(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetBattleVar(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ResetAllActorSounds(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetActorSounds(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ResetActorSounds(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetPartSounds(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetActorType(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ShowShockEffect(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetActorAttackBoost(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetActorDefenseBoost(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus BoostAttack(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus BoostDefense(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus VanishActor(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ElectrifyActor(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus HealActor(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus WaitForBuffDone(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus CopyBuffs(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetMenuSelection(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PlayerFallToGoal(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PlayerLandJump(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PlayerRunToGoal(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus CancelablePlayerRunToGoal(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetPlayerHP(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PlayerDamageEnemy(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PlayerPowerBounceEnemy(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PlayerTestEnemy(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus DispatchDamagePlayerEvent(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus EnablePlayerBlur(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus DidActionSucceed(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus BindTakeTurn(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PauseTakeTurn(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ResumeTakeTurn(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus BindIdle(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus EnableIdleScript(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus BindHandleEvent(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus BindNextTurn(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus JumpToGoal(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus IdleJumpToGoal(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus JumpWithBounce(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus LandJump(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus FallToGoal(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus RunToGoal(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus IdleRunToGoal(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus JumpPartTo(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus FallPartTo(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus LandJumpPart(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus RunPartTo(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus FlyToGoal(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus IdleFlyToGoal(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus FlyPartTo(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetLastEvent(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetTargetActor(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetEnemyHP(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetActorHP(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetEnemyMaxHP(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus RemoveActor(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus DropStarPoints(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetDefenseTable(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetStatusTable(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetIdleAnimations(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus EnemyDamageTarget(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus EnemyFollowupAfflictTarget(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus EnemyTestTarget(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus DispatchDamageEvent(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus DispatchEvent(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetTargetOffset(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus EnableActorBlur(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus AfflictActor(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetEncounterState(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus YieldTurn(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetActorSize(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetActorSize(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetPartSize(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetOriginalActorType(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetCurrentActorType(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetLastDamage(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus EnableActorGlow(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus WasStatusInflicted(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus CopyStatusEffects(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ClearStatusEffects(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus MakeOwnerTargetIndex(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetActorLevel(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PartnerDamageEnemy(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PartnerAfflictEnemy(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PartnerPowerBounceEnemy(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PartnerTestEnemy(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus DeletePartner(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetDamageIntensity(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus AddEffectOffset(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus LoadStarPowerScript(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_80248DD0(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_80248DE4(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_80249804(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_8024A214(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_8024A990(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_8024AFE4(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_8024B5FC(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_8024B9A0(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_8024BDA4(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_8024C180(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_8024C570(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_8024C944(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_8024CB68(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_8024E9B0(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_8024E748(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus InitVirtualEntityList(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus InitAnimatedModels(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_8024CE9C(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802CABE8(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802CAE50(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802A9000_430020(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802A9120_421B10(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802807D0(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802694A4(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_80269524(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_80269550(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_8026919C(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_80280818(ScriptInstance* script, s32 isInitialCall); ///< YieldTurn copy
|
||||
ApiStatus func_8024ECF8(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_8027D32C(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetActionCommandResult(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus EnablePartnerBlur(Evt* script, s32 isInitialCall);
|
||||
ApiStatus DisablePartnerBlur(Evt* script, s32 isInitialCall);
|
||||
ApiStatus UseBattleCamPreset(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetBattleCamTarget(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetBattleCamOffsetZ(Evt* script, s32 isInitialCall);
|
||||
ApiStatus AddBattleCamOffsetZ(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetBattleCamYaw(Evt* script, s32 isInitialCall);
|
||||
ApiStatus BattleCamTargetActor(Evt* script, s32 isInitialCall);
|
||||
ApiStatus MoveBattleCamOver(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetBattleCamZoom(Evt* script, s32 isInitialCall);
|
||||
ApiStatus AddBattleCamZoom(Evt* script, s32 isInitialCall);
|
||||
ApiStatus FreezeBattleCam(Evt* script, s32 isInitialCall);
|
||||
ApiStatus close_action_command_instruction_popup(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ShowMessageBox(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ShowVariableMessageBox(Evt* script, s32 isInitialCall);
|
||||
ApiStatus IsMessageBoxDisplayed(Evt* script, s32 isInitialCall);
|
||||
ApiStatus WaitForMessageBoxDone(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ForceCloseMessageBox(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetMessageBoxDuration(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ItemDamageEnemy(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ItemAfflictEnemy(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ItemCheckHit(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ActorSpeak(Evt* script, s32 isInitialCall);
|
||||
ApiStatus EndActorSpeech(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ShowBattleChoice(Evt* script, s32 isInitialCall);
|
||||
ApiStatus OverrideBattleDmaDest(Evt* script, s32 isInitialCall);
|
||||
ApiStatus LoadBattleDmaData(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PlaySoundAtActor(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PlaySoundAtPart(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetForegroundModelsVisibleUnchecked(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetForegroundModelsVisible(Evt* script, s32 isInitialCall);
|
||||
ApiStatus MakeStatusField(Evt* script, s32 isInitialCall);
|
||||
ApiStatus MultiplyByActorScale(Evt* script, s32 isInitialCall);
|
||||
ApiStatus MultiplyVec2ByActorScale(Evt* script, s32 isInitialCall);
|
||||
ApiStatus MultiplyVec3ByActorScale(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ApplyShrinkFromOwner(Evt* script, s32 isInitialCall);
|
||||
ApiStatus StartRumble(Evt* script, s32 isInitialCall);
|
||||
ApiStatus HasMerleeCastsLeft(Evt* script, s32 isInitialCall);
|
||||
ApiStatus FXRecoverHP(Evt* script, s32 isInitialCall);
|
||||
ApiStatus FXRecoverFP(Evt* script, s32 isInitialCall);
|
||||
ApiStatus IncrementPlayerHP(Evt* script, s32 isInitialCall);
|
||||
ApiStatus IncrementPlayerFP(Evt* script, s32 isInitialCall);
|
||||
ApiStatus create_actor(Evt* script, s32 isInitialCall);
|
||||
ApiStatus StartRumbleWithParams(Evt* script, s32 isInitialCall);
|
||||
ApiStatus LoadItemScript(Evt* script, s32 isInitialCall);
|
||||
ApiStatus LoadFreeItemScript(Evt* script, s32 isInitialCall);
|
||||
ApiStatus LoadMoveScript(Evt* script, s32 isInitialCall);
|
||||
ApiStatus LoadActionCommand(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetActionSuccess(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetActionSuccess(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetActionSuccessCopy(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetBlockResult(Evt* script, s32 isInitialCall);
|
||||
ApiStatus CloseActionCommandInfo(Evt* script, s32 isInitialCall);
|
||||
ApiStatus LoadBattleSection(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetBattlePhase(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetLastElement(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetGoalToHome(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetIdleGoalToHome(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetGoalToIndex(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetIndexFromPos(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetIndexFromHome(Evt* script, s32 isInitialCall);
|
||||
ApiStatus CountPlayerTargets(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ForceHomePos(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetHomePos(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetGoalToTarget(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetPartGoalToTarget(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetGoalToFirstTarget(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetGoalPos(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetIdleGoal(Evt* script, s32 isInitialCall);
|
||||
ApiStatus AddGoalPos(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetGoalPos(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetIdleGoal(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetPartTarget(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetActorPos(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetPartOffset(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetPartPos(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetHomePos(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetActorPos(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetPartPos(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetEnemyTargetOffset(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetAnimation(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetAnimation(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetAnimationRate(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetActorYaw(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetActorYaw(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetPartYaw(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetPartYaw(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetActorJumpGravity(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetActorIdleJumpGravity(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetActorSpeed(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetActorIdleSpeed(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetPartJumpGravity(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetPartMoveSpeed(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetJumpAnimations(Evt* script, s32 isInitialCall);
|
||||
ApiStatus AddActorPos(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetActorDispOffset(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetPartDispOffset(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetPartDispOffset(Evt* script, s32 isInitialCall);
|
||||
ApiStatus AddPartDispOffset(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetActorVar(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetActorVar(Evt* script, s32 isInitialCall);
|
||||
ApiStatus AddActorVar(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetPartMovementVar(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetPartMovementVar(Evt* script, s32 isInitialCall);
|
||||
ApiStatus AddPartMovementVar(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetActorRotation(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetActorRotationOffset(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetActorRotation(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetPartRotation(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetPartRotationOffset(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetPartRotation(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetActorScale(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetActorScaleModifier(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetActorScale(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetPartScale(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetPartScale(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetBattleFlags(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetBattleFlagBits(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetBattleFlags2(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetBattleFlagBits2(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetActorFlags(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetActorFlagBits(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetActorFlags(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetPartFlags(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetPartFlagBits(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetPartTargetFlags(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetPartTargetFlagBits(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetPartFlags(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetPartTargetFlags(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetPartEventFlags(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetPartEventBits(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetPartEventFlags(Evt* script, s32 isInitialCall);
|
||||
ApiStatus HPBarToHome(Evt* script, s32 isInitialCall);
|
||||
ApiStatus HPBarToCurrent(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SummonEnemy(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetOwnerID(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetOwnerID(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ActorExists(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetBattleInputMask(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetBattleInputButtons(Evt* script, s32 isInitialCall);
|
||||
ApiStatus CheckButtonPress(Evt* script, s32 isInitialCall);
|
||||
ApiStatus CheckButtonHeld(Evt* script, s32 isInitialCall);
|
||||
ApiStatus CheckButtonDown(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetBattleState(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PlayerCreateTargetList(Evt* script, s32 isInitialCall);
|
||||
ApiStatus EnemyCreateTargetList(Evt* script, s32 isInitialCall);
|
||||
ApiStatus InitTargetIterator(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetOwnerTarget(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ChooseNextTarget(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetTargetListLength(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetOwnerTarget(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetPlayerActorID(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetDistanceToGoal(Evt* script, s32 isInitialCall);
|
||||
ApiStatus AddActorDecoration(Evt* script, s32 isInitialCall);
|
||||
ApiStatus RemoveActorDecoration(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ModifyActorDecoration(Evt* script, s32 isInitialCall);
|
||||
ApiStatus UseIdleAnimation(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetStatusFlags(Evt* script, s32 isInitialCall);
|
||||
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 SetBattleVar(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetBattleVar(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ResetAllActorSounds(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetActorSounds(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ResetActorSounds(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetPartSounds(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetActorType(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ShowShockEffect(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetActorAttackBoost(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetActorDefenseBoost(Evt* script, s32 isInitialCall);
|
||||
ApiStatus BoostAttack(Evt* script, s32 isInitialCall);
|
||||
ApiStatus BoostDefense(Evt* script, s32 isInitialCall);
|
||||
ApiStatus VanishActor(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ElectrifyActor(Evt* script, s32 isInitialCall);
|
||||
ApiStatus HealActor(Evt* script, s32 isInitialCall);
|
||||
ApiStatus WaitForBuffDone(Evt* script, s32 isInitialCall);
|
||||
ApiStatus CopyBuffs(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetMenuSelection(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PlayerFallToGoal(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PlayerLandJump(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PlayerRunToGoal(Evt* script, s32 isInitialCall);
|
||||
ApiStatus CancelablePlayerRunToGoal(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetPlayerHP(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PlayerDamageEnemy(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PlayerPowerBounceEnemy(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PlayerTestEnemy(Evt* script, s32 isInitialCall);
|
||||
ApiStatus DispatchDamagePlayerEvent(Evt* script, s32 isInitialCall);
|
||||
ApiStatus EnablePlayerBlur(Evt* script, s32 isInitialCall);
|
||||
ApiStatus DidActionSucceed(Evt* script, s32 isInitialCall);
|
||||
ApiStatus BindTakeTurn(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PauseTakeTurn(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ResumeTakeTurn(Evt* script, s32 isInitialCall);
|
||||
ApiStatus BindIdle(Evt* script, s32 isInitialCall);
|
||||
ApiStatus EnableIdleScript(Evt* script, s32 isInitialCall);
|
||||
ApiStatus BindHandleEvent(Evt* script, s32 isInitialCall);
|
||||
ApiStatus BindNextTurn(Evt* script, s32 isInitialCall);
|
||||
ApiStatus JumpToGoal(Evt* script, s32 isInitialCall);
|
||||
ApiStatus IdleJumpToGoal(Evt* script, s32 isInitialCall);
|
||||
ApiStatus JumpWithBounce(Evt* script, s32 isInitialCall);
|
||||
ApiStatus LandJump(Evt* script, s32 isInitialCall);
|
||||
ApiStatus FallToGoal(Evt* script, s32 isInitialCall);
|
||||
ApiStatus RunToGoal(Evt* script, s32 isInitialCall);
|
||||
ApiStatus IdleRunToGoal(Evt* script, s32 isInitialCall);
|
||||
ApiStatus JumpPartTo(Evt* script, s32 isInitialCall);
|
||||
ApiStatus FallPartTo(Evt* script, s32 isInitialCall);
|
||||
ApiStatus LandJumpPart(Evt* script, s32 isInitialCall);
|
||||
ApiStatus RunPartTo(Evt* script, s32 isInitialCall);
|
||||
ApiStatus FlyToGoal(Evt* script, s32 isInitialCall);
|
||||
ApiStatus IdleFlyToGoal(Evt* script, s32 isInitialCall);
|
||||
ApiStatus FlyPartTo(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetLastEvent(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetTargetActor(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetEnemyHP(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetActorHP(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetEnemyMaxHP(Evt* script, s32 isInitialCall);
|
||||
ApiStatus RemoveActor(Evt* script, s32 isInitialCall);
|
||||
ApiStatus DropStarPoints(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetDefenseTable(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetStatusTable(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetIdleAnimations(Evt* script, s32 isInitialCall);
|
||||
ApiStatus EnemyDamageTarget(Evt* script, s32 isInitialCall);
|
||||
ApiStatus EnemyFollowupAfflictTarget(Evt* script, s32 isInitialCall);
|
||||
ApiStatus EnemyTestTarget(Evt* script, s32 isInitialCall);
|
||||
ApiStatus DispatchDamageEvent(Evt* script, s32 isInitialCall);
|
||||
ApiStatus DispatchEvent(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetTargetOffset(Evt* script, s32 isInitialCall);
|
||||
ApiStatus EnableActorBlur(Evt* script, s32 isInitialCall);
|
||||
ApiStatus AfflictActor(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetEncounterState(Evt* script, s32 isInitialCall);
|
||||
ApiStatus YieldTurn(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetActorSize(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetActorSize(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetPartSize(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetOriginalActorType(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetCurrentActorType(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetLastDamage(Evt* script, s32 isInitialCall);
|
||||
ApiStatus EnableActorGlow(Evt* script, s32 isInitialCall);
|
||||
ApiStatus WasStatusInflicted(Evt* script, s32 isInitialCall);
|
||||
ApiStatus CopyStatusEffects(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ClearStatusEffects(Evt* script, s32 isInitialCall);
|
||||
ApiStatus MakeOwnerTargetIndex(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetActorLevel(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PartnerDamageEnemy(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PartnerAfflictEnemy(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PartnerPowerBounceEnemy(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PartnerTestEnemy(Evt* script, s32 isInitialCall);
|
||||
ApiStatus DeletePartner(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetDamageIntensity(Evt* script, s32 isInitialCall);
|
||||
ApiStatus AddEffectOffset(Evt* script, s32 isInitialCall);
|
||||
ApiStatus LoadStarPowerScript(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_80248DD0(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_80248DE4(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_80249804(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_8024A214(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_8024A990(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_8024AFE4(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_8024B5FC(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_8024B9A0(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_8024BDA4(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_8024C180(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_8024C570(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_8024C944(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_8024CB68(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_8024E9B0(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_8024E748(Evt* script, s32 isInitialCall);
|
||||
ApiStatus InitVirtualEntityList(Evt* script, s32 isInitialCall);
|
||||
ApiStatus InitAnimatedModels(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_8024CE9C(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_802CABE8(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_802CAE50(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_802A9000_430020(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_802A9120_421B10(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_802807D0(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_802694A4(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_80269524(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_80269550(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_8026919C(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_80280818(Evt* script, s32 isInitialCall); ///< YieldTurn copy
|
||||
ApiStatus func_8024ECF8(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_8027D32C(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetActionCommandResult(Evt* script, s32 isInitialCall);
|
||||
|
||||
extern Script PlayerScriptDispatcher;
|
||||
extern Script PeachScriptDispatcher;
|
||||
extern Script ExecutePlayerAction;
|
||||
extern Script ExecutePeachAction;
|
||||
extern Script HandleEvent_Player;
|
||||
extern Script BtlPutPartnerAway;
|
||||
extern Script BtlBringPartnerOut;
|
||||
extern Script MarioEnterStage;
|
||||
extern Script PeachEnterStage;
|
||||
extern Script PlayerFirstStrike;
|
||||
extern Script StartDefend;
|
||||
extern Script RunAwayStart;
|
||||
extern Script RunAwayFail;
|
||||
extern Script RunAwayReset;
|
||||
extern Script PlayEatFX;
|
||||
extern Script PlayDrinkFX;
|
||||
extern Script UseLifeShroom;
|
||||
extern Script MerleeRunOut;
|
||||
extern Script MerleeAttackBonus;
|
||||
extern Script MerleeDefenseBonus;
|
||||
extern Script MerleeExpBonus;
|
||||
extern Script PlayerHappy;
|
||||
extern Script DoDizzyAttack;
|
||||
extern Script RegainAbility;
|
||||
extern Script UseMystery;
|
||||
extern Script DoSleepHit;
|
||||
extern Script DoDizzyHit;
|
||||
extern Script DoParalyzeHit;
|
||||
extern Script DoPoisonHit;
|
||||
extern Script DoStopHit;
|
||||
extern Script DoFreezeHit;
|
||||
extern Script DoShrinkHit;
|
||||
extern Script ForceNextTarget;
|
||||
extern Script DoNormalHit;
|
||||
extern Script DoBurnHit;
|
||||
extern Script DoShockHit;
|
||||
extern Script DoImmune;
|
||||
extern Script DoDeath;
|
||||
extern Script Collapse;
|
||||
extern Script DoScareAway;
|
||||
extern Script DoSpinSmashHit;
|
||||
extern Script DoJumpBack;
|
||||
extern Script DoReturnHome;
|
||||
extern Script DoRecover;
|
||||
extern Script DoAirLift;
|
||||
extern Script DoBlowAway;
|
||||
extern Script Rumble_1;
|
||||
extern Script Rumble_2;
|
||||
extern Script Rumble_3;
|
||||
extern Script Rumble_4;
|
||||
extern Script Rumble_5;
|
||||
extern Script Rumble_6;
|
||||
extern Script Rumble_7;
|
||||
extern Script Rumble_Unused_1;
|
||||
extern Script Rumble_Unused_2;
|
||||
extern Script Rumble_Unused_3;
|
||||
extern Script Rumble_Unused_4;
|
||||
extern Script CamPreset_A;
|
||||
extern Script CamPreset_B;
|
||||
extern Script CamPreset_C;
|
||||
extern Script CamPreset_D;
|
||||
extern Script CamPreset_E;
|
||||
extern Script CamPreset_F;
|
||||
extern Script CamPreset_G;
|
||||
extern Script CamPreset_H;
|
||||
extern Script CamPreset_I;
|
||||
extern Script CamPreset_J;
|
||||
extern Script CamPreset_K;
|
||||
extern Script CamPreset_L;
|
||||
extern Script CamPreset_M;
|
||||
extern Script CamPreset_N;
|
||||
extern EvtSource PlayerScriptDispatcher;
|
||||
extern EvtSource PeachScriptDispatcher;
|
||||
extern EvtSource ExecutePlayerAction;
|
||||
extern EvtSource ExecutePeachAction;
|
||||
extern EvtSource HandleEvent_Player;
|
||||
extern EvtSource BtlPutPartnerAway;
|
||||
extern EvtSource BtlBringPartnerOut;
|
||||
extern EvtSource MarioEnterStage;
|
||||
extern EvtSource PeachEnterStage;
|
||||
extern EvtSource PlayerFirstStrike;
|
||||
extern EvtSource StartDefend;
|
||||
extern EvtSource RunAwayStart;
|
||||
extern EvtSource RunAwayFail;
|
||||
extern EvtSource RunAwayReset;
|
||||
extern EvtSource PlayEatFX;
|
||||
extern EvtSource PlayDrinkFX;
|
||||
extern EvtSource UseLifeShroom;
|
||||
extern EvtSource MerleeRunOut;
|
||||
extern EvtSource MerleeAttackBonus;
|
||||
extern EvtSource MerleeDefenseBonus;
|
||||
extern EvtSource MerleeExpBonus;
|
||||
extern EvtSource PlayerHappy;
|
||||
extern EvtSource DoDizzyAttack;
|
||||
extern EvtSource RegainAbility;
|
||||
extern EvtSource UseMystery;
|
||||
extern EvtSource DoSleepHit;
|
||||
extern EvtSource DoDizzyHit;
|
||||
extern EvtSource DoParalyzeHit;
|
||||
extern EvtSource DoPoisonHit;
|
||||
extern EvtSource DoStopHit;
|
||||
extern EvtSource DoFreezeHit;
|
||||
extern EvtSource DoShrinkHit;
|
||||
extern EvtSource ForceNextTarget;
|
||||
extern EvtSource DoNormalHit;
|
||||
extern EvtSource DoBurnHit;
|
||||
extern EvtSource DoShockHit;
|
||||
extern EvtSource DoImmune;
|
||||
extern EvtSource DoDeath;
|
||||
extern EvtSource Collapse;
|
||||
extern EvtSource DoScareAway;
|
||||
extern EvtSource DoSpinSmashHit;
|
||||
extern EvtSource DoJumpBack;
|
||||
extern EvtSource DoReturnHome;
|
||||
extern EvtSource DoRecover;
|
||||
extern EvtSource DoAirLift;
|
||||
extern EvtSource DoBlowAway;
|
||||
extern EvtSource Rumble_1;
|
||||
extern EvtSource Rumble_2;
|
||||
extern EvtSource Rumble_3;
|
||||
extern EvtSource Rumble_4;
|
||||
extern EvtSource Rumble_5;
|
||||
extern EvtSource Rumble_6;
|
||||
extern EvtSource Rumble_7;
|
||||
extern EvtSource Rumble_Unused_1;
|
||||
extern EvtSource Rumble_Unused_2;
|
||||
extern EvtSource Rumble_Unused_3;
|
||||
extern EvtSource Rumble_Unused_4;
|
||||
extern EvtSource CamPreset_A;
|
||||
extern EvtSource CamPreset_B;
|
||||
extern EvtSource CamPreset_C;
|
||||
extern EvtSource CamPreset_D;
|
||||
extern EvtSource CamPreset_E;
|
||||
extern EvtSource CamPreset_F;
|
||||
extern EvtSource CamPreset_G;
|
||||
extern EvtSource CamPreset_H;
|
||||
extern EvtSource CamPreset_I;
|
||||
extern EvtSource CamPreset_J;
|
||||
extern EvtSource CamPreset_K;
|
||||
extern EvtSource CamPreset_L;
|
||||
extern EvtSource CamPreset_M;
|
||||
extern EvtSource CamPreset_N;
|
||||
|
||||
#endif
|
||||
|
@ -4,305 +4,305 @@
|
||||
#include "common_structs.h"
|
||||
#include "si.h"
|
||||
|
||||
ApiStatus FadeBackgroundToBlack(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus UnfadeBackgroundFromBlack(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetCamLookAtObjVector(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus HasMerleeCasts(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus OnDefeatEnemy(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus OnFleeBattleDrops(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetEncounterStatusFlags(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus LoadDemoBattle(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus RemoveNpc(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus RemoveEncounter(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetBattleOutcome(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetOwnerEncounterTrigger(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus DoNpcDefeat(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus StartBattle(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus StartBattleWith(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus StartBossBattle(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetBattleMusic(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus BindNpcAI(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus BindNpcIdle(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus RestartNpcAI(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus EnableNpcAI(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetNpcAux(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus BindNpcAux(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus RestartNpcAux(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus EnableNpcAux(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus BindNpcInteract(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus BindNpcHit(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus BindNpcDefeat(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetSelfVar(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetSelfVar(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetNpcVar(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetNpcVar(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetSelfRotation(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetSelfEnemyFlags(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetSelfEnemyFlagBits(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetSelfNpcID(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ClearDefeatedEnemies(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetEnemyFlagBits(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetSelfAnimationFromTable(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ShowCoinCounter(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus MakeEntity(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus AssignScript(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus AssignAreaFlag(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus AssignFlag(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus AssignBlockFlag(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus AssignPanelFlag(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus AssignCrateFlag(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus DeleteTrigger(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus TranslateModel(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus RotateModel(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ScaleModel(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus CloneModel(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetModelIndex(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetModelCenter(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetTexPanner(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetCustomGfxEnabled(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus EnableTexPanning(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus EnableModel(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetGroupEnabled(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetTexPanOffset(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetModelFlags(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus TranslateGroup(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus RotateGroup(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ScaleGroup(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus EnableGroup(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ModifyColliderFlags(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetColliderCenter(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ParentColliderToModel(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus UpdateColliderTransform(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetZoneEnabled(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GotoMap(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GotoMapSpecial(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GotoMapByID(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetEntryID(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetMapID(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetLoadType(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetRenderMode(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PlaySoundAtModel(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PlaySoundAtCollider(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetCamEnabled(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetCamFlag80(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetCamPerspective(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetCamViewport(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetCamBGColor(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetCamTarget(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ShakeCam(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetCamLeadPlayer(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PanToTarget(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus UseSettingsFrom(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus LoadSettings(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetCamType(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetCamPitch(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetCamDistance(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetCamPosA(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetCamPosB(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetCamPosC(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetPanTarget(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetCamSpeed(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetCamType(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetCamPitch(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetCamDistance(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetCamPosA(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetCamPosB(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetCamPosC(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetCamPosition(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus WaitForCam(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetCamProperties(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus AdjustCam(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ResetCam(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus LoadAnimatedModel(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PlayModelAnimation(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetAnimatedModelRootPosition(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ChangeModelAnimation(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus DeleteNpc(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetNpcPointer(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetNpcPos(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetNpcRotation(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetNpcScale(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetNpcCollisionSize(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetNpcSpeed(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetNpcJumpscale(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetNpcAnimation(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetNpcAnimation(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus NpcMoveTo(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus NpcJump0(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus NpcJump1(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus NpcFlyTo(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetNpcYaw(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetNpcYaw(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus InterpNpcYaw(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus NpcFacePlayer(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus NpcFaceNpc(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetNpcFlagBits(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetNpcPos(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus EnableNpcShadow(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus EnableNpcBlur(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ClearPartnerMoveHistory(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetPartnerPos(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus DisablePartnerAI(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus EnablePartnerAI(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus BringPartnerOut(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PutPartnerAway(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetCurrentPartnerID(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus IsCurrentPartnerFlying(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetNpcDecoration(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PlaySoundAtNpc(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SpeakToPlayer(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus EndSpeech(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ContinueSpeech(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SpeakToNpc(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ShowMessageAtScreenPos(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ShowMessageAtWorldPos(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus CloseMessage(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SwitchMessage(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ShowChoice(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus CloseChoice(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus CancelMessage(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus FadeBackgroundToBlack(Evt* script, s32 isInitialCall);
|
||||
ApiStatus UnfadeBackgroundFromBlack(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetCamLookAtObjVector(Evt* script, s32 isInitialCall);
|
||||
ApiStatus HasMerleeCasts(Evt* script, s32 isInitialCall);
|
||||
ApiStatus OnDefeatEnemy(Evt* script, s32 isInitialCall);
|
||||
ApiStatus OnFleeBattleDrops(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetEncounterStatusFlags(Evt* script, s32 isInitialCall);
|
||||
ApiStatus LoadDemoBattle(Evt* script, s32 isInitialCall);
|
||||
ApiStatus RemoveNpc(Evt* script, s32 isInitialCall);
|
||||
ApiStatus RemoveEncounter(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetBattleOutcome(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetOwnerEncounterTrigger(Evt* script, s32 isInitialCall);
|
||||
ApiStatus DoNpcDefeat(Evt* script, s32 isInitialCall);
|
||||
ApiStatus StartBattle(Evt* script, s32 isInitialCall);
|
||||
ApiStatus StartBattleWith(Evt* script, s32 isInitialCall);
|
||||
ApiStatus StartBossBattle(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetBattleMusic(Evt* script, s32 isInitialCall);
|
||||
ApiStatus BindNpcAI(Evt* script, s32 isInitialCall);
|
||||
ApiStatus BindNpcIdle(Evt* script, s32 isInitialCall);
|
||||
ApiStatus RestartNpcAI(Evt* script, s32 isInitialCall);
|
||||
ApiStatus EnableNpcAI(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetNpcAux(Evt* script, s32 isInitialCall);
|
||||
ApiStatus BindNpcAux(Evt* script, s32 isInitialCall);
|
||||
ApiStatus RestartNpcAux(Evt* script, s32 isInitialCall);
|
||||
ApiStatus EnableNpcAux(Evt* script, s32 isInitialCall);
|
||||
ApiStatus BindNpcInteract(Evt* script, s32 isInitialCall);
|
||||
ApiStatus BindNpcHit(Evt* script, s32 isInitialCall);
|
||||
ApiStatus BindNpcDefeat(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetSelfVar(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetSelfVar(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetNpcVar(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetNpcVar(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetSelfRotation(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetSelfEnemyFlags(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetSelfEnemyFlagBits(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetSelfNpcID(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ClearDefeatedEnemies(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetEnemyFlagBits(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetSelfAnimationFromTable(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ShowCoinCounter(Evt* script, s32 isInitialCall);
|
||||
ApiStatus MakeEntity(Evt* script, s32 isInitialCall);
|
||||
ApiStatus AssignScript(Evt* script, s32 isInitialCall);
|
||||
ApiStatus AssignAreaFlag(Evt* script, s32 isInitialCall);
|
||||
ApiStatus AssignFlag(Evt* script, s32 isInitialCall);
|
||||
ApiStatus AssignBlockFlag(Evt* script, s32 isInitialCall);
|
||||
ApiStatus AssignPanelFlag(Evt* script, s32 isInitialCall);
|
||||
ApiStatus AssignCrateFlag(Evt* script, s32 isInitialCall);
|
||||
ApiStatus DeleteTrigger(Evt* script, s32 isInitialCall);
|
||||
ApiStatus TranslateModel(Evt* script, s32 isInitialCall);
|
||||
ApiStatus RotateModel(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ScaleModel(Evt* script, s32 isInitialCall);
|
||||
ApiStatus CloneModel(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetModelIndex(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetModelCenter(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetTexPanner(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetCustomGfxEnabled(Evt* script, s32 isInitialCall);
|
||||
ApiStatus EnableTexPanning(Evt* script, s32 isInitialCall);
|
||||
ApiStatus EnableModel(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetGroupEnabled(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetTexPanOffset(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetModelFlags(Evt* script, s32 isInitialCall);
|
||||
ApiStatus TranslateGroup(Evt* script, s32 isInitialCall);
|
||||
ApiStatus RotateGroup(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ScaleGroup(Evt* script, s32 isInitialCall);
|
||||
ApiStatus EnableGroup(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ModifyColliderFlags(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetColliderCenter(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ParentColliderToModel(Evt* script, s32 isInitialCall);
|
||||
ApiStatus UpdateColliderTransform(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetZoneEnabled(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GotoMap(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GotoMapSpecial(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GotoMapByID(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetEntryID(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetMapID(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetLoadType(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetRenderMode(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PlaySoundAtModel(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PlaySoundAtCollider(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetCamEnabled(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetCamFlag80(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetCamPerspective(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetCamViewport(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetCamBGColor(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetCamTarget(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ShakeCam(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetCamLeadPlayer(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PanToTarget(Evt* script, s32 isInitialCall);
|
||||
ApiStatus UseSettingsFrom(Evt* script, s32 isInitialCall);
|
||||
ApiStatus LoadSettings(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetCamType(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetCamPitch(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetCamDistance(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetCamPosA(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetCamPosB(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetCamPosC(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetPanTarget(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetCamSpeed(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetCamType(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetCamPitch(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetCamDistance(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetCamPosA(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetCamPosB(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetCamPosC(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetCamPosition(Evt* script, s32 isInitialCall);
|
||||
ApiStatus WaitForCam(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetCamProperties(Evt* script, s32 isInitialCall);
|
||||
ApiStatus AdjustCam(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ResetCam(Evt* script, s32 isInitialCall);
|
||||
ApiStatus LoadAnimatedModel(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PlayModelAnimation(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetAnimatedModelRootPosition(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ChangeModelAnimation(Evt* script, s32 isInitialCall);
|
||||
ApiStatus DeleteNpc(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetNpcPointer(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetNpcPos(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetNpcRotation(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetNpcScale(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetNpcCollisionSize(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetNpcSpeed(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetNpcJumpscale(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetNpcAnimation(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetNpcAnimation(Evt* script, s32 isInitialCall);
|
||||
ApiStatus NpcMoveTo(Evt* script, s32 isInitialCall);
|
||||
ApiStatus NpcJump0(Evt* script, s32 isInitialCall);
|
||||
ApiStatus NpcJump1(Evt* script, s32 isInitialCall);
|
||||
ApiStatus NpcFlyTo(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetNpcYaw(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetNpcYaw(Evt* script, s32 isInitialCall);
|
||||
ApiStatus InterpNpcYaw(Evt* script, s32 isInitialCall);
|
||||
ApiStatus NpcFacePlayer(Evt* script, s32 isInitialCall);
|
||||
ApiStatus NpcFaceNpc(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetNpcFlagBits(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetNpcPos(Evt* script, s32 isInitialCall);
|
||||
ApiStatus EnableNpcShadow(Evt* script, s32 isInitialCall);
|
||||
ApiStatus EnableNpcBlur(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ClearPartnerMoveHistory(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetPartnerPos(Evt* script, s32 isInitialCall);
|
||||
ApiStatus DisablePartnerAI(Evt* script, s32 isInitialCall);
|
||||
ApiStatus EnablePartnerAI(Evt* script, s32 isInitialCall);
|
||||
ApiStatus BringPartnerOut(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PutPartnerAway(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetCurrentPartnerID(Evt* script, s32 isInitialCall);
|
||||
ApiStatus IsCurrentPartnerFlying(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetNpcDecoration(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PlaySoundAtNpc(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SpeakToPlayer(Evt* script, s32 isInitialCall);
|
||||
ApiStatus EndSpeech(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ContinueSpeech(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SpeakToNpc(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ShowMessageAtScreenPos(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ShowMessageAtWorldPos(Evt* script, s32 isInitialCall);
|
||||
ApiStatus CloseMessage(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SwitchMessage(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ShowChoice(Evt* script, s32 isInitialCall);
|
||||
ApiStatus CloseChoice(Evt* script, s32 isInitialCall);
|
||||
ApiStatus CancelMessage(Evt* script, s32 isInitialCall);
|
||||
ApiStatus CancelMessageAndBlock(); // ???
|
||||
ApiStatus SetMessageImages(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetMessageString(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetMessageValue(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus HidePlayerShadow(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus DisablePlayerPhysics(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus DisablePlayerInput(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetPlayerPos(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetPlayerCollisionSize(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetPlayerSpeed(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetPlayerJumpscale(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetPlayerAnimation(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetPlayerActionState(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PlayerMoveTo(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PlayerJump(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PlayerJump1(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PlayerJump2(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus InterpPlayerYaw(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PlayerFaceNpc(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetPlayerTargetYaw(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetPlayerFlagBits(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetPlayerActionState(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetPlayerPos(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetPlayerAnimation(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus FullyRestoreHPandFP(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus FullyRestoreSP(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus EnablePartner(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus DisablePartner(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus UseEntryHeading(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus UseExitHeading(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus DisablePulseStone(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetCurrentPartner(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus Disable8bitMario(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PlaySoundAtPlayer(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus MakeLerp(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus UpdateLerp(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus RandInt(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetAngleBetweenNPCs(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetAngleToNPC(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetAngleToPlayer(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus AwaitPlayerApproach(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus IsPlayerWithin(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus AwaitPlayerLeave(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus AddVectorPolar(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus LoadPath(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetNextPathPos(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetDist2D(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetValueByRef(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetValueByRef(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus EnableStatusMenu(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ShowStatusMenu(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetGameMode(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ClampAngleInt(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ClampAngleFloat(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus FadeOutMusic(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetMusicTrack(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus FadeInMusic(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ClearAmbientSounds(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PlayAmbientSounds(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PlaySound(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PlaySoundAt(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus StopSound(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus UseDoorSounds(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PlaySoundAtF(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus RemoveKeyItemAt(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus RemoveItemAt(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus AddKeyItem(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus HasKeyItem(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus FindKeyItem(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus AddItem(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus FindItem(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus RemoveItem(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus CountFortessKeys(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus RemoveFortressKeys(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus MakeItemEntity(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus DropItemEntity(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus DropItemEntityB(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus RemoveItemEntity(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus AddBadge(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus RemoveBadge(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetItemPos(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetItemFlags(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus AddCoin(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus AddStarPoints(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus AddStarPieces(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetItemPower(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ShowGotItem(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ShowEmote(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ShowSleepBubble(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus RemoveEffect(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PlayEffect(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetSpriteShading(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus EnableSpriteShading(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetDemoState(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus DemoPressButton(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus DemoReleaseButton(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus DemoSetButtons(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus DemoJoystickRadial(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus DemoJoystickXY(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus WaitForPlayerInputEnabled(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus IsPlayerOnValidFloor(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802CFE2C(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802CFD30(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus IsStartingConversation(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetTimeFreezeMode(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus CreateVirtualEntity(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetNpcSprite(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetMessageImages(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetMessageString(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetMessageValue(Evt* script, s32 isInitialCall);
|
||||
ApiStatus HidePlayerShadow(Evt* script, s32 isInitialCall);
|
||||
ApiStatus DisablePlayerPhysics(Evt* script, s32 isInitialCall);
|
||||
ApiStatus DisablePlayerInput(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetPlayerPos(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetPlayerCollisionSize(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetPlayerSpeed(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetPlayerJumpscale(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetPlayerAnimation(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetPlayerActionState(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PlayerMoveTo(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PlayerJump(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PlayerJump1(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PlayerJump2(Evt* script, s32 isInitialCall);
|
||||
ApiStatus InterpPlayerYaw(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PlayerFaceNpc(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetPlayerTargetYaw(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetPlayerFlagBits(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetPlayerActionState(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetPlayerPos(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetPlayerAnimation(Evt* script, s32 isInitialCall);
|
||||
ApiStatus FullyRestoreHPandFP(Evt* script, s32 isInitialCall);
|
||||
ApiStatus FullyRestoreSP(Evt* script, s32 isInitialCall);
|
||||
ApiStatus EnablePartner(Evt* script, s32 isInitialCall);
|
||||
ApiStatus DisablePartner(Evt* script, s32 isInitialCall);
|
||||
ApiStatus UseEntryHeading(Evt* script, s32 isInitialCall);
|
||||
ApiStatus UseExitHeading(Evt* script, s32 isInitialCall);
|
||||
ApiStatus DisablePulseStone(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetCurrentPartner(Evt* script, s32 isInitialCall);
|
||||
ApiStatus Disable8bitMario(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PlaySoundAtPlayer(Evt* script, s32 isInitialCall);
|
||||
ApiStatus MakeLerp(Evt* script, s32 isInitialCall);
|
||||
ApiStatus UpdateLerp(Evt* script, s32 isInitialCall);
|
||||
ApiStatus RandInt(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetAngleBetweenNPCs(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetAngleToNPC(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetAngleToPlayer(Evt* script, s32 isInitialCall);
|
||||
ApiStatus AwaitPlayerApproach(Evt* script, s32 isInitialCall);
|
||||
ApiStatus IsPlayerWithin(Evt* script, s32 isInitialCall);
|
||||
ApiStatus AwaitPlayerLeave(Evt* script, s32 isInitialCall);
|
||||
ApiStatus AddVectorPolar(Evt* script, s32 isInitialCall);
|
||||
ApiStatus LoadPath(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetNextPathPos(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetDist2D(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetValueByRef(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetValueByRef(Evt* script, s32 isInitialCall);
|
||||
ApiStatus EnableStatusMenu(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ShowStatusMenu(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetGameMode(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ClampAngleInt(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ClampAngleFloat(Evt* script, s32 isInitialCall);
|
||||
ApiStatus FadeOutMusic(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetMusicTrack(Evt* script, s32 isInitialCall);
|
||||
ApiStatus FadeInMusic(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ClearAmbientSounds(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PlayAmbientSounds(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PlaySound(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PlaySoundAt(Evt* script, s32 isInitialCall);
|
||||
ApiStatus StopSound(Evt* script, s32 isInitialCall);
|
||||
ApiStatus UseDoorSounds(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PlaySoundAtF(Evt* script, s32 isInitialCall);
|
||||
ApiStatus RemoveKeyItemAt(Evt* script, s32 isInitialCall);
|
||||
ApiStatus RemoveItemAt(Evt* script, s32 isInitialCall);
|
||||
ApiStatus AddKeyItem(Evt* script, s32 isInitialCall);
|
||||
ApiStatus HasKeyItem(Evt* script, s32 isInitialCall);
|
||||
ApiStatus FindKeyItem(Evt* script, s32 isInitialCall);
|
||||
ApiStatus AddItem(Evt* script, s32 isInitialCall);
|
||||
ApiStatus FindItem(Evt* script, s32 isInitialCall);
|
||||
ApiStatus RemoveItem(Evt* script, s32 isInitialCall);
|
||||
ApiStatus CountFortessKeys(Evt* script, s32 isInitialCall);
|
||||
ApiStatus RemoveFortressKeys(Evt* script, s32 isInitialCall);
|
||||
ApiStatus MakeItemEntity(Evt* script, s32 isInitialCall);
|
||||
ApiStatus DropItemEntity(Evt* script, s32 isInitialCall);
|
||||
ApiStatus DropItemEntityB(Evt* script, s32 isInitialCall);
|
||||
ApiStatus RemoveItemEntity(Evt* script, s32 isInitialCall);
|
||||
ApiStatus AddBadge(Evt* script, s32 isInitialCall);
|
||||
ApiStatus RemoveBadge(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetItemPos(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetItemFlags(Evt* script, s32 isInitialCall);
|
||||
ApiStatus AddCoin(Evt* script, s32 isInitialCall);
|
||||
ApiStatus AddStarPoints(Evt* script, s32 isInitialCall);
|
||||
ApiStatus AddStarPieces(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetItemPower(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ShowGotItem(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ShowEmote(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ShowSleepBubble(Evt* script, s32 isInitialCall);
|
||||
ApiStatus RemoveEffect(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PlayEffect(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetSpriteShading(Evt* script, s32 isInitialCall);
|
||||
ApiStatus EnableSpriteShading(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetDemoState(Evt* script, s32 isInitialCall);
|
||||
ApiStatus DemoPressButton(Evt* script, s32 isInitialCall);
|
||||
ApiStatus DemoReleaseButton(Evt* script, s32 isInitialCall);
|
||||
ApiStatus DemoSetButtons(Evt* script, s32 isInitialCall);
|
||||
ApiStatus DemoJoystickRadial(Evt* script, s32 isInitialCall);
|
||||
ApiStatus DemoJoystickXY(Evt* script, s32 isInitialCall);
|
||||
ApiStatus WaitForPlayerInputEnabled(Evt* script, s32 isInitialCall);
|
||||
ApiStatus IsPlayerOnValidFloor(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_802CFE2C(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_802CFD30(Evt* script, s32 isInitialCall);
|
||||
ApiStatus IsStartingConversation(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetTimeFreezeMode(Evt* script, s32 isInitialCall);
|
||||
ApiStatus CreateVirtualEntity(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetNpcSprite(Evt* script, s32 isInitialCall);
|
||||
|
||||
ApiStatus DeleteVirtualEntity(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetVirtualEntityPosition(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetVirtualEntityScale(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetVirtualEntityRotation(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetVirtualEntityJumpGravity(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus VirtualEntityJumpTo(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802D2884(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802D2C14(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802D7B10(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ShowConsumableChoicePopup(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_80045900(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ShowKeyChoicePopup(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus CloseChoicePopup(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802D2B6C(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_80045838(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ModifyGlobalOverrideFlags(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802CF56C(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802CA988(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802CDE68(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802D8248(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802D286C(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802D2520(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PushSong(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PopSong(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802D62E4(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_80044238(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus MakeLocalVertexCopy(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetCustomGfxBuilders(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetModelCustomGfx(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetNpcPaletteSwapMode(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetNpcPaletteSwapping(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus MakeTransformGroup(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus DeleteVirtualEntity(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetVirtualEntityPosition(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetVirtualEntityScale(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetVirtualEntityRotation(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetVirtualEntityJumpGravity(Evt* script, s32 isInitialCall);
|
||||
ApiStatus VirtualEntityJumpTo(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_802D2884(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_802D2C14(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_802D7B10(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ShowConsumableChoicePopup(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_80045900(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ShowKeyChoicePopup(Evt* script, s32 isInitialCall);
|
||||
ApiStatus CloseChoicePopup(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_802D2B6C(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_80045838(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ModifyGlobalOverrideFlags(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_802CF56C(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_802CA988(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_802CDE68(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_802D8248(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_802D286C(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_802D2520(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PushSong(Evt* script, s32 isInitialCall);
|
||||
ApiStatus PopSong(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_802D62E4(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_80044238(Evt* script, s32 isInitialCall);
|
||||
ApiStatus MakeLocalVertexCopy(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetCustomGfxBuilders(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetModelCustomGfx(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetNpcPaletteSwapMode(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetNpcPaletteSwapping(Evt* script, s32 isInitialCall);
|
||||
ApiStatus MakeTransformGroup(Evt* script, s32 isInitialCall);
|
||||
|
||||
extern Script EnemyNpcHit;
|
||||
extern Script EnemyNpcDefeat;
|
||||
extern EvtSource EnemyNpcHit;
|
||||
extern EvtSource EnemyNpcDefeat;
|
||||
|
||||
#endif
|
||||
|
@ -6,28 +6,28 @@
|
||||
|
||||
#include "script_api/common.h"
|
||||
|
||||
ApiStatus MakeNpcs(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus DoBasicAI(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus ResetFromLava(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus MakeShop(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus MakeShopOwner(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus MakeDoorAdvanced(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus CheckActionState(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus CreatePushBlockGrid(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetPushBlock(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetPushBlock(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetGridIndexFromPos(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetPushBlockFallEffect(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus TeleportPartnerToPlayer(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus MakeNpcs(Evt* script, s32 isInitialCall);
|
||||
ApiStatus DoBasicAI(Evt* script, s32 isInitialCall);
|
||||
ApiStatus ResetFromLava(Evt* script, s32 isInitialCall);
|
||||
ApiStatus MakeShop(Evt* script, s32 isInitialCall);
|
||||
ApiStatus MakeShopOwner(Evt* script, s32 isInitialCall);
|
||||
ApiStatus MakeDoorAdvanced(Evt* script, s32 isInitialCall);
|
||||
ApiStatus CheckActionState(Evt* script, s32 isInitialCall);
|
||||
ApiStatus CreatePushBlockGrid(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetPushBlock(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetPushBlock(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetGridIndexFromPos(Evt* script, s32 isInitialCall);
|
||||
ApiStatus SetPushBlockFallEffect(Evt* script, s32 isInitialCall);
|
||||
ApiStatus TeleportPartnerToPlayer(Evt* script, s32 isInitialCall);
|
||||
|
||||
extern Script EnterWalk;
|
||||
extern Script EnterWalkShort;
|
||||
extern Script EnterSavePoint;
|
||||
extern Script ExitWalk;
|
||||
extern Script ExitSingleDoor;
|
||||
extern Script EnterSingleDoor;
|
||||
extern Script ExitDoubleDoor;
|
||||
extern Script EnterDoubleDoor;
|
||||
extern EvtSource EnterWalk;
|
||||
extern EvtSource EnterWalkShort;
|
||||
extern EvtSource EnterSavePoint;
|
||||
extern EvtSource ExitWalk;
|
||||
extern EvtSource ExitSingleDoor;
|
||||
extern EvtSource EnterSingleDoor;
|
||||
extern EvtSource ExitDoubleDoor;
|
||||
extern EvtSource EnterDoubleDoor;
|
||||
|
||||
|
||||
#endif
|
||||
|
197
include/si.h
197
include/si.h
@ -3,105 +3,106 @@
|
||||
|
||||
#include "ultra64.h"
|
||||
|
||||
// Should be at least the width of a pointer i.e. intptr_t
|
||||
typedef s32 Bytecode;
|
||||
typedef s32 ScriptID;
|
||||
|
||||
typedef enum ScriptOpcode {
|
||||
ScriptOpcode_END = 0x01,
|
||||
ScriptOpcode_RETURN,
|
||||
ScriptOpcode_LABEL, ///< Args: index
|
||||
ScriptOpcode_GOTO, ///< Args: index
|
||||
ScriptOpcode_LOOP, ///< Args: number of repeats (0 = infinite)
|
||||
ScriptOpcode_END_LOOP,
|
||||
ScriptOpcode_BREAK_LOOP,
|
||||
ScriptOpcode_SLEEP_FRAMES,
|
||||
ScriptOpcode_SLEEP_SECS,
|
||||
ScriptOpcode_IF_EQ, ///< Args: a, b
|
||||
ScriptOpcode_IF_NE, ///< Args: a, b
|
||||
ScriptOpcode_IF_LT, ///< Args: a, b
|
||||
ScriptOpcode_IF_GT, ///< Args: a, b
|
||||
ScriptOpcode_IF_LE, ///< Args: a, b
|
||||
ScriptOpcode_IF_GE, ///< Args: a, b
|
||||
ScriptOpcode_IF_FLAG, ///< Args: a, b
|
||||
ScriptOpcode_IF_NOT_FLAG, ///< Args: a, b
|
||||
ScriptOpcode_ELSE,
|
||||
ScriptOpcode_END_IF,
|
||||
ScriptOpcode_MATCH, ///< Args: expression to test against
|
||||
ScriptOpcode_MATCH_CONST, ///< Args: value to test against
|
||||
ScriptOpcode_CASE_EQ, ///< Args: expression to test for
|
||||
ScriptOpcode_CASE_NE, ///< Args: expression to test for
|
||||
ScriptOpcode_CASE_LT, ///< Args: expression to test for
|
||||
ScriptOpcode_CASE_GT, ///< Args: expression to test for
|
||||
ScriptOpcode_CASE_LE, ///< Args: expression to test for
|
||||
ScriptOpcode_CASE_GE, ///< Args: expression to test for
|
||||
ScriptOpcode_CASE_ELSE,
|
||||
ScriptOpcode_CASE_MULTI_OR_EQ, ///< Args: expression to test for
|
||||
ScriptOpcode_CASE_MULTI_AND_EQ, ///< Args: expression to test for
|
||||
ScriptOpcode_CASE_FLAG, ///< Args: expression to test for
|
||||
ScriptOpcode_END_CASE_MULTI, ///< Ends the case block of ScriptOpcode_CASE_MULTI_OR_EQ condition(s).
|
||||
ScriptOpcode_CASE_RANGE, ///< Args: from, to
|
||||
ScriptOpcode_BREAK_MATCH,
|
||||
ScriptOpcode_END_MATCH,
|
||||
ScriptOpcode_SET, ///< Args: container, expression
|
||||
ScriptOpcode_SET_CONST, ///< Args: container, value
|
||||
ScriptOpcode_SET_F, ///< Args: container, expression
|
||||
ScriptOpcode_ADD, ///< Args: container, expression to increment by
|
||||
ScriptOpcode_SUB, ///< Args: container, expression to decrement by
|
||||
ScriptOpcode_MUL, ///< Args: container, expression to multiply by
|
||||
ScriptOpcode_DIV, ///< Integer division. Args: container, expression to divide by
|
||||
ScriptOpcode_MOD, ///< Args: container, expression to divide by
|
||||
ScriptOpcode_ADD_F, ///< Args: container, expression to increment by
|
||||
ScriptOpcode_SUB_F, ///< Args: container, expression to decrement by
|
||||
ScriptOpcode_MUL_F, ///< Args: container, expression to multiply by
|
||||
ScriptOpcode_DIV_F, ///< Args: container, expression to divide by
|
||||
ScriptOpcode_USE_BUFFER, ///< Args: s32*
|
||||
ScriptOpcode_BUFFER_READ_1, /// Args: container
|
||||
ScriptOpcode_BUFFER_READ_2, /// Args: container, container
|
||||
ScriptOpcode_BUFFER_READ_3, /// Args: container, container, container
|
||||
ScriptOpcode_BUFFER_READ_4, /// Args: container, container, container, container
|
||||
ScriptOpcode_BUFFER_PEEK, ///< Args: index, container
|
||||
ScriptOpcode_USE_BUFFER_F, ///< Identical to USE_BUFFER. Args: f32*
|
||||
ScriptOpcode_BUFFER_READ_1_F, /// Args: container
|
||||
ScriptOpcode_BUFFER_READ_2_F, /// Args: container, container
|
||||
ScriptOpcode_BUFFER_READ_3_F, /// Args: container, container, container
|
||||
ScriptOpcode_BUFFER_READ_4_F, /// Args: container, container, container, container
|
||||
ScriptOpcode_BUFFER_PEEK_F, ///< Args: index, container
|
||||
ScriptOpcode_USE_ARRAY, ///< Args: *s32
|
||||
ScriptOpcode_USE_FLAGS, ///< Args: *s32
|
||||
ScriptOpcode_NEW_ARRAY, ///< Allocates a new array. Args: length, s32*
|
||||
ScriptOpcode_AND, ///< Args: container, expression to bitwise AND with
|
||||
ScriptOpcode_AND_CONST, ///< Args: container, value to bitwise AND with
|
||||
ScriptOpcode_OR, ///< Args: container, expression to bitwise OR with
|
||||
ScriptOpcode_OR_CONST, ///< Args: container, value to bitwise OR with
|
||||
ScriptOpcode_CALL, ///< Args: *function, ...
|
||||
ScriptOpcode_SPAWN_SCRIPT, ///< Args: Script*
|
||||
ScriptOpcode_SPAWN_GET_ID, ///< Args: Script*, container
|
||||
ScriptOpcode_AWAIT_SCRIPT, ///< Spawns a script and waits for it to return before continuing. Args: Script*
|
||||
ScriptOpcode_BIND_TRIGGER, ///< Args: Script*, trigger flags, s32 target, 1, Trigger*
|
||||
ScriptOpcode_UNBIND, ///< Unbinds any triggers bound to this script.
|
||||
ScriptOpcode_KILL_SCRIPT, ///< Args: ScriptID
|
||||
ScriptOpcode_JUMP, ///< Args: Script*
|
||||
ScriptOpcode_SET_PRIORITY, ///< Args: priority
|
||||
ScriptOpcode_SET_TIMESCALE, ///< Args: timescale
|
||||
ScriptOpcode_SET_GROUP, ///< Args: group
|
||||
ScriptOpcode_BIND_PADLOCK, ///< Args: Script*, trigger flags, s32 target, ItemList*, 0, 1
|
||||
ScriptOpcode_SUSPEND_GROUP, ///< Args: group
|
||||
ScriptOpcode_RESUME_GROUP, ///< Args: group
|
||||
ScriptOpcode_SUSPEND_OTHERS, ///< Args: group
|
||||
ScriptOpcode_RESUME_OTHERS, ///< Args: group
|
||||
ScriptOpcode_SUSPEND_SCRIPT, ///< Args: ScriptID
|
||||
ScriptOpcode_RESUME_SCRIPT, ///< Args: ScriptID
|
||||
ScriptOpcode_DOES_SCRIPT_EXIST, ///< Args: ScriptID, container
|
||||
ScriptOpcode_SPAWN_THREAD,
|
||||
ScriptOpcode_END_SPAWN_THREAD,
|
||||
ScriptOpcode_PARALLEL_THREAD, ///< Parallel threads are killed as soon as the parent script returns.
|
||||
ScriptOpcode_END_PARALLEL_THREAD,
|
||||
ScriptOpcode_90,
|
||||
ScriptOpcode_DEBUG_PRINT, ///< Args: expression
|
||||
ScriptOpcode_92,
|
||||
ScriptOpcode_93,
|
||||
ScriptOpcode_94,
|
||||
} ScriptOpcode;
|
||||
enum {
|
||||
EVT_OP_INTERNAL_FETCH,
|
||||
EVT_OP_END,
|
||||
EVT_OP_RETURN,
|
||||
EVT_OP_LABEL, ///< Args: index
|
||||
EVT_OP_GOTO, ///< Args: index
|
||||
EVT_OP_LOOP, ///< Args: number of repeats (0 = infinite)
|
||||
EVT_OP_END_LOOP,
|
||||
EVT_OP_BREAK_LOOP,
|
||||
EVT_OP_SLEEP_FRAMES,
|
||||
EVT_OP_SLEEP_SECS,
|
||||
EVT_OP_IF_EQ, ///< Args: a, b
|
||||
EVT_OP_IF_NE, ///< Args: a, b
|
||||
EVT_OP_IF_LT, ///< Args: a, b
|
||||
EVT_OP_IF_GT, ///< Args: a, b
|
||||
EVT_OP_IF_LE, ///< Args: a, b
|
||||
EVT_OP_IF_GE, ///< Args: a, b
|
||||
EVT_OP_IF_FLAG, ///< Args: a, b
|
||||
EVT_OP_IF_NOT_FLAG, ///< Args: a, b
|
||||
EVT_OP_ELSE,
|
||||
EVT_OP_END_IF,
|
||||
EVT_OP_MATCH, ///< Args: expression to test against
|
||||
EVT_OP_MATCH_CONST, ///< Args: value to test against
|
||||
EVT_OP_CASE_EQ, ///< Args: expression to test for
|
||||
EVT_OP_CASE_NE, ///< Args: expression to test for
|
||||
EVT_OP_CASE_LT, ///< Args: expression to test for
|
||||
EVT_OP_CASE_GT, ///< Args: expression to test for
|
||||
EVT_OP_CASE_LE, ///< Args: expression to test for
|
||||
EVT_OP_CASE_GE, ///< Args: expression to test for
|
||||
EVT_OP_CASE_ELSE,
|
||||
EVT_OP_CASE_MULTI_OR_EQ, ///< Args: expression to test for
|
||||
EVT_OP_CASE_MULTI_AND_EQ, ///< Args: expression to test for
|
||||
EVT_OP_CASE_FLAG, ///< Args: expression to test for
|
||||
EVT_OP_END_CASE_MULTI, ///< Ends the case block of EVT_OP_CASE_MULTI_OR_EQ condition(s).
|
||||
EVT_OP_CASE_RANGE, ///< Args: from, to
|
||||
EVT_OP_BREAK_MATCH,
|
||||
EVT_OP_END_MATCH,
|
||||
EVT_OP_SET, ///< Args: container, expression
|
||||
EVT_OP_SET_CONST, ///< Args: container, value
|
||||
EVT_OP_SET_F, ///< Args: container, expression
|
||||
EVT_OP_ADD, ///< Args: container, expression to increment by
|
||||
EVT_OP_SUB, ///< Args: container, expression to decrement by
|
||||
EVT_OP_MUL, ///< Args: container, expression to multiply by
|
||||
EVT_OP_DIV, ///< Integer division. Args: container, expression to divide by
|
||||
EVT_OP_MOD, ///< Args: container, expression to divide by
|
||||
EVT_OP_ADD_F, ///< Args: container, expression to increment by
|
||||
EVT_OP_SUB_F, ///< Args: container, expression to decrement by
|
||||
EVT_OP_MUL_F, ///< Args: container, expression to multiply by
|
||||
EVT_OP_DIV_F, ///< Args: container, expression to divide by
|
||||
EVT_OP_USE_BUFFER, ///< Args: s32*
|
||||
EVT_OP_BUFFER_READ_1, /// Args: container
|
||||
EVT_OP_BUFFER_READ_2, /// Args: container, container
|
||||
EVT_OP_BUFFER_READ_3, /// Args: container, container, container
|
||||
EVT_OP_BUFFER_READ_4, /// Args: container, container, container, container
|
||||
EVT_OP_BUFFER_PEEK, ///< Args: index, container
|
||||
EVT_OP_USE_BUFFER_F, ///< Identical to USE_BUFFER. Args: f32*
|
||||
EVT_OP_BUFFER_READ_1_F, /// Args: container
|
||||
EVT_OP_BUFFER_READ_2_F, /// Args: container, container
|
||||
EVT_OP_BUFFER_READ_3_F, /// Args: container, container, container
|
||||
EVT_OP_BUFFER_READ_4_F, /// Args: container, container, container, container
|
||||
EVT_OP_BUFFER_PEEK_F, ///< Args: index, container
|
||||
EVT_OP_USE_ARRAY, ///< Args: *s32
|
||||
EVT_OP_USE_FLAGS, ///< Args: *s32
|
||||
EVT_OP_NEW_ARRAY, ///< Allocates a new array. Args: length, s32*
|
||||
EVT_OP_AND, ///< Args: container, expression to bitwise AND with
|
||||
EVT_OP_AND_CONST, ///< Args: container, value to bitwise AND with
|
||||
EVT_OP_OR, ///< Args: container, expression to bitwise OR with
|
||||
EVT_OP_OR_CONST, ///< Args: container, value to bitwise OR with
|
||||
EVT_OP_CALL, ///< Args: *function, ...
|
||||
EVT_OP_SPAWN_SCRIPT, ///< Args: EvtSource*
|
||||
EVT_OP_SPAWN_GET_ID, ///< Args: EvtSource*, container
|
||||
EVT_OP_AWAIT_SCRIPT, ///< Spawns a script and waits for it to return before continuing. Args: EvtSource*
|
||||
EVT_OP_BIND_TRIGGER, ///< Args: EvtSource*, trigger flags, s32 target, 1, Trigger*
|
||||
EVT_OP_UNBIND, ///< Unbinds any triggers bound to this script.
|
||||
EVT_OP_KILL_SCRIPT, ///< Args: ScriptID
|
||||
EVT_OP_JUMP, ///< Args: EvtSource*
|
||||
EVT_OP_SET_PRIORITY, ///< Args: priority
|
||||
EVT_OP_SET_TIMESCALE, ///< Args: timescale
|
||||
EVT_OP_SET_GROUP, ///< Args: group
|
||||
EVT_OP_BIND_PADLOCK, ///< Args: EvtSource*, trigger flags, s32 target, ItemList*, 0, 1
|
||||
EVT_OP_SUSPEND_GROUP, ///< Args: group
|
||||
EVT_OP_RESUME_GROUP, ///< Args: group
|
||||
EVT_OP_SUSPEND_OTHERS, ///< Args: group
|
||||
EVT_OP_RESUME_OTHERS, ///< Args: group
|
||||
EVT_OP_SUSPEND_SCRIPT, ///< Args: ScriptID
|
||||
EVT_OP_RESUME_SCRIPT, ///< Args: ScriptID
|
||||
EVT_OP_DOES_SCRIPT_EXIST, ///< Args: ScriptID, container
|
||||
EVT_OP_SPAWN_THREAD,
|
||||
EVT_OP_END_SPAWN_THREAD,
|
||||
EVT_OP_PARALLEL_THREAD, ///< Parallel threads are killed as soon as the parent script returns.
|
||||
EVT_OP_END_PARALLEL_THREAD,
|
||||
EVT_OP_90,
|
||||
EVT_OP_DEBUG_PRINT, ///< Args: expression
|
||||
EVT_OP_92,
|
||||
EVT_OP_93,
|
||||
EVT_OP_94,
|
||||
};
|
||||
|
||||
#define SI_VAR(v) ((v - 30000000))
|
||||
#define SI_MAP_VAR(v) ((v - 50000000))
|
||||
@ -129,7 +130,7 @@ typedef enum ScriptOpcode {
|
||||
typedef s32 ApiStatus;
|
||||
#define ApiStatus_BLOCK 0 /* Call again next frame */
|
||||
#define ApiStatus_DONE1 1 /* Unconditional. Probably only exists to return a bool from functions */
|
||||
#define ApiStatus_DONE2 2 /* Conditional on ScriptInstance->disableScripts */
|
||||
#define ApiStatus_DONE2 2 /* Conditional on Evt->disableScripts */
|
||||
#define ApiStatus_REPEAT 3 /* Call again immediately */
|
||||
#define ApiStatus_FINISH 255 /* Corresponds to SI_FINISH */
|
||||
|
||||
|
@ -340,9 +340,9 @@ extern UNK_TYPE D_0A000800;
|
||||
extern UNK_TYPE D_0A000808;
|
||||
|
||||
// Scripts
|
||||
extern Script* SCRIPT_NpcDefeat;
|
||||
extern Script ShakeCam1;
|
||||
extern Script ShakeCamX;
|
||||
extern EvtSource* SCRIPT_NpcDefeat;
|
||||
extern EvtSource ShakeCam1;
|
||||
extern EvtSource ShakeCamX;
|
||||
|
||||
extern s16 gMusicUnkVolume;
|
||||
extern s16 gMusicUnkVolume2;
|
||||
|
@ -240,7 +240,7 @@ INCLUDE_ASM(s32, "16F740", btl_state_draw_end_battle);
|
||||
|
||||
void btl_state_update_defend(void) {
|
||||
Actor* player = gBattleStatus.playerActor;
|
||||
ScriptInstance* script;
|
||||
Evt* script;
|
||||
|
||||
switch (gBattleState2) {
|
||||
case 0:
|
||||
@ -272,12 +272,12 @@ INCLUDE_ASM(s32, "16F740", btl_state_update_defeat);
|
||||
void btl_state_draw_defeat(void) {
|
||||
}
|
||||
|
||||
ApiStatus EnablePartnerBlur(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus EnablePartnerBlur(Evt* script, s32 isInitialCall) {
|
||||
enable_partner_blur();
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus DisablePartnerBlur(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus DisablePartnerBlur(Evt* script, s32 isInitialCall) {
|
||||
disable_partner_blur();
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
34
src/16c8e0.c
34
src/16c8e0.c
@ -22,7 +22,7 @@ extern f32 D_8029EFB0;
|
||||
extern f32 D_8029EFB4;
|
||||
extern f32 D_8029EFB8;
|
||||
|
||||
Script BtlPutPartnerAway = SCRIPT({
|
||||
EvtSource BtlPutPartnerAway = SCRIPT({
|
||||
DispatchEvent(ACTOR_PARTNER, 62);
|
||||
parallel {
|
||||
SI_VAR(0) = 1.0;
|
||||
@ -42,7 +42,7 @@ Script BtlPutPartnerAway = SCRIPT({
|
||||
DisablePartnerBlur();
|
||||
});
|
||||
|
||||
Script BtlBringPartnerOut = SCRIPT({
|
||||
EvtSource BtlBringPartnerOut = SCRIPT({
|
||||
parallel {
|
||||
SI_VAR(0) = 0.1005859375;
|
||||
loop 20 {
|
||||
@ -67,66 +67,66 @@ Script BtlBringPartnerOut = SCRIPT({
|
||||
s8 D_80280CE0[] = { 0, 0, 0, 0 };
|
||||
s32 D_80280CE4 = -1;
|
||||
|
||||
Script CamPreset_B = SCRIPT({
|
||||
EvtSource CamPreset_B = SCRIPT({
|
||||
func_80248DD0();
|
||||
});
|
||||
|
||||
Script CamPreset_F = SCRIPT({
|
||||
EvtSource CamPreset_F = SCRIPT({
|
||||
func_80248DE4();
|
||||
});
|
||||
|
||||
Script CamPreset_M = SCRIPT({
|
||||
EvtSource CamPreset_M = SCRIPT({
|
||||
func_80249804();
|
||||
});
|
||||
|
||||
Script CamPreset_G = SCRIPT({
|
||||
EvtSource CamPreset_G = SCRIPT({
|
||||
func_8024A214();
|
||||
});
|
||||
|
||||
Script CamPreset_I = SCRIPT({
|
||||
EvtSource CamPreset_I = SCRIPT({
|
||||
func_8024A990();
|
||||
});
|
||||
|
||||
Script CamPreset_H = SCRIPT({
|
||||
EvtSource CamPreset_H = SCRIPT({
|
||||
func_8024AFE4();
|
||||
});
|
||||
|
||||
Script CamPreset_N = SCRIPT({
|
||||
EvtSource CamPreset_N = SCRIPT({
|
||||
func_8024B5FC();
|
||||
});
|
||||
|
||||
Script CamPreset_C = SCRIPT({
|
||||
EvtSource CamPreset_C = SCRIPT({
|
||||
func_8024B9A0();
|
||||
});
|
||||
|
||||
Script CamPreset_D = SCRIPT({
|
||||
EvtSource CamPreset_D = SCRIPT({
|
||||
func_8024BDA4();
|
||||
});
|
||||
|
||||
Script CamPreset_E = SCRIPT({
|
||||
EvtSource CamPreset_E = SCRIPT({
|
||||
func_8024C180();
|
||||
});
|
||||
|
||||
Script CamPreset_J = SCRIPT({
|
||||
EvtSource CamPreset_J = SCRIPT({
|
||||
func_8024C570();
|
||||
});
|
||||
|
||||
Script CamPreset_K = SCRIPT({
|
||||
EvtSource CamPreset_K = SCRIPT({
|
||||
func_8024C944();
|
||||
});
|
||||
|
||||
Script CamPreset_L = SCRIPT({
|
||||
EvtSource CamPreset_L = SCRIPT({
|
||||
func_8024CB68();
|
||||
});
|
||||
|
||||
Script CamPreset_A = SCRIPT({
|
||||
EvtSource CamPreset_A = SCRIPT({
|
||||
func_8024E9B0(0, 15, 0);
|
||||
func_8024E748(2, 550);
|
||||
func_8024E748(3, 100);
|
||||
func_8024E748(4, 8);
|
||||
});
|
||||
|
||||
Script D_80280EB8 = SCRIPT({
|
||||
EvtSource D_80280EB8 = SCRIPT({
|
||||
SetCamPerspective(CAM_BATTLE, 6, 25, 16, 1024);
|
||||
SetCamViewport(CAM_BATTLE, 12, 20, 296, 200);
|
||||
SetCamBGColor(CAM_BATTLE, 0, 0, 0);
|
||||
|
42
src/1776B0.c
42
src/1776B0.c
@ -26,7 +26,7 @@ extern s8 D_8029F2A4;
|
||||
extern s8 D_8029F2A5;
|
||||
extern s8 D_8029F2A6;
|
||||
|
||||
ApiStatus func_80248DD0(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80248DD0(Evt* script, s32 isInitialCall) {
|
||||
D_8029F29C = 1;
|
||||
return ApiStatus_BLOCK;
|
||||
}
|
||||
@ -51,7 +51,7 @@ INCLUDE_ASM(s32, "1776B0", func_8024C180);
|
||||
|
||||
INCLUDE_ASM(s32, "1776B0", func_8024C570);
|
||||
|
||||
ApiStatus func_8024C944(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8024C944(Evt* script, s32 isInitialCall) {
|
||||
Camera* camera = &gCameras[1];
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
PlayerStatus* playerStatus = &gPlayerStatus;
|
||||
@ -119,7 +119,7 @@ ApiStatus func_8024C944(ScriptInstance* script, s32 isInitialCall) {
|
||||
|
||||
INCLUDE_ASM(s32, "1776B0", func_8024CB68);
|
||||
|
||||
ApiStatus func_8024CE9C(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8024CE9C(Evt* script, s32 isInitialCall) {
|
||||
Camera* camera = &gCameras[1];
|
||||
|
||||
D_8029F284 = 8;
|
||||
@ -241,7 +241,7 @@ void func_8024E60C(void) {
|
||||
D_8029F2A6 = 0;
|
||||
}
|
||||
|
||||
ApiStatus UseBattleCamPreset(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus UseBattleCamPreset(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 preset;
|
||||
|
||||
@ -256,7 +256,7 @@ ApiStatus UseBattleCamPreset(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_8024E664(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8024E664(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 preset;
|
||||
|
||||
@ -271,7 +271,7 @@ ApiStatus func_8024E664(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_8024E6B4(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8024E6B4(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
|
||||
if (D_80280CE0 != 0) {
|
||||
@ -296,7 +296,7 @@ ApiStatus func_8024E6B4(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_BLOCK;
|
||||
}
|
||||
|
||||
ApiStatus func_8024E748(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8024E748(Evt* script, s32 isInitialCall) {
|
||||
Camera* camera = &gCameras[1];
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 mode;
|
||||
@ -338,7 +338,7 @@ ApiStatus func_8024E748(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_8024E820(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8024E820(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
Camera* camera = &gCameras[1];
|
||||
|
||||
@ -358,7 +358,7 @@ ApiStatus func_8024E820(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetBattleCamTarget(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetBattleCamTarget(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
|
||||
if (D_80280CE0 != 0) {
|
||||
@ -371,7 +371,7 @@ ApiStatus SetBattleCamTarget(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_8024E9B0(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8024E9B0(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
Camera* camera = &gCameras[1];
|
||||
|
||||
@ -386,7 +386,7 @@ ApiStatus func_8024E9B0(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetBattleCamOffsetZ(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetBattleCamOffsetZ(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
|
||||
if (D_80280CE0 != 0) {
|
||||
@ -397,7 +397,7 @@ ApiStatus SetBattleCamOffsetZ(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus AddBattleCamOffsetZ(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus AddBattleCamOffsetZ(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
|
||||
if (D_80280CE0 != 0) {
|
||||
@ -408,7 +408,7 @@ ApiStatus AddBattleCamOffsetZ(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetBattleCamYaw(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetBattleCamYaw(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
|
||||
if (D_80280CE0 != 0) {
|
||||
@ -419,7 +419,7 @@ ApiStatus SetBattleCamYaw(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus BattleCamTargetActor(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus BattleCamTargetActor(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID;
|
||||
|
||||
@ -438,7 +438,7 @@ ApiStatus BattleCamTargetActor(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_8024EB84(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8024EB84(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID;
|
||||
|
||||
@ -457,7 +457,7 @@ ApiStatus func_8024EB84(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus MoveBattleCamOver(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus MoveBattleCamOver(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
|
||||
@ -475,7 +475,7 @@ ApiStatus MoveBattleCamOver(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetBattleCamZoom(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetBattleCamZoom(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
|
||||
if (D_80280CE0 != 0) {
|
||||
@ -486,7 +486,7 @@ ApiStatus SetBattleCamZoom(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus AddBattleCamZoom(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus AddBattleCamZoom(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
|
||||
if (D_80280CE0 != 0) {
|
||||
@ -497,7 +497,7 @@ ApiStatus AddBattleCamZoom(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_8024ECF8(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8024ECF8(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
|
||||
if (D_80280CE0 != 0) {
|
||||
@ -510,12 +510,12 @@ ApiStatus func_8024ECF8(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus FreezeBattleCam(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus FreezeBattleCam(Evt* script, s32 isInitialCall) {
|
||||
D_80280CE0 = get_variable(script, *script->ptrReadPos);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_8024EDA4(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8024EDA4(Evt* script, s32 isInitialCall) {
|
||||
D_8029F2A6 = 0;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ INCLUDE_ASM(s32, "17D6A0", ShowMessageBox);
|
||||
|
||||
INCLUDE_ASM(s32, "17D6A0", ShowVariableMessageBox);
|
||||
|
||||
ApiStatus IsMessageBoxDisplayed(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus IsMessageBoxDisplayed(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 outVar = *args++;
|
||||
|
||||
@ -64,7 +64,7 @@ ApiStatus IsMessageBoxDisplayed(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus WaitForMessageBoxDone(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus WaitForMessageBoxDone(Evt* script, s32 isInitialCall) {
|
||||
return !btl_is_popup_displayed() * ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
|
@ -39,7 +39,7 @@ HitResult calc_item_check_hit(void) {
|
||||
|
||||
INCLUDE_ASM(s32, "17FEB0", calc_item_damage_enemy);
|
||||
|
||||
ApiStatus ItemDamageEnemy(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus ItemDamageEnemy(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 itemDamageOut = *args++;
|
||||
@ -106,7 +106,7 @@ ApiStatus ItemDamageEnemy(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus ItemAfflictEnemy(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus ItemAfflictEnemy(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 itemDamageOut = *args++;
|
||||
@ -174,7 +174,7 @@ ApiStatus ItemAfflictEnemy(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80252B3C(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80252B3C(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 itemDamageOut = *args++;
|
||||
@ -241,7 +241,7 @@ ApiStatus func_80252B3C(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus ItemCheckHit(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus ItemCheckHit(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 itemDamageOut = *args++;
|
||||
|
42
src/181810.c
42
src/181810.c
@ -10,7 +10,7 @@ extern ActorPart* gSpeakingActorPart;
|
||||
|
||||
void msg_printer_set_origin_pos(MessagePrintState* printer, s32 x, s32 y);
|
||||
|
||||
ApiStatus ActorSpeak(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus ActorSpeak(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
Actor* actor;
|
||||
ActorPart* part;
|
||||
@ -110,7 +110,7 @@ ApiStatus ActorSpeak(ScriptInstance* script, s32 isInitialCall) {
|
||||
|
||||
INCLUDE_ASM(s32, "181810", EndActorSpeech);
|
||||
|
||||
ApiStatus ShowBattleChoice(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus ShowBattleChoice(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
|
||||
if (isInitialCall) {
|
||||
@ -132,7 +132,7 @@ ApiStatus ShowBattleChoice(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_BLOCK;
|
||||
}
|
||||
|
||||
ApiStatus func_802535B4(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802535B4(Evt* script, s32 isInitialCall) {
|
||||
if (get_variable(script, *script->ptrReadPos)) {
|
||||
decrement_status_menu_disabled();
|
||||
} else {
|
||||
@ -141,14 +141,14 @@ ApiStatus func_802535B4(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus OverrideBattleDmaDest(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus OverrideBattleDmaDest(Evt* script, s32 isInitialCall) {
|
||||
gBattleDmaDest = get_variable(script, *script->ptrReadPos);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "181810", LoadBattleDmaData);
|
||||
|
||||
ApiStatus func_802536A8(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802536A8(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
|
||||
if (get_variable(script, *script->ptrReadPos) != 0) {
|
||||
@ -163,7 +163,7 @@ ApiStatus func_802536A8(ScriptInstance* script, s32 isInitialCall) {
|
||||
}
|
||||
|
||||
|
||||
ApiStatus func_80253734(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80253734(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
s32 val = get_variable(script, *script->ptrReadPos);
|
||||
|
||||
@ -185,7 +185,7 @@ ApiStatus func_80253734(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802537C0(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802537C0(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 a0 = *args++;
|
||||
s32 a1 = *args++;
|
||||
@ -208,7 +208,7 @@ ApiStatus func_802537C0(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus PlaySoundAtActor(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus PlaySoundAtActor(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Bytecode soundID = *args++;
|
||||
@ -224,7 +224,7 @@ ApiStatus PlaySoundAtActor(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus PlaySoundAtPart(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus PlaySoundAtPart(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 partIndex = get_variable(script, *args++);
|
||||
@ -241,7 +241,7 @@ ApiStatus PlaySoundAtPart(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus PlayLoopingSoundAtActor(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus PlayLoopingSoundAtActor(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 idx = get_variable(script, *args++);
|
||||
@ -259,7 +259,7 @@ ApiStatus PlayLoopingSoundAtActor(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus StopLoopingSoundAtActor(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus StopLoopingSoundAtActor(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 idx = get_variable(script, *args++);
|
||||
@ -280,7 +280,7 @@ ApiStatus StopLoopingSoundAtActor(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetForegroundModelsVisibleUnchecked(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetForegroundModelsVisibleUnchecked(Evt* script, s32 isInitialCall) {
|
||||
if (get_variable(script, *script->ptrReadPos)) {
|
||||
show_foreground_models_unchecked();
|
||||
} else {
|
||||
@ -289,7 +289,7 @@ ApiStatus SetForegroundModelsVisibleUnchecked(ScriptInstance* script, s32 isInit
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetForegroundModelsVisible(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetForegroundModelsVisible(Evt* script, s32 isInitialCall) {
|
||||
if (get_variable(script, *script->ptrReadPos)) {
|
||||
show_foreground_models();
|
||||
} else {
|
||||
@ -298,7 +298,7 @@ ApiStatus SetForegroundModelsVisible(ScriptInstance* script, s32 isInitialCall)
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80253B30(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80253B30(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
Bytecode a0 = *args++;
|
||||
Bytecode a1 = *args++;
|
||||
@ -308,7 +308,7 @@ ApiStatus func_80253B30(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus MakeStatusField(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus MakeStatusField(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 outVar = *args++;
|
||||
s32 a = *args++;
|
||||
@ -350,14 +350,14 @@ INCLUDE_ASM(s32, "181810", save_tattle_flags);
|
||||
|
||||
INCLUDE_ASM(s32, "181810", load_tattle_flags);
|
||||
|
||||
ApiStatus func_80253FB0(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80253FB0(Evt* script, s32 isInitialCall) {
|
||||
gCurrentEncounter.battleOutcome = 3;
|
||||
btl_set_state(0x20);
|
||||
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus MultiplyByActorScale(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus MultiplyByActorScale(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
Actor* actor = get_actor(script->owner1.actorID);
|
||||
|
||||
@ -365,7 +365,7 @@ ApiStatus MultiplyByActorScale(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus MultiplyVec2ByActorScale(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus MultiplyVec2ByActorScale(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
Actor* actor = get_actor(script->owner1.actorID);
|
||||
|
||||
@ -375,7 +375,7 @@ ApiStatus MultiplyVec2ByActorScale(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus MultiplyVec3ByActorScale(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus MultiplyVec3ByActorScale(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
Actor* actor = get_actor(script->owner1.actorID);
|
||||
|
||||
@ -386,7 +386,7 @@ ApiStatus MultiplyVec3ByActorScale(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus ApplyShrinkFromOwner(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus ApplyShrinkFromOwner(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
Actor* actor = get_actor(script->owner1.actorID);
|
||||
s32 amt = get_variable(script, *args);
|
||||
@ -399,7 +399,7 @@ ApiStatus ApplyShrinkFromOwner(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus StartRumble(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus StartRumble(Evt* script, s32 isInitialCall) {
|
||||
start_rumble_type(get_variable(script, *script->ptrReadPos));
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
68
src/18F340.c
68
src/18F340.c
@ -27,7 +27,7 @@ void func_80260A60(void) {
|
||||
}
|
||||
}
|
||||
|
||||
ApiStatus IsPartnerImmobile(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus IsPartnerImmobile(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* playerActor = battleStatus->playerActor;
|
||||
s32 isImmobile = playerActor->debuff == STATUS_FEAR
|
||||
@ -45,7 +45,7 @@ ApiStatus IsPartnerImmobile(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus activate_defend_command(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus activate_defend_command(Evt* script, s32 isInitialCall) {
|
||||
ActorPart* actorPart = &gBattleStatus.playerActor->partsTable[0];
|
||||
|
||||
deduct_current_move_fp();
|
||||
@ -55,7 +55,7 @@ ApiStatus activate_defend_command(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80260B70(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80260B70(Evt* script, s32 isInitialCall) {
|
||||
Actor* player = gBattleStatus.playerActor;
|
||||
|
||||
func_802667F0(2, player, player->currentPos.x, player->currentPos.y + 20.0f, player->currentPos.z);
|
||||
@ -70,12 +70,12 @@ ApiStatus func_80260B70(ScriptInstance* script, s32 isInitialCall) {
|
||||
|
||||
INCLUDE_ASM(s32, "18F340", func_80260BF4);
|
||||
|
||||
ApiStatus func_80260DB8(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80260DB8(Evt* script, s32 isInitialCall) {
|
||||
gBattleStatus.flags1 |= 0x40000;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80260DD8(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80260DD8(Evt* script, s32 isInitialCall) {
|
||||
Actor* player = gBattleStatus.playerActor;
|
||||
s32 var;
|
||||
|
||||
@ -92,12 +92,12 @@ ApiStatus func_80260DD8(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80260E38(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80260E38(Evt* script, s32 isInitialCall) {
|
||||
btl_show_battle_message(0x31, 60);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80260E5C(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80260E5C(Evt* script, s32 isInitialCall) {
|
||||
gBattleStatus.flags1 &= ~0x8000;
|
||||
gBattleStatus.flags1 &= ~0x2000;
|
||||
gBattleStatus.flags1 &= ~0x4000;
|
||||
@ -105,7 +105,7 @@ ApiStatus func_80260E5C(ScriptInstance* script, s32 isInitialCall) {
|
||||
}
|
||||
|
||||
#define NAMESPACE base
|
||||
ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefund)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -144,7 +144,7 @@ ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefundCleanup)(Evt* script, s32 isInitialCall) {
|
||||
s32 sellValue = gItemTable[gBattleStatus.selectedItemID].sellValue;
|
||||
|
||||
if (player_team_is_ability_active(gBattleStatus.playerActor, ABILITY_REFUND) && sellValue > 0) {
|
||||
@ -154,7 +154,7 @@ ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802610CC(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802610CC(Evt* script, s32 isInitialCall) {
|
||||
if (isInitialCall) {
|
||||
mdl_set_all_fog_mode(1);
|
||||
*D_801512F0 = 1;
|
||||
@ -169,7 +169,7 @@ ApiStatus func_802610CC(ScriptInstance* script, s32 isInitialCall) {
|
||||
return (script->functionTemp[0] == 0) * ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80261164(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80261164(Evt* script, s32 isInitialCall) {
|
||||
if (isInitialCall) {
|
||||
script->functionTemp[0] = 20;
|
||||
btl_cam_unfreeze();
|
||||
@ -186,7 +186,7 @@ ApiStatus func_80261164(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_BLOCK;
|
||||
}
|
||||
|
||||
ApiStatus ConsumeLifeShroom(ScriptInstance *script, s32 isInitialCall) {
|
||||
ApiStatus ConsumeLifeShroom(Evt *script, s32 isInitialCall) {
|
||||
PlayerData* playerData = &gPlayerData;
|
||||
StaticItem* item = &gItemTable[0x95];
|
||||
|
||||
@ -203,7 +203,7 @@ ApiStatus ConsumeLifeShroom(ScriptInstance *script, s32 isInitialCall) {
|
||||
|
||||
// TODO something wrong with the struct breakdown for BattleStatus
|
||||
#ifdef NON_MATCHING
|
||||
ApiStatus RestorePreDefeatState(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus RestorePreDefeatState(Evt* script, s32 isInitialCall) {
|
||||
PlayerData* playerData = &gPlayerData;
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
|
||||
@ -229,7 +229,7 @@ ApiStatus RestorePreDefeatState(ScriptInstance* script, s32 isInitialCall) {
|
||||
INCLUDE_ASM(s32, "18F340", RestorePreDefeatState);
|
||||
#endif
|
||||
|
||||
ApiStatus func_80261388(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80261388(Evt* script, s32 isInitialCall) {
|
||||
s32 partnerActorExists = gBattleStatus.partnerActor != NULL;
|
||||
|
||||
script->varTable[0] = FALSE;
|
||||
@ -239,12 +239,12 @@ ApiStatus func_80261388(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802613A8(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802613A8(Evt* script, s32 isInitialCall) {
|
||||
gBattleStatus.selectedItemID = ITEM_LIFE_SHROOM;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802613BC(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802613BC(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 var1 = get_variable(script, *args++);
|
||||
s32 var2 = get_variable(script, *args++);
|
||||
@ -254,7 +254,7 @@ ApiStatus func_802613BC(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80261478(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80261478(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 var1 = get_variable(script, *args++);
|
||||
s32 var2 = get_variable(script, *args++);
|
||||
@ -264,7 +264,7 @@ ApiStatus func_80261478(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80261530(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80261530(Evt* script, s32 isInitialCall) {
|
||||
if (isInitialCall) {
|
||||
mdl_set_all_fog_mode(1);
|
||||
*D_801512F0 = 1;
|
||||
@ -279,7 +279,7 @@ ApiStatus func_80261530(ScriptInstance* script, s32 isInitialCall) {
|
||||
return (script->functionTemp[0] == 0) * ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802615C8(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802615C8(Evt* script, s32 isInitialCall) {
|
||||
if (isInitialCall) {
|
||||
script->functionTemp[0] = 25;
|
||||
}
|
||||
@ -295,7 +295,7 @@ ApiStatus func_802615C8(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_BLOCK;
|
||||
}
|
||||
|
||||
ApiStatus func_80261648(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80261648(Evt* script, s32 isInitialCall) {
|
||||
Npc* merlee = get_npc_unsafe(NPC_BTL_MERLEE);
|
||||
|
||||
if (isInitialCall) {
|
||||
@ -312,7 +312,7 @@ ApiStatus func_80261648(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_BLOCK;
|
||||
}
|
||||
|
||||
ApiStatus func_802616B4(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802616B4(Evt* script, s32 isInitialCall) {
|
||||
Npc* merlee = get_npc_unsafe(NPC_BTL_MERLEE);
|
||||
|
||||
merlee->alpha -= 17;
|
||||
@ -324,7 +324,7 @@ ApiStatus func_802616B4(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_BLOCK;
|
||||
}
|
||||
|
||||
ApiStatus func_802616F4(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802616F4(Evt* script, s32 isInitialCall) {
|
||||
Npc* merlee = get_npc_unsafe(NPC_BTL_MERLEE);
|
||||
EffectInstanceData* effectInstanceData;
|
||||
|
||||
@ -380,12 +380,12 @@ ApiStatus func_802616F4(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_BLOCK;
|
||||
}
|
||||
|
||||
ApiStatus func_802619B4(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802619B4(Evt* script, s32 isInitialCall) {
|
||||
D_8029FBA4 = 1;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus HasMerleeCastsLeft(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus HasMerleeCastsLeft(Evt* script, s32 isInitialCall) {
|
||||
PlayerData* playerData = &gPlayerData;
|
||||
|
||||
script->varTable[0] = FALSE;
|
||||
@ -395,7 +395,7 @@ ApiStatus HasMerleeCastsLeft(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802619E8(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802619E8(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 x = get_variable(script, *args++);
|
||||
s32 y = get_variable(script, *args++);
|
||||
@ -422,7 +422,7 @@ ApiStatus func_802619E8(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80261B40(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80261B40(Evt* script, s32 isInitialCall) {
|
||||
if (script->varTable[10] > 0) {
|
||||
free_hud_element(D_8029FBAC);
|
||||
}
|
||||
@ -432,7 +432,7 @@ ApiStatus func_80261B40(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus FXRecoverHP(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus FXRecoverHP(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 var1 = get_variable(script, *args++);
|
||||
s32 var2 = get_variable(script, *args++);
|
||||
@ -443,7 +443,7 @@ ApiStatus FXRecoverHP(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus FXRecoverFP(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus FXRecoverFP(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 var1 = get_variable(script, *args++);
|
||||
s32 var2 = get_variable(script, *args++);
|
||||
@ -454,7 +454,7 @@ ApiStatus FXRecoverFP(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus IncrementPlayerHP(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus IncrementPlayerHP(Evt* script, s32 isInitialCall) {
|
||||
PlayerData* playerData = &gPlayerData;
|
||||
|
||||
playerData->curHP++;
|
||||
@ -464,7 +464,7 @@ ApiStatus IncrementPlayerHP(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus IncrementPlayerFP(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus IncrementPlayerFP(Evt* script, s32 isInitialCall) {
|
||||
PlayerData* playerData = &gPlayerData;
|
||||
|
||||
playerData->curFP++;
|
||||
@ -474,13 +474,13 @@ ApiStatus IncrementPlayerFP(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80261D98(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80261D98(Evt* script, s32 isInitialCall) {
|
||||
inflict_status_set_duration(get_actor(script->owner1.actorID), 4, 0, 1);
|
||||
btl_update_ko_status();
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80261DD4(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80261DD4(Evt* script, s32 isInitialCall) {
|
||||
PlayerData* playerData = &gPlayerData;
|
||||
|
||||
script->varTable[11] = playerData->bootsLevel;
|
||||
@ -490,7 +490,7 @@ ApiStatus func_80261DD4(ScriptInstance* script, s32 isInitialCall) {
|
||||
|
||||
INCLUDE_ASM(s32, "18F340", func_80261DF4);
|
||||
|
||||
ApiStatus func_80261FB4(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80261FB4(Evt* script, s32 isInitialCall) {
|
||||
ItemEntity* item = get_item_entity(script->varTable[10]);
|
||||
Actor* player = gBattleStatus.playerActor;
|
||||
s32 ft1;
|
||||
@ -529,7 +529,7 @@ ApiStatus func_80261FB4(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_BLOCK;
|
||||
}
|
||||
|
||||
ApiStatus func_802620F8(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802620F8(Evt* script, s32 isInitialCall) {
|
||||
// TODO get type correct
|
||||
s32* temp_v1 = &D_8029FBB0[script->varTable[14]];
|
||||
|
||||
|
@ -15,7 +15,7 @@ extern BattleItemTableEntry gBattleItemTable[];
|
||||
|
||||
INCLUDE_ASM(s32, "1967B0", LoadFreeItemScript);
|
||||
|
||||
ApiStatus LoadMoveScript(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus LoadMoveScript(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
s32* moveScript = gMoveScriptTable[battleStatus->selectedMoveID];
|
||||
|
||||
|
32
src/196AA0.c
32
src/196AA0.c
@ -5,7 +5,7 @@
|
||||
extern void* actionCommandDmaTable[23];
|
||||
extern s32 D_8029FBC0;
|
||||
|
||||
ApiStatus LoadActionCommand(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus LoadActionCommand(Evt* script, s32 isInitialCall) {
|
||||
s32 cmd = get_variable(script, *script->ptrReadPos);
|
||||
|
||||
dma_copy(actionCommandDmaTable[cmd * 3], actionCommandDmaTable[cmd * 3 + 1], actionCommandDmaTable[cmd * 3 + 2]);
|
||||
@ -291,12 +291,12 @@ INCLUDE_ASM(s32, "196AA0", func_80269118);
|
||||
|
||||
INCLUDE_ASM(s32, "196AA0", func_80269160);
|
||||
|
||||
ApiStatus func_8026919C(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8026919C(Evt* script, s32 isInitialCall) {
|
||||
gBattleStatus.unk_434 = get_variable(script, *script->ptrReadPos);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetupMashMeter(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetupMashMeter(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
gActionCommandStatus.mashMeterIntervals = get_variable(script, *args++);
|
||||
gActionCommandStatus.mashMeterCutoffs[1] = get_variable(script, *args++);
|
||||
@ -308,22 +308,22 @@ ApiStatus SetupMashMeter(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetActionSuccess(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetActionSuccess(Evt* script, s32 isInitialCall) {
|
||||
set_variable(script, *script->ptrReadPos, gBattleStatus.actionSuccess);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetActionSuccess(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetActionSuccess(Evt* script, s32 isInitialCall) {
|
||||
gBattleStatus.actionSuccess = get_variable(script, *script->ptrReadPos);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetActionCommandMode(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetActionCommandMode(Evt* script, s32 isInitialCall) {
|
||||
gBattleStatus.unk_83 = get_variable(script, *script->ptrReadPos);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetActionCommandMode(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetActionCommandMode(Evt* script, s32 isInitialCall) {
|
||||
set_variable(script, *script->ptrReadPos, gBattleStatus.unk_83);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
@ -334,7 +334,7 @@ INCLUDE_ASM(s32, "196AA0", SetCommandAutoSuccess);
|
||||
|
||||
INCLUDE_ASM(s32, "196AA0", GetCommandAutoSuccess);
|
||||
|
||||
ApiStatus func_802693F0(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802693F0(Evt* script, s32 isInitialCall) {
|
||||
gBattleStatus.flags1 &= ~0x4000;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
@ -345,42 +345,42 @@ INCLUDE_ASM(s32, "196AA0", func_80269470);
|
||||
|
||||
INCLUDE_ASM(s32, "196AA0", func_802694A4);
|
||||
|
||||
ApiStatus GetActionSuccessCopy(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetActionSuccessCopy(Evt* script, s32 isInitialCall) {
|
||||
set_variable(script, *script->ptrReadPos, gBattleStatus.actionSuccess);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80269524(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80269524(Evt* script, s32 isInitialCall) {
|
||||
set_variable(script, *script->ptrReadPos, gBattleStatus.unk_86);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80269550(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80269550(Evt* script, s32 isInitialCall) {
|
||||
gBattleStatus.unk_86 = get_variable(script, *script->ptrReadPos);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetBlockResult(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetBlockResult(Evt* script, s32 isInitialCall) {
|
||||
set_variable(script, *script->ptrReadPos, gBattleStatus.blockResult);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetActionResult(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetActionResult(Evt* script, s32 isInitialCall) {
|
||||
set_variable(script, *script->ptrReadPos, gBattleStatus.unk_84);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetActionResult(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetActionResult(Evt* script, s32 isInitialCall) {
|
||||
gBattleStatus.unk_84 = get_variable(script, *script->ptrReadPos);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80269600(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80269600(Evt* script, s32 isInitialCall) {
|
||||
set_variable(script, *script->ptrReadPos, gBattleStatus.unk_85);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_8026962C(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8026962C(Evt* script, s32 isInitialCall) {
|
||||
gBattleStatus.unk_85 = get_variable(script, *script->ptrReadPos);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
222
src/197F40.c
222
src/197F40.c
@ -101,29 +101,29 @@ Actor* get_actor(ActorID actorID) {
|
||||
|
||||
INCLUDE_ASM(s32, "197F40", LoadBattleSection);
|
||||
|
||||
ApiStatus GetBattlePhase(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetBattlePhase(Evt* script, s32 isInitialCall) {
|
||||
set_variable(script, *script->ptrReadPos, gBattleStatus.battlePhase);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetLastElement(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetLastElement(Evt* script, s32 isInitialCall) {
|
||||
set_variable(script, *script->ptrReadPos, gBattleStatus.currentAttackElement);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80269E80(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80269E80(Evt* script, s32 isInitialCall) {
|
||||
set_variable(script, *script->ptrReadPos, gBattleStatus.unk_19A);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80269EAC(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80269EAC(Evt* script, s32 isInitialCall) {
|
||||
s32 a0 = *script->ptrReadPos;
|
||||
|
||||
gBattleStatus.unk_19A = a0;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetGoalToHome(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetGoalToHome(Evt* script, s32 isInitialCall) {
|
||||
ActorID actorID = get_variable(script, *script->ptrReadPos);
|
||||
Actor* actor;
|
||||
|
||||
@ -139,7 +139,7 @@ ApiStatus SetGoalToHome(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetIdleGoalToHome(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetIdleGoalToHome(Evt* script, s32 isInitialCall) {
|
||||
ActorID actorID = get_variable(script, *script->ptrReadPos);
|
||||
Actor* actor;
|
||||
|
||||
@ -157,7 +157,7 @@ ApiStatus SetIdleGoalToHome(ScriptInstance* script, s32 isInitialCall) {
|
||||
|
||||
INCLUDE_ASM(s32, "197F40", SetGoalToIndex);
|
||||
|
||||
ApiStatus GetIndexFromPos(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetIndexFromPos(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 a1 = *args++;
|
||||
@ -173,7 +173,7 @@ ApiStatus GetIndexFromPos(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetIndexFromHome(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetIndexFromHome(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 a1 = *args++;
|
||||
@ -189,7 +189,7 @@ ApiStatus GetIndexFromHome(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus CountPlayerTargets(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus CountPlayerTargets(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 targetSelectionFlags = *args++;
|
||||
@ -207,7 +207,7 @@ ApiStatus CountPlayerTargets(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus ForceHomePos(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus ForceHomePos(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
f32 x, y, z;
|
||||
@ -232,7 +232,7 @@ ApiStatus ForceHomePos(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetHomePos(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetHomePos(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
f32 x, y, z;
|
||||
@ -254,7 +254,7 @@ ApiStatus SetHomePos(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetGoalToTarget(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetGoalToTarget(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Actor* actor;
|
||||
@ -269,7 +269,7 @@ ApiStatus SetGoalToTarget(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetPartGoalToTarget(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetPartGoalToTarget(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 partIndex = get_variable(script, *args++);
|
||||
@ -285,7 +285,7 @@ ApiStatus SetPartGoalToTarget(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetGoalToFirstTarget(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetGoalToFirstTarget(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Actor* actor;
|
||||
@ -302,7 +302,7 @@ ApiStatus SetGoalToFirstTarget(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetGoalPos(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetGoalPos(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Actor* actor;
|
||||
@ -342,7 +342,7 @@ ApiStatus SetGoalPos(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetIdleGoal(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetIdleGoal(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Actor* actor;
|
||||
@ -381,7 +381,7 @@ ApiStatus SetIdleGoal(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus AddGoalPos(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus AddGoalPos(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Actor* actor;
|
||||
@ -403,7 +403,7 @@ ApiStatus AddGoalPos(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetGoalPos(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetGoalPos(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Actor* actor;
|
||||
@ -432,7 +432,7 @@ ApiStatus GetGoalPos(ScriptInstance* script, s32 isInitialCall) {
|
||||
}
|
||||
|
||||
// should this be renamed to GetFlyGoal ?
|
||||
ApiStatus GetIdleGoal(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetIdleGoal(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Actor* actor;
|
||||
@ -460,7 +460,7 @@ ApiStatus GetIdleGoal(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetPartTarget(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetPartTarget(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 partIndex = get_variable(script, *args++);
|
||||
@ -491,7 +491,7 @@ ApiStatus GetPartTarget(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetActorPos(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetActorPos(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Actor* actor;
|
||||
@ -519,7 +519,7 @@ ApiStatus GetActorPos(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetPartOffset(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetPartOffset(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 partIndex;
|
||||
@ -555,7 +555,7 @@ ApiStatus GetPartOffset(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetPartPos(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetPartPos(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 partIndex;
|
||||
@ -585,7 +585,7 @@ ApiStatus GetPartPos(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetHomePos(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetHomePos(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Actor* actor;
|
||||
@ -613,7 +613,7 @@ ApiStatus GetHomePos(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetActorPos(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetActorPos(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Actor* actor;
|
||||
@ -635,7 +635,7 @@ ApiStatus SetActorPos(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetPartPos(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetPartPos(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Actor* actor;
|
||||
@ -679,7 +679,7 @@ ApiStatus SetPartPos(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetEnemyTargetOffset(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetEnemyTargetOffset(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Actor* actor;
|
||||
@ -711,7 +711,7 @@ ApiStatus SetEnemyTargetOffset(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetAnimation(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetAnimation(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Actor* actor;
|
||||
@ -725,7 +725,7 @@ ApiStatus SetAnimation(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetAnimation(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetAnimation(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 var1;
|
||||
@ -746,7 +746,7 @@ ApiStatus GetAnimation(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetAnimationRate(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetAnimationRate(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Actor* actor;
|
||||
@ -760,7 +760,7 @@ ApiStatus SetAnimationRate(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetActorYaw(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetActorYaw(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
|
||||
@ -772,7 +772,7 @@ ApiStatus SetActorYaw(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetActorYaw(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetActorYaw(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 a1;
|
||||
@ -787,7 +787,7 @@ ApiStatus GetActorYaw(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetPartYaw(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetPartYaw(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
|
||||
@ -799,7 +799,7 @@ ApiStatus SetPartYaw(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetPartYaw(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetPartYaw(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 partIndex;
|
||||
@ -816,7 +816,7 @@ ApiStatus GetPartYaw(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetActorJumpGravity(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetActorJumpGravity(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
f32 jumpAccel;
|
||||
@ -830,7 +830,7 @@ ApiStatus SetActorJumpGravity(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetActorIdleJumpGravity(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetActorIdleJumpGravity(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
f32 flyJumpAccel;
|
||||
@ -844,7 +844,7 @@ ApiStatus SetActorIdleJumpGravity(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetActorSpeed(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetActorSpeed(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
f32 moveSpeed;
|
||||
@ -859,7 +859,7 @@ ApiStatus SetActorSpeed(ScriptInstance* script, s32 isInitialCall) {
|
||||
}
|
||||
|
||||
// SetActorFlySpeed?
|
||||
ApiStatus SetActorIdleSpeed(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetActorIdleSpeed(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
f32 flySpeed;
|
||||
@ -873,7 +873,7 @@ ApiStatus SetActorIdleSpeed(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetPartJumpGravity(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetPartJumpGravity(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 partIndex;
|
||||
@ -890,7 +890,7 @@ ApiStatus SetPartJumpGravity(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetPartMoveSpeed(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetPartMoveSpeed(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 partIndex;
|
||||
@ -907,7 +907,7 @@ ApiStatus SetPartMoveSpeed(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetJumpAnimations(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetJumpAnimations(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Actor* actor;
|
||||
@ -934,7 +934,7 @@ ApiStatus SetJumpAnimations(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus AddActorPos(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus AddActorPos(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Actor* actor;
|
||||
@ -956,7 +956,7 @@ ApiStatus AddActorPos(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetActorDispOffset(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetActorDispOffset(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Actor* actor;
|
||||
@ -978,7 +978,7 @@ ApiStatus SetActorDispOffset(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetPartDispOffset(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetPartDispOffset(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
ActorPart* actorPart;
|
||||
@ -1014,7 +1014,7 @@ ApiStatus GetPartDispOffset(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetPartDispOffset(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetPartDispOffset(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
ActorPart* actorPart;
|
||||
@ -1045,7 +1045,7 @@ ApiStatus SetPartDispOffset(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus AddPartDispOffset(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus AddPartDispOffset(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
ActorPart* actorPart;
|
||||
@ -1076,7 +1076,7 @@ ApiStatus AddPartDispOffset(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_8026BF48(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8026BF48(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
BattleStatus* battleStatus2 = &gBattleStatus;
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
@ -1090,7 +1090,7 @@ ApiStatus func_8026BF48(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetActorVar(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetActorVar(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 var1;
|
||||
@ -1108,7 +1108,7 @@ ApiStatus GetActorVar(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetActorVar(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetActorVar(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 index;
|
||||
@ -1127,7 +1127,7 @@ ApiStatus SetActorVar(ScriptInstance* script, s32 isInitialCall) {
|
||||
}
|
||||
|
||||
#ifdef NON_MATCHING
|
||||
ApiStatus AddActorVar(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus AddActorVar(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 index;
|
||||
@ -1148,7 +1148,7 @@ ApiStatus AddActorVar(ScriptInstance* script, s32 isInitialCall) {
|
||||
INCLUDE_ASM(s32, "197F40", AddActorVar);
|
||||
#endif
|
||||
|
||||
ApiStatus GetPartMovementVar(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetPartMovementVar(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 partIndex;
|
||||
@ -1168,7 +1168,7 @@ ApiStatus GetPartMovementVar(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetPartMovementVar(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetPartMovementVar(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 partIndex;
|
||||
@ -1188,7 +1188,7 @@ ApiStatus SetPartMovementVar(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus AddPartMovementVar(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus AddPartMovementVar(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 partIndex;
|
||||
@ -1208,7 +1208,7 @@ ApiStatus AddPartMovementVar(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetActorRotation(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetActorRotation(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Actor* actor;
|
||||
@ -1239,7 +1239,7 @@ ApiStatus SetActorRotation(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetActorRotationOffset(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetActorRotationOffset(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Actor* actor;
|
||||
@ -1262,7 +1262,7 @@ ApiStatus SetActorRotationOffset(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetActorRotation(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetActorRotation(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Actor* actor;
|
||||
@ -1285,7 +1285,7 @@ ApiStatus GetActorRotation(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetPartRotation(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetPartRotation(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 partIndex = get_variable(script, *args++);
|
||||
@ -1309,7 +1309,7 @@ ApiStatus SetPartRotation(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetPartRotationOffset(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetPartRotationOffset(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 partIndex = get_variable(script, *args++);
|
||||
@ -1333,7 +1333,7 @@ ApiStatus SetPartRotationOffset(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetPartRotation(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetPartRotation(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 partIndex = get_variable(script, *args++);
|
||||
@ -1357,7 +1357,7 @@ ApiStatus GetPartRotation(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetActorScale(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetActorScale(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Actor* actor;
|
||||
@ -1380,7 +1380,7 @@ ApiStatus SetActorScale(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetActorScaleModifier(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetActorScaleModifier(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Actor* actor;
|
||||
@ -1403,7 +1403,7 @@ ApiStatus SetActorScaleModifier(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetActorScale(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetActorScale(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Actor* actor;
|
||||
@ -1426,7 +1426,7 @@ ApiStatus GetActorScale(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetPartScale(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetPartScale(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 partIndex = get_variable(script, *args++);
|
||||
@ -1450,7 +1450,7 @@ ApiStatus SetPartScale(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetPartScale(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetPartScale(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 partIndex = get_variable(script, *args++);
|
||||
@ -1474,12 +1474,12 @@ ApiStatus GetPartScale(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetBattleFlags(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetBattleFlags(Evt* script, s32 isInitialCall) {
|
||||
set_variable(script, *script->ptrReadPos, gBattleStatus.flags1);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetBattleFlagBits(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetBattleFlagBits(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
Bytecode a0 = *args++;
|
||||
|
||||
@ -1492,12 +1492,12 @@ ApiStatus SetBattleFlagBits(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetBattleFlags2(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetBattleFlags2(Evt* script, s32 isInitialCall) {
|
||||
set_variable(script, *script->ptrReadPos, gBattleStatus.flags2);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetBattleFlagBits2(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetBattleFlagBits2(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
Bytecode a0 = *args++;
|
||||
|
||||
@ -1512,7 +1512,7 @@ ApiStatus SetBattleFlagBits2(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetActorFlags(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetActorFlags(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 a1;
|
||||
@ -1527,7 +1527,7 @@ ApiStatus SetActorFlags(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetActorFlagBits(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetActorFlagBits(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 a1;
|
||||
@ -1551,7 +1551,7 @@ ApiStatus SetActorFlagBits(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetActorFlags(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetActorFlags(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 a1;
|
||||
@ -1567,7 +1567,7 @@ ApiStatus GetActorFlags(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetPartFlags(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetPartFlags(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 a1;
|
||||
@ -1585,7 +1585,7 @@ ApiStatus SetPartFlags(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetPartFlagBits(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetPartFlagBits(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
ActorPart* actorPart;
|
||||
@ -1612,7 +1612,7 @@ ApiStatus SetPartFlagBits(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetPartTargetFlags(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetPartTargetFlags(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
ActorPart* actorPart;
|
||||
@ -1632,7 +1632,7 @@ ApiStatus SetPartTargetFlags(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetPartTargetFlagBits(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetPartTargetFlagBits(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
ActorPart* actorPart;
|
||||
@ -1659,7 +1659,7 @@ ApiStatus SetPartTargetFlagBits(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetPartFlags(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetPartFlags(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 partIndex;
|
||||
@ -1678,7 +1678,7 @@ ApiStatus GetPartFlags(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetPartTargetFlags(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetPartTargetFlags(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 partIndex;
|
||||
@ -1697,7 +1697,7 @@ ApiStatus GetPartTargetFlags(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetPartEventFlags(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetPartEventFlags(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
ActorPart* actorPart;
|
||||
@ -1717,7 +1717,7 @@ ApiStatus SetPartEventFlags(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetPartEventBits(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetPartEventBits(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
ActorPart* actorPart;
|
||||
@ -1744,7 +1744,7 @@ ApiStatus SetPartEventBits(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetPartEventFlags(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetPartEventFlags(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 partIndex;
|
||||
@ -1763,7 +1763,7 @@ ApiStatus GetPartEventFlags(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_8026D51C(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8026D51C(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
ActorPart* actorPart;
|
||||
@ -1783,7 +1783,7 @@ ApiStatus func_8026D51C(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_8026D5A4(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8026D5A4(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
ActorPart* actorPart;
|
||||
@ -1810,7 +1810,7 @@ ApiStatus func_8026D5A4(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus HPBarToHome(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus HPBarToHome(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Actor* actor;
|
||||
@ -1833,7 +1833,7 @@ ApiStatus HPBarToHome(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus HPBarToCurrent(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus HPBarToCurrent(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Actor* actor;
|
||||
@ -1856,7 +1856,7 @@ ApiStatus HPBarToCurrent(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_8026D8EC(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8026D8EC(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
|
||||
@ -1869,7 +1869,7 @@ ApiStatus func_8026D8EC(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_8026D940(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8026D940(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Actor* actor;
|
||||
@ -1897,7 +1897,7 @@ ApiStatus func_8026D940(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_8026DA94(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8026DA94(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Actor* actor;
|
||||
@ -1923,17 +1923,17 @@ ApiStatus func_8026DA94(ScriptInstance* script, s32 isInitialCall) {
|
||||
|
||||
INCLUDE_ASM(s32, "197F40", SummonEnemy);
|
||||
|
||||
ApiStatus GetOwnerID(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetOwnerID(Evt* script, s32 isInitialCall) {
|
||||
set_variable(script, *script->ptrReadPos, script->owner1.actorID);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetOwnerID(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetOwnerID(Evt* script, s32 isInitialCall) {
|
||||
script->owner1.actorID = get_variable(script, *script->ptrReadPos);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus ActorExists(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus ActorExists(Evt* script, s32 isInitialCall) {
|
||||
Bytecode isExist;
|
||||
Actor* partner = gBattleStatus.partnerActor;
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
@ -1952,7 +1952,7 @@ ApiStatus ActorExists(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_8026DEF0(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8026DEF0(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 partIndex = get_variable(script, *args++);
|
||||
@ -1967,7 +1967,7 @@ ApiStatus func_8026DEF0(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_8026DF88(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8026DF88(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 partIndex = get_variable(script, *args++);
|
||||
@ -1982,24 +1982,24 @@ ApiStatus func_8026DF88(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_8026E020(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8026E020(Evt* script, s32 isInitialCall) {
|
||||
s32 a0 = *script->ptrReadPos;
|
||||
|
||||
gBattleStatus.unk_70 = a0;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_8026E038(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8026E038(Evt* script, s32 isInitialCall) {
|
||||
gBattleStatus.unk_74 = *script->ptrReadPos;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetBattleInputMask(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetBattleInputMask(Evt* script, s32 isInitialCall) {
|
||||
gBattleStatus.inputBitmask = *script->ptrReadPos;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetBattleInputButtons(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetBattleInputButtons(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
s32 currentButtonsDown = *args++;
|
||||
@ -2013,7 +2013,7 @@ ApiStatus SetBattleInputButtons(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus CheckButtonPress(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus CheckButtonPress(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
Bytecode buttons = *args++;
|
||||
Bytecode out = *args;
|
||||
@ -2023,7 +2023,7 @@ ApiStatus CheckButtonPress(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus CheckButtonHeld(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus CheckButtonHeld(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
Bytecode buttons = *args++;
|
||||
Bytecode out = *args;
|
||||
@ -2033,7 +2033,7 @@ ApiStatus CheckButtonHeld(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus CheckButtonDown(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus CheckButtonDown(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
Bytecode buttons = *args++;
|
||||
Bytecode out = *args;
|
||||
@ -2043,12 +2043,12 @@ ApiStatus CheckButtonDown(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetBattleState(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetBattleState(Evt* script, s32 isInitialCall) {
|
||||
set_variable(script, *script->ptrReadPos, gBattleState);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetBattleState(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetBattleState(Evt* script, s32 isInitialCall) {
|
||||
btl_set_state(get_variable(script, *script->ptrReadPos));
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
@ -2059,7 +2059,7 @@ INCLUDE_ASM(s32, "197F40", CancelEnemyTurn);
|
||||
|
||||
INCLUDE_ASM(s32, "197F40", func_8026E260);
|
||||
|
||||
ApiStatus PlayerCreateTargetList(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus PlayerCreateTargetList(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
Actor* actor = get_actor(script->owner1.actorID);
|
||||
|
||||
@ -2069,7 +2069,7 @@ ApiStatus PlayerCreateTargetList(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus EnemyCreateTargetList(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus EnemyCreateTargetList(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
Actor* actor = get_actor(script->owner1.actorID);
|
||||
|
||||
@ -2079,7 +2079,7 @@ ApiStatus EnemyCreateTargetList(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus InitTargetIterator(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus InitTargetIterator(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
Actor* actor = get_actor(script->owner1.actorID);
|
||||
SelectableTarget* selectableTarget = &actor->targetData[actor->targetIndexList[actor->selectedTargetIndex]];
|
||||
@ -2096,7 +2096,7 @@ INCLUDE_ASM(s32, "197F40", ChooseNextTarget);
|
||||
|
||||
INCLUDE_ASM(s32, "197F40", func_8026E558);
|
||||
|
||||
ApiStatus GetTargetListLength(ScriptInstance* script) {
|
||||
ApiStatus GetTargetListLength(Evt* script) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
|
||||
set_variable(script, *args, get_actor(script->owner1.actorID)->targetListLength);
|
||||
@ -2107,7 +2107,7 @@ INCLUDE_ASM(s32, "197F40", GetOwnerTarget);
|
||||
|
||||
INCLUDE_ASM(s32, "197F40", func_8026E914);
|
||||
|
||||
ApiStatus GetPlayerActorID(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetPlayerActorID(Evt* script, s32 isInitialCall) {
|
||||
set_variable(script, *script->ptrReadPos, gBattleStatus.attackerActorID);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
@ -2138,7 +2138,7 @@ INCLUDE_ASM(s32, "197F40", func_8026F1A0);
|
||||
|
||||
INCLUDE_ASM(s32, "197F40", GetStatusFlags);
|
||||
|
||||
ApiStatus RemovePlayerBuffs(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus RemovePlayerBuffs(Evt* script, s32 isInitialCall) {
|
||||
remove_player_buffs(*script->ptrReadPos);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
@ -2149,7 +2149,7 @@ INCLUDE_ASM(s32, "197F40", CreatePartShadow);
|
||||
|
||||
INCLUDE_ASM(s32, "197F40", RemovePartShadow);
|
||||
|
||||
ApiStatus func_8026F60C(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8026F60C(Evt* script, s32 isInitialCall) {
|
||||
gBattleStatus.unk_8D = get_variable(script, *script->ptrReadPos);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
@ -2158,7 +2158,7 @@ INCLUDE_ASM(s32, "197F40", SetBattleVar);
|
||||
|
||||
INCLUDE_ASM(s32, "197F40", GetBattleVar);
|
||||
|
||||
ApiStatus ResetAllActorSounds(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus ResetAllActorSounds(Evt* script, s32 isInitialCall) {
|
||||
ActorID actorID = get_variable(script, *script->ptrReadPos);
|
||||
|
||||
if (actorID == ACTOR_SELF) {
|
||||
@ -2177,7 +2177,7 @@ INCLUDE_ASM(s32, "197F40", SetPartSounds);
|
||||
|
||||
INCLUDE_ASM(s32, "197F40", SetActorType);
|
||||
|
||||
ApiStatus ShowShockEffect(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus ShowShockEffect(Evt* script, s32 isInitialCall) {
|
||||
ActorID actorID = get_variable(script, *script->ptrReadPos);
|
||||
|
||||
if (actorID == ACTOR_SELF) {
|
||||
@ -2202,7 +2202,7 @@ INCLUDE_ASM(s32, "197F40", ElectrifyActor);
|
||||
|
||||
INCLUDE_ASM(s32, "197F40", HealActor);
|
||||
|
||||
ApiStatus WaitForBuffDone(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus WaitForBuffDone(Evt* script, s32 isInitialCall) {
|
||||
return (D_8029FBD4 == 0) * ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
|
66
src/19FAF0.c
66
src/19FAF0.c
@ -3,41 +3,41 @@
|
||||
#include "battle/battle.h"
|
||||
#include "script_api/battle.h"
|
||||
|
||||
ApiStatus func_80271210(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80271210(Evt* script, s32 isInitialCall) {
|
||||
playFX_31(0, script->varTable[0], script->varTable[1], script->varTable[2]);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80271258(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80271258(Evt* script, s32 isInitialCall) {
|
||||
playFX_31(1, script->varTable[0], script->varTable[1], script->varTable[2]);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802712A0(ScriptInstance* script, s32 isInitialCall);
|
||||
INCLUDE_ASM(ApiStatus, "19FAF0", func_802712A0, ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802712A0(Evt* script, s32 isInitialCall);
|
||||
INCLUDE_ASM(ApiStatus, "19FAF0", func_802712A0, Evt* script, s32 isInitialCall);
|
||||
|
||||
ApiStatus func_80271328(ScriptInstance* script, s32 isInitialCall);
|
||||
INCLUDE_ASM(ApiStatus, "19FAF0", func_80271328, ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_80271328(Evt* script, s32 isInitialCall);
|
||||
INCLUDE_ASM(ApiStatus, "19FAF0", func_80271328, Evt* script, s32 isInitialCall);
|
||||
|
||||
ApiStatus func_802713B0(ScriptInstance* script, s32 isInitialCall);
|
||||
INCLUDE_ASM(ApiStatus, "19FAF0", func_802713B0, ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802713B0(Evt* script, s32 isInitialCall);
|
||||
INCLUDE_ASM(ApiStatus, "19FAF0", func_802713B0, Evt* script, s32 isInitialCall);
|
||||
|
||||
ApiStatus func_8027143C(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8027143C(Evt* script, s32 isInitialCall) {
|
||||
playFX_30(0, script->varTable[0], script->varTable[1], script->varTable[2]);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80271484(ScriptInstance* script, s32 isInitialCall);
|
||||
INCLUDE_ASM(ApiStatus, "19FAF0", func_80271484, ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_80271484(Evt* script, s32 isInitialCall);
|
||||
INCLUDE_ASM(ApiStatus, "19FAF0", func_80271484, Evt* script, s32 isInitialCall);
|
||||
|
||||
ApiStatus func_80271588(ScriptInstance* script, s32 isInitialCall);
|
||||
INCLUDE_ASM(ApiStatus, "19FAF0", func_80271588, ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_80271588(Evt* script, s32 isInitialCall);
|
||||
INCLUDE_ASM(ApiStatus, "19FAF0", func_80271588, Evt* script, s32 isInitialCall);
|
||||
|
||||
void dispatch_event_player(s32 eventType) {
|
||||
Actor* player = gBattleStatus.playerActor;
|
||||
ScriptInstance* oldOnHitScript;
|
||||
Evt* oldOnHitScript;
|
||||
s32 oldOnHitID;
|
||||
ScriptInstance* eventScript;
|
||||
Evt* eventScript;
|
||||
|
||||
player->lastEventType = eventType;
|
||||
|
||||
@ -61,9 +61,9 @@ void dispatch_event_player(s32 eventType) {
|
||||
|
||||
void dispatch_event_player_continue_turn(s32 eventType) {
|
||||
Actor* player = gBattleStatus.playerActor;
|
||||
ScriptInstance* oldOnHitScript;
|
||||
Evt* oldOnHitScript;
|
||||
s32 oldOnHitID;
|
||||
ScriptInstance* eventScript;
|
||||
Evt* eventScript;
|
||||
|
||||
player->lastEventType = eventType;
|
||||
|
||||
@ -98,7 +98,7 @@ void dispatch_damage_event_player_1(s32 damageAmount, Event event) {
|
||||
dispatch_damage_event_player(damageAmount, event, TRUE);
|
||||
}
|
||||
|
||||
ApiStatus GetMenuSelection(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetMenuSelection(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 outVar1 = *args++;
|
||||
@ -114,9 +114,9 @@ ApiStatus GetMenuSelection(ScriptInstance* script, s32 isInitialCall) {
|
||||
|
||||
INCLUDE_ASM(s32, "19FAF0", func_80273444);
|
||||
|
||||
INCLUDE_ASM(s32, "19FAF0", PlayerFallToGoal, ScriptInstance* script, s32 isInitialCall);
|
||||
INCLUDE_ASM(s32, "19FAF0", PlayerFallToGoal, Evt* script, s32 isInitialCall);
|
||||
|
||||
ApiStatus PlayerLandJump(ScriptInstance *script, s32 isInitialCall) {
|
||||
ApiStatus PlayerLandJump(Evt *script, s32 isInitialCall) {
|
||||
Actor* player = gBattleStatus.playerActor;
|
||||
ActorMovementWalk* walkMovement = &player->walk;
|
||||
|
||||
@ -164,22 +164,22 @@ ApiStatus PlayerLandJump(ScriptInstance *script, s32 isInitialCall) {
|
||||
return ApiStatus_BLOCK;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "19FAF0", PlayerRunToGoal, ScriptInstance* script, s32 isInitialCall);
|
||||
INCLUDE_ASM(s32, "19FAF0", PlayerRunToGoal, Evt* script, s32 isInitialCall);
|
||||
|
||||
INCLUDE_ASM(s32, "19FAF0", CancelablePlayerRunToGoal, ScriptInstance* script, s32 isInitialCall);
|
||||
INCLUDE_ASM(s32, "19FAF0", CancelablePlayerRunToGoal, Evt* script, s32 isInitialCall);
|
||||
|
||||
ApiStatus GetPlayerHP(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetPlayerHP(Evt* script, s32 isInitialCall) {
|
||||
set_variable(script, *script->ptrReadPos, gPlayerData.curHP);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "19FAF0", PlayerDamageEnemy, ScriptInstance* script, s32 isInitialCall);
|
||||
INCLUDE_ASM(s32, "19FAF0", PlayerDamageEnemy, Evt* script, s32 isInitialCall);
|
||||
|
||||
INCLUDE_ASM(s32, "19FAF0", PlayerPowerBounceEnemy, ScriptInstance* script, s32 isInitialCall);
|
||||
INCLUDE_ASM(s32, "19FAF0", PlayerPowerBounceEnemy, Evt* script, s32 isInitialCall);
|
||||
|
||||
INCLUDE_ASM(s32, "19FAF0", PlayerTestEnemy, ScriptInstance* script, s32 isInitialCall);
|
||||
INCLUDE_ASM(s32, "19FAF0", PlayerTestEnemy, Evt* script, s32 isInitialCall);
|
||||
|
||||
ApiStatus DispatchDamagePlayerEvent(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus DispatchDamagePlayerEvent(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
|
||||
if (dispatch_damage_event_player_0(get_variable(script, *args++), *args++) < 0) {
|
||||
@ -193,7 +193,7 @@ ApiStatus DispatchDamagePlayerEvent(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_BLOCK;
|
||||
}
|
||||
|
||||
ApiStatus EnablePlayerBlur(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus EnablePlayerBlur(Evt* script, s32 isInitialCall) {
|
||||
s32 setting = get_variable(script, *script->ptrReadPos);
|
||||
|
||||
if (setting == 0) {
|
||||
@ -207,12 +207,12 @@ ApiStatus EnablePlayerBlur(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802749D8(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802749D8(Evt* script, s32 isInitialCall) {
|
||||
func_802549A0();
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802749F8(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802749F8(Evt* script, s32 isInitialCall) {
|
||||
func_802549C0();
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
@ -223,7 +223,7 @@ INCLUDE_ASM(s32, "19FAF0", func_802752AC);
|
||||
|
||||
INCLUDE_ASM(s32, "19FAF0", func_80275F00);
|
||||
|
||||
ApiStatus DidActionSucceed(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus DidActionSucceed(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 outVar = *args++;
|
||||
s32 actionSuccess = gBattleStatus.actionSuccess;
|
||||
@ -241,12 +241,12 @@ ApiStatus DidActionSucceed(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80276EFC(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80276EFC(Evt* script, s32 isInitialCall) {
|
||||
gBattleStatus.flags1 |= 0x200000;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus DispatchEventPlayer(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus DispatchEventPlayer(Evt* script, s32 isInitialCall) {
|
||||
dispatch_event_player(get_variable(script, *script->ptrReadPos));
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
128
src/1A5830.c
128
src/1A5830.c
@ -108,11 +108,11 @@ void play_hit_sound(Actor* actor, f32 x, f32 y, f32 z, u32 hitSound) {
|
||||
}
|
||||
|
||||
void dispatch_event_actor(Actor* actor, Event event) {
|
||||
ScriptInstance* onHitScript = actor->onHitScript;
|
||||
ScriptID onHitID = actor->onHitID;
|
||||
Evt* onHitScript = actor->onHitScript;
|
||||
s32 onHitID = actor->onHitID;
|
||||
|
||||
if (actor->onHitScriptSource != NULL) {
|
||||
ScriptInstance* newScript;
|
||||
Evt* newScript;
|
||||
|
||||
actor->lastEventType = event;
|
||||
newScript = start_script(actor->onHitScriptSource, 0xA, 0x20);
|
||||
@ -630,42 +630,42 @@ s32 calc_enemy_damage_target(Actor* attacker) {
|
||||
|
||||
// possibly vars stored as floats
|
||||
if ((battleStatus->currentAttackStatus & STATUS_FLAG_SLEEP) && phi_s5) {
|
||||
ScriptInstance* script = start_script(&DoSleepHit, 10, 0);
|
||||
Evt* script = start_script(&DoSleepHit, 10, 0);
|
||||
script->varTable[0] = walk->goalPos.x;
|
||||
script->varTable[1] = walk->goalPos.y;
|
||||
script->varTable[2] = walk->goalPos.z;
|
||||
sfx_play_sound_at_position(SOUND_INFLICT_SLEEP, 0, walk->goalPos.x, walk->goalPos.y, walk->goalPos.z);
|
||||
}
|
||||
if ((battleStatus->currentAttackStatus & STATUS_FLAG_DIZZY) && phi_s5) {
|
||||
ScriptInstance* script = start_script(&DoDizzyHit, 10, 0);
|
||||
Evt* script = start_script(&DoDizzyHit, 10, 0);
|
||||
script->varTable[0] = walk->goalPos.x;
|
||||
script->varTable[1] = walk->goalPos.y;
|
||||
script->varTable[2] = walk->goalPos.z;
|
||||
sfx_play_sound_at_position(SOUND_INFLICT_STATUS, 0, walk->goalPos.x, walk->goalPos.y, walk->goalPos.z);
|
||||
}
|
||||
if ((battleStatus->currentAttackStatus & STATUS_FLAG_PARALYZE) && phi_s5) {
|
||||
ScriptInstance* script = start_script(&DoParalyzeHit, 10, 0);
|
||||
Evt* script = start_script(&DoParalyzeHit, 10, 0);
|
||||
script->varTable[0] = walk->goalPos.x;
|
||||
script->varTable[1] = walk->goalPos.y;
|
||||
script->varTable[2] = walk->goalPos.z;
|
||||
sfx_play_sound_at_position(SOUND_INFLICT_STATUS, 0, walk->goalPos.x, walk->goalPos.y, walk->goalPos.z);
|
||||
}
|
||||
if ((battleStatus->currentAttackStatus & STATUS_FLAG_POISON) && phi_s5) {
|
||||
ScriptInstance* script = start_script(&DoPoisonHit, 10, 0);
|
||||
Evt* script = start_script(&DoPoisonHit, 10, 0);
|
||||
script->varTable[0] = walk->goalPos.x;
|
||||
script->varTable[1] = walk->goalPos.y;
|
||||
script->varTable[2] = walk->goalPos.z;
|
||||
sfx_play_sound_at_position(SOUND_INFLICT_STATUS, 0, walk->goalPos.x, walk->goalPos.y, walk->goalPos.z);
|
||||
}
|
||||
if ((battleStatus->currentAttackStatus & STATUS_FLAG_STOP) && phi_s5) {
|
||||
ScriptInstance* script = start_script(&DoStopHit, 10, 0);
|
||||
Evt* script = start_script(&DoStopHit, 10, 0);
|
||||
script->varTable[0] = walk->goalPos.x;
|
||||
script->varTable[1] = walk->goalPos.y;
|
||||
script->varTable[2] = walk->goalPos.z;
|
||||
sfx_play_sound_at_position(SOUND_INFLICT_STATUS, 0, walk->goalPos.x, walk->goalPos.y, walk->goalPos.z);
|
||||
}
|
||||
if ((battleStatus->currentAttackStatus & STATUS_FLAG_FROZEN) && phi_s5) {
|
||||
ScriptInstance* script = start_script(&DoFreezeHit, 10, 0);
|
||||
Evt* script = start_script(&DoFreezeHit, 10, 0);
|
||||
script->varTable[0] = walk->goalPos.x;
|
||||
script->varTable[1] = walk->goalPos.y;
|
||||
script->varTable[2] = walk->goalPos.z;
|
||||
@ -673,7 +673,7 @@ s32 calc_enemy_damage_target(Actor* attacker) {
|
||||
sfx_play_sound_at_position(SOUND_FREEZE, 0, walk->goalPos.x, walk->goalPos.y, walk->goalPos.z);
|
||||
}
|
||||
if ((battleStatus->currentAttackStatus & STATUS_FLAG_SHRINK) && phi_s5) {
|
||||
ScriptInstance* script = start_script(&DoShrinkHit, 10, 0);
|
||||
Evt* script = start_script(&DoShrinkHit, 10, 0);
|
||||
script->varTable[0] = walk->goalPos.x;
|
||||
script->varTable[1] = walk->goalPos.y;
|
||||
script->varTable[2] = walk->goalPos.z;
|
||||
@ -795,21 +795,21 @@ s32 dispatch_damage_event_actor_1(Actor* actor, s32 damageAmount, s32 event) {
|
||||
return dispatch_damage_event_actor(actor, damageAmount, event, TRUE);
|
||||
}
|
||||
|
||||
ApiStatus BindTakeTurn(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus BindTakeTurn(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Script* takeTurnScript;
|
||||
EvtSource* takeTurnScript;
|
||||
|
||||
if (actorID == ACTOR_SELF) {
|
||||
actorID = script->owner1.actorID;
|
||||
}
|
||||
|
||||
takeTurnScript = (Script*) get_variable(script, *args++);
|
||||
takeTurnScript = (EvtSource*) get_variable(script, *args++);
|
||||
get_actor(actorID)->takeTurnScriptSource = takeTurnScript;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus PauseTakeTurn(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus PauseTakeTurn(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
|
||||
@ -822,7 +822,7 @@ ApiStatus PauseTakeTurn(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus ResumeTakeTurn(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus ResumeTakeTurn(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
|
||||
@ -835,18 +835,18 @@ ApiStatus ResumeTakeTurn(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus BindIdle(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus BindIdle(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Script* idleCode;
|
||||
EvtSource* idleCode;
|
||||
Actor* actor;
|
||||
ScriptInstance* newScriptContext;
|
||||
Evt* newScriptContext;
|
||||
|
||||
if (actorID == ACTOR_SELF) {
|
||||
actorID = script->owner1.actorID;
|
||||
}
|
||||
|
||||
idleCode = (Script*) get_variable(script, *args++);
|
||||
idleCode = (EvtSource*) get_variable(script, *args++);
|
||||
actor = get_actor(actorID);
|
||||
|
||||
if (actor->idleScript != 0) {
|
||||
@ -862,7 +862,7 @@ ApiStatus BindIdle(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus EnableIdleScript(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus EnableIdleScript(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 var1;
|
||||
@ -893,30 +893,30 @@ ApiStatus EnableIdleScript(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus BindHandleEvent(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus BindHandleEvent(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Script* var1;
|
||||
EvtSource* var1;
|
||||
|
||||
if (actorID == ACTOR_SELF) {
|
||||
actorID = script->owner1.actorID;
|
||||
}
|
||||
|
||||
var1 = (Script*) get_variable(script, *args++);
|
||||
var1 = (EvtSource*) get_variable(script, *args++);
|
||||
get_actor(actorID)->onHitScriptSource = var1;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus BindNextTurn(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus BindNextTurn(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Script* var1;
|
||||
EvtSource* var1;
|
||||
|
||||
if (actorID == ACTOR_SELF) {
|
||||
actorID = script->owner1.actorID;
|
||||
}
|
||||
|
||||
var1 = (Script*) get_variable(script, *args++);
|
||||
var1 = (EvtSource*) get_variable(script, *args++);
|
||||
get_actor(actorID)->onTurnChanceScriptSource = var1;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
@ -929,7 +929,7 @@ INCLUDE_ASM(s32, "1A5830", JumpToGoalSimple2);
|
||||
|
||||
INCLUDE_ASM(s32, "1A5830", JumpWithBounce);
|
||||
|
||||
ApiStatus LandJump(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus LandJump(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
Actor* actor;
|
||||
|
||||
@ -992,7 +992,7 @@ INCLUDE_ASM(s32, "1A5830", IdleFlyToGoal);
|
||||
|
||||
INCLUDE_ASM(s32, "1A5830", FlyPartTo);
|
||||
|
||||
ApiStatus GetLastEvent(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetLastEvent(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 outVar;
|
||||
@ -1006,7 +1006,7 @@ ApiStatus GetLastEvent(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetTargetActor(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetTargetActor(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 targetActorID;
|
||||
@ -1023,7 +1023,7 @@ ApiStatus SetTargetActor(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetEnemyHP(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetEnemyHP(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s8 newHP;
|
||||
@ -1046,7 +1046,7 @@ ApiStatus SetEnemyHP(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetActorHP(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetActorHP(Evt* script, s32 isInitialCall) {
|
||||
PlayerData* playerData = &gPlayerData;
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
@ -1077,7 +1077,7 @@ ApiStatus GetActorHP(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetEnemyMaxHP(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetEnemyMaxHP(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 outVar;
|
||||
@ -1093,7 +1093,7 @@ ApiStatus GetEnemyMaxHP(ScriptInstance* script, s32 isInitialCall) {
|
||||
|
||||
// battlestatus shtuff
|
||||
#ifdef NON_MATCHING
|
||||
ApiStatus RemoveActor(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus RemoveActor(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
EncounterStatus* currentEncounter = &gCurrentEncounter;
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
@ -1124,7 +1124,7 @@ ApiStatus RemoveActor(ScriptInstance* script, s32 isInitialCall) {
|
||||
INCLUDE_ASM(s32, "1A5830", RemoveActor);
|
||||
#endif
|
||||
|
||||
ApiStatus DropStarPoints(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus DropStarPoints(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
PlayerData* playerData = &gPlayerData;
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
@ -1181,7 +1181,7 @@ ApiStatus DropStarPoints(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetDefenseTable(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetDefenseTable(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 partIndex;
|
||||
@ -1197,7 +1197,7 @@ ApiStatus SetDefenseTable(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetStatusTable(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetStatusTable(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
u32* var1;
|
||||
@ -1211,7 +1211,7 @@ ApiStatus SetStatusTable(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetIdleAnimations(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetIdleAnimations(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 partIndex;
|
||||
@ -1227,7 +1227,7 @@ ApiStatus SetIdleAnimations(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_8027CC10(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8027CC10(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 partIndex;
|
||||
@ -1246,7 +1246,7 @@ ApiStatus func_8027CC10(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus EnemyDamageTarget(ScriptInstance *script, s32 isInitialCall) {
|
||||
ApiStatus EnemyDamageTarget(Evt *script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
@ -1321,7 +1321,7 @@ ApiStatus EnemyDamageTarget(ScriptInstance *script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus EnemyFollowupAfflictTarget(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus EnemyFollowupAfflictTarget(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
BattleStatus* anotherBattleStatus = &gBattleStatus;
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
@ -1359,7 +1359,7 @@ ApiStatus EnemyFollowupAfflictTarget(ScriptInstance* script, s32 isInitialCall)
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus EnemyTestTarget(ScriptInstance *script, s32 isInitialCall) {
|
||||
ApiStatus EnemyTestTarget(Evt *script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
@ -1431,7 +1431,7 @@ ApiStatus EnemyTestTarget(ScriptInstance *script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus DispatchDamageEvent(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus DispatchDamageEvent(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Actor* actor;
|
||||
@ -1453,7 +1453,7 @@ ApiStatus DispatchDamageEvent(ScriptInstance* script, s32 isInitialCall) {
|
||||
return scriptExists * ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus DispatchEvent(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus DispatchEvent(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
|
||||
@ -1465,7 +1465,7 @@ ApiStatus DispatchEvent(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_8027D2D8(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8027D2D8(Evt* script, s32 isInitialCall) {
|
||||
ActorID actorID = get_variable(script, *script->ptrReadPos);
|
||||
|
||||
if (actorID == ACTOR_SELF) {
|
||||
@ -1476,7 +1476,7 @@ ApiStatus func_8027D2D8(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_8027D32C(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8027D32C(Evt* script, s32 isInitialCall) {
|
||||
ActorID actorID = get_variable(script, *script->ptrReadPos);
|
||||
|
||||
if (actorID == ACTOR_SELF) {
|
||||
@ -1487,7 +1487,7 @@ ApiStatus func_8027D32C(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetTargetOffset(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetTargetOffset(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 partIndex;
|
||||
@ -1511,7 +1511,7 @@ ApiStatus SetTargetOffset(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_8027D434(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8027D434(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 partIndex;
|
||||
@ -1527,7 +1527,7 @@ ApiStatus func_8027D434(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_8027D4C8(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8027D4C8(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 partIndex;
|
||||
@ -1551,7 +1551,7 @@ ApiStatus func_8027D4C8(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus EnableActorBlur(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus EnableActorBlur(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 enable = get_variable(script, *args++);
|
||||
@ -1573,7 +1573,7 @@ ApiStatus EnableActorBlur(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_8027D628(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8027D628(Evt* script, s32 isInitialCall) {
|
||||
ActorID actorID = get_variable(script, *script->ptrReadPos);
|
||||
|
||||
if (actorID == ACTOR_SELF) {
|
||||
@ -1584,7 +1584,7 @@ ApiStatus func_8027D628(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus AfflictActor(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus AfflictActor(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Actor* actor;
|
||||
@ -1623,7 +1623,7 @@ ApiStatus AfflictActor(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_8027D75C(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8027D75C(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 outVar = *args++;
|
||||
@ -1636,17 +1636,17 @@ ApiStatus func_8027D75C(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetEncounterState(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetEncounterState(Evt* script, s32 isInitialCall) {
|
||||
set_variable(script, *script->ptrReadPos, gCurrentEncounter.hitType);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus YieldTurn(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus YieldTurn(Evt* script, s32 isInitialCall) {
|
||||
gBattleStatus.flags1 |= 0x200000;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetActorSize(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetActorSize(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 y = get_variable(script, *args++);
|
||||
@ -1670,7 +1670,7 @@ ApiStatus SetActorSize(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetActorSize(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetActorSize(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 outY = *args++;
|
||||
@ -1687,7 +1687,7 @@ ApiStatus GetActorSize(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetPartSize(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus SetPartSize(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 partIndex = get_variable(script, *args++);
|
||||
@ -1714,7 +1714,7 @@ ApiStatus SetPartSize(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetOriginalActorType(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetOriginalActorType(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 outVar = *args++;
|
||||
@ -1727,7 +1727,7 @@ ApiStatus GetOriginalActorType(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetCurrentActorType(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetCurrentActorType(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 outVar = *args++;
|
||||
@ -1740,7 +1740,7 @@ ApiStatus GetCurrentActorType(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetLastDamage(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetLastDamage(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 outVar;
|
||||
@ -1754,7 +1754,7 @@ ApiStatus GetLastDamage(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus EnableActorGlow(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus EnableActorGlow(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 flag;
|
||||
@ -1783,7 +1783,7 @@ ApiStatus EnableActorGlow(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus WasStatusInflicted(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus WasStatusInflicted(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
s32 outVal;
|
||||
@ -1800,7 +1800,7 @@ ApiStatus WasStatusInflicted(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus CopyStatusEffects(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus CopyStatusEffects(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorIDTo;
|
||||
ActorID actorIDFrom;
|
||||
@ -1831,7 +1831,7 @@ ApiStatus CopyStatusEffects(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus ClearStatusEffects(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus ClearStatusEffects(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
s32 flag;
|
||||
|
26
src/1AC760.c
26
src/1AC760.c
@ -4,9 +4,9 @@
|
||||
void dispatch_event_partner(s32 lastEventType) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* partnerActor = battleStatus->partnerActor;
|
||||
ScriptInstance* onHitScript = partnerActor->onHitScript;
|
||||
ScriptID onHitID = partnerActor->onHitID;
|
||||
ScriptInstance* script;
|
||||
Evt* onHitScript = partnerActor->onHitScript;
|
||||
s32 onHitID = partnerActor->onHitID;
|
||||
Evt* script;
|
||||
|
||||
partnerActor->lastEventType = lastEventType;
|
||||
script = start_script(partnerActor->onHitScriptSource, 10, 0x20);
|
||||
@ -27,9 +27,9 @@ void dispatch_event_partner(s32 lastEventType) {
|
||||
void dispatch_event_partner_continue_turn(s8 lastEventType) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* partnerActor = battleStatus->partnerActor;
|
||||
ScriptInstance* onHitScript = partnerActor->onHitScript;
|
||||
ScriptID onHitID = partnerActor->onHitID;
|
||||
ScriptInstance* script;
|
||||
Evt* onHitScript = partnerActor->onHitScript;
|
||||
s32 onHitID = partnerActor->onHitID;
|
||||
Evt* script;
|
||||
|
||||
partnerActor->lastEventType = lastEventType;
|
||||
script = start_script(partnerActor->onHitScriptSource, 10, 0x20);
|
||||
@ -122,7 +122,7 @@ s32 dispatch_damage_event_partner_1(s32 damageAmount, s32 event, s32 stopMotion)
|
||||
return dispatch_damage_event_partner(damageAmount, event, TRUE);
|
||||
}
|
||||
|
||||
ApiStatus MakeOwnerTargetIndex(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus MakeOwnerTargetIndex(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
Actor* actor = get_actor(script->owner1.actorID);
|
||||
s32 numTargets = actor->targetListLength;
|
||||
@ -154,7 +154,7 @@ ApiStatus MakeOwnerTargetIndex(ScriptInstance* script, s32 isInitialCall) {
|
||||
|
||||
s32 calc_partner_damage_enemy(void);
|
||||
|
||||
ApiStatus func_8027FC90(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8027FC90(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
s32 hitResult;
|
||||
@ -178,7 +178,7 @@ ApiStatus func_8027FC90(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetActorLevel(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetActorLevel(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorID actorID = get_variable(script, *args++);
|
||||
Bytecode* outVar;
|
||||
@ -201,7 +201,7 @@ INCLUDE_ASM(s32, "1AC760", PartnerPowerBounceEnemy);
|
||||
|
||||
INCLUDE_ASM(s32, "1AC760", PartnerTestEnemy);
|
||||
|
||||
ApiStatus func_8028070C(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8028070C(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
Actor* actor = get_actor(script->owner1.actorID);
|
||||
@ -218,14 +218,14 @@ ApiStatus func_8028070C(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_BLOCK;
|
||||
}
|
||||
|
||||
ApiStatus DeletePartner(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus DeletePartner(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
|
||||
btl_delete_actor(battleStatus->partnerActor);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetActionCommandResult(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetActionCommandResult(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
s32 var = *script->ptrReadPos;
|
||||
s32 actionSuccess = battleStatus->actionSuccess;
|
||||
@ -244,7 +244,7 @@ ApiStatus GetActionCommandResult(ScriptInstance* script, s32 isInitialCall) {
|
||||
}
|
||||
|
||||
/// Seems to be the same functionality as YieldTurn in 1A5830.c
|
||||
ApiStatus func_80280818(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80280818(Evt* script, s32 isInitialCall) {
|
||||
gBattleStatus.flags1 |= 0x200000;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include "common.h"
|
||||
|
||||
ApiStatus GetDamageIntensity(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetDamageIntensity(Evt* script, s32 isInitialCall) {
|
||||
if (gBattleStatus.lastAttackDamage < 4) {
|
||||
script->varTable[0] = 0;
|
||||
} else if (gBattleStatus.lastAttackDamage < 7) {
|
||||
@ -14,7 +14,7 @@ ApiStatus GetDamageIntensity(ScriptInstance* script, s32 isInitialCall) {
|
||||
}
|
||||
|
||||
// TODO: Rename to AddEffectOffset
|
||||
ApiStatus AddEffectOffset(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus AddEffectOffset(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
EffectInstance* effect = get_variable(script, *args++);
|
||||
|
||||
|
@ -22,7 +22,7 @@ typedef struct StarPowerDesc {
|
||||
|
||||
extern StarPowerDesc D_8008F071[];
|
||||
|
||||
ApiStatus LoadStarPowerScript(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus LoadStarPowerScript(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
PlayerData* playerData = &gPlayerData;
|
||||
s16 selectedItemID;
|
||||
|
@ -35,21 +35,21 @@ void set_defeated(s32 mapID, s32 encounterID) {
|
||||
currentEncounter->defeatFlags[mapID][encounterIdx] |= (1 << encounterShift);*/
|
||||
}
|
||||
|
||||
ApiStatus ShowMerleeCoinMessage(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus ShowMerleeCoinMessage(Evt* script, s32 isInitialCall) {
|
||||
if (isInitialCall) {
|
||||
show_merlee_message(0, 60);
|
||||
}
|
||||
return (is_merlee_message_done() == 0) * ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus ShowMerleeRanOutMessage(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus ShowMerleeRanOutMessage(Evt* script, s32 isInitialCall) {
|
||||
if (isInitialCall) {
|
||||
show_merlee_message(1, 60);
|
||||
}
|
||||
return (is_merlee_message_done() == 0) * ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus FadeBackgroundToBlack(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus FadeBackgroundToBlack(Evt* script, s32 isInitialCall) {
|
||||
if (isInitialCall) {
|
||||
mdl_set_all_fog_mode(1);
|
||||
*D_801512F0 = 1;
|
||||
@ -67,7 +67,7 @@ ApiStatus FadeBackgroundToBlack(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_BLOCK;
|
||||
}
|
||||
|
||||
ApiStatus UnfadeBackgroundFromBlack(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus UnfadeBackgroundFromBlack(Evt* script, s32 isInitialCall) {
|
||||
if (isInitialCall) {
|
||||
script->functionTemp[0] = 25;
|
||||
}
|
||||
@ -83,7 +83,7 @@ ApiStatus UnfadeBackgroundFromBlack(ScriptInstance* script, s32 isInitialCall) {
|
||||
}
|
||||
}
|
||||
|
||||
ApiStatus FadeInMerlee(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus FadeInMerlee(Evt* script, s32 isInitialCall) {
|
||||
Npc* npc = get_npc_unsafe(NPC_BTL_MERLEE);
|
||||
|
||||
if (isInitialCall) {
|
||||
@ -100,7 +100,7 @@ ApiStatus FadeInMerlee(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_BLOCK;
|
||||
}
|
||||
|
||||
ApiStatus FadeOutMerlee(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus FadeOutMerlee(Evt* script, s32 isInitialCall) {
|
||||
Npc* npc = get_npc_unsafe(NPC_BTL_MERLEE);
|
||||
|
||||
npc->alpha -= 17;
|
||||
@ -113,7 +113,7 @@ ApiStatus FadeOutMerlee(ScriptInstance* script, s32 isInitialCall) {
|
||||
}
|
||||
|
||||
// same as func_802616F4 aside from syms
|
||||
ApiStatus MerleeUpdateFX(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus MerleeUpdateFX(Evt* script, s32 isInitialCall) {
|
||||
Npc* merlee = get_npc_unsafe(NPC_BTL_MERLEE);
|
||||
EffectInstanceData* effectInstanceData;
|
||||
|
||||
@ -170,12 +170,12 @@ ApiStatus MerleeUpdateFX(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_BLOCK;
|
||||
}
|
||||
|
||||
ApiStatus MerleeStopFX(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus MerleeStopFX(Evt* script, s32 isInitialCall) {
|
||||
D_800A0BB8 = 1;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetCamLookAtObjVector(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus GetCamLookAtObjVector(Evt* script, s32 isInitialCall) {
|
||||
script->varTable[0] = gCameras[gCurrentCameraID].lookAt_obj.x;
|
||||
script->varTable[1] = gCameras[gCurrentCameraID].lookAt_obj.y;
|
||||
script->varTable[2] = gCameras[gCurrentCameraID].lookAt_obj.z;
|
||||
@ -183,7 +183,7 @@ ApiStatus GetCamLookAtObjVector(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus HasMerleeCasts(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus HasMerleeCasts(Evt* script, s32 isInitialCall) {
|
||||
script->varTable[0] = FALSE;
|
||||
if (gPlayerData.merleeCastsLeft > 0) {
|
||||
script->varTable[0] = TRUE;
|
||||
@ -192,7 +192,7 @@ ApiStatus HasMerleeCasts(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus PlayMerleeGatherFX(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus PlayMerleeGatherFX(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 var0 = get_variable(script, *args++);
|
||||
s32 var1 = get_variable(script, *args++);
|
||||
@ -202,7 +202,7 @@ ApiStatus PlayMerleeGatherFX(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus PlayMerleeOrbFX(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus PlayMerleeOrbFX(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 var0 = get_variable(script, *args++);
|
||||
s32 var1 = get_variable(script, *args++);
|
||||
@ -212,7 +212,7 @@ ApiStatus PlayMerleeOrbFX(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus OnDefeatEnemy(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus OnDefeatEnemy(Evt* script, s32 isInitialCall) {
|
||||
Enemy* enemy = script->owner1.enemy;
|
||||
Npc* npc = get_npc_unsafe(enemy->npcID);
|
||||
s32 temp1;
|
||||
@ -251,7 +251,7 @@ ApiStatus OnDefeatEnemy(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_BLOCK;
|
||||
}
|
||||
|
||||
ApiStatus OnFleeBattleDrops(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus OnFleeBattleDrops(Evt* script, s32 isInitialCall) {
|
||||
PlayerStatus* playerStatus = &gPlayerStatus;
|
||||
PlayerData* playerData = &gPlayerData;
|
||||
|
||||
|
12
src/23680.c
12
src/23680.c
@ -58,7 +58,7 @@ INCLUDE_ASM(s32, "23680", get_coin_drop_amount);
|
||||
#endif
|
||||
|
||||
void func_80048E34(Enemy* enemy, s32 arg1, s32 arg2) {
|
||||
ScriptInstance* newScript;
|
||||
Evt* newScript;
|
||||
|
||||
if (enemy->aiScript != NULL) {
|
||||
kill_script_by_ID(enemy->aiScriptID);
|
||||
@ -173,7 +173,7 @@ void ai_enemy_play_sound(Npc* npc, s32 arg1, s32 arg2) {
|
||||
sfx_play_sound_at_position(arg1, value2, npc->pos.x, npc->pos.y, npc->pos.z);
|
||||
}
|
||||
|
||||
void func_80049550(ScriptInstance* script, s32 arg1) {
|
||||
void func_80049550(Evt* script, s32 arg1) {
|
||||
Npc* npc = get_npc_unsafe(script->owner1.enemy->npcID);
|
||||
|
||||
npc->duration--;
|
||||
@ -191,7 +191,7 @@ INCLUDE_ASM(s32, "23680", func_800496B8);
|
||||
|
||||
INCLUDE_ASM(s32, "23680", func_80049C04);
|
||||
|
||||
void func_80049E3C(ScriptInstance* script) {
|
||||
void func_80049E3C(Evt* script) {
|
||||
Enemy* enemy = script->owner1.enemy;
|
||||
Npc* npc = get_npc_unsafe(enemy->npcID);
|
||||
|
||||
@ -204,7 +204,7 @@ void func_80049E3C(ScriptInstance* script) {
|
||||
script->functionTemp[0] = 11;
|
||||
}
|
||||
|
||||
void func_80049ECC(ScriptInstance* script) {
|
||||
void func_80049ECC(Evt* script) {
|
||||
Npc* npc = get_npc_unsafe(script->owner1.enemy->npcID);
|
||||
s32 flag = FALSE;
|
||||
|
||||
@ -229,7 +229,7 @@ INCLUDE_ASM(s32, "23680", func_80049F7C);
|
||||
|
||||
INCLUDE_ASM(s32, "23680", func_8004A124);
|
||||
|
||||
void func_8004A3E8(ScriptInstance* script, s32 arg1) {
|
||||
void func_8004A3E8(Evt* script, s32 arg1) {
|
||||
Enemy* enemy = script->owner1.enemy;
|
||||
Npc* npc = get_npc_unsafe(enemy->npcID);
|
||||
|
||||
@ -241,4 +241,4 @@ void func_8004A3E8(ScriptInstance* script, s32 arg1) {
|
||||
}
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "23680", DoBasicAI, ScriptInstance* script, s32 isInitialCall);
|
||||
INCLUDE_ASM(s32, "23680", DoBasicAI, Evt* script, s32 isInitialCall);
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include "common.h"
|
||||
#include "map.h"
|
||||
|
||||
void func_8004A6F0(ScriptInstance* script) {
|
||||
void func_8004A6F0(Evt* script) {
|
||||
Npc* npc = get_npc_unsafe(script->owner1.enemy->npcID);
|
||||
|
||||
npc->duration--;
|
||||
@ -10,7 +10,7 @@ void func_8004A6F0(ScriptInstance* script) {
|
||||
}
|
||||
}
|
||||
|
||||
void func_8004A73C(ScriptInstance* script) {
|
||||
void func_8004A73C(Evt* script) {
|
||||
Enemy* enemy = script->owner1.enemy;
|
||||
|
||||
get_npc_unsafe(enemy->npcID);
|
||||
|
18
src/3251D0.c
18
src/3251D0.c
@ -1,7 +1,7 @@
|
||||
#include "common.h"
|
||||
#include "effects.h"
|
||||
|
||||
ApiStatus func_802BD100_3251D0(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802BD100_3251D0(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 a = get_variable(script, *args++);
|
||||
s32 b = get_variable(script, *args++);
|
||||
@ -11,7 +11,7 @@ ApiStatus func_802BD100_3251D0(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802BD1AC_32527C(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802BD1AC_32527C(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 a = get_variable(script, *args++);
|
||||
s32 b = get_variable(script, *args++);
|
||||
@ -22,7 +22,7 @@ ApiStatus func_802BD1AC_32527C(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802BD26C(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802BD26C(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 a = get_variable(script, *args++);
|
||||
s32 b = get_variable(script, *args++);
|
||||
@ -33,7 +33,7 @@ ApiStatus func_802BD26C(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802BD32C(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802BD32C(Evt* script, s32 isInitialCall) {
|
||||
PlayerData* playerData = &gPlayerData;
|
||||
|
||||
s32 newHP = playerData->curHP + get_variable(script, *script->ptrReadPos);
|
||||
@ -50,7 +50,7 @@ ApiStatus func_802BD32C(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802BD388(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802BD388(Evt* script, s32 isInitialCall) {
|
||||
PlayerData* playerData = &gPlayerData;
|
||||
|
||||
s32 newFP = playerData->curFP + get_variable(script, *script->ptrReadPos);
|
||||
@ -67,19 +67,19 @@ ApiStatus func_802BD388(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802BD3E4(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802BD3E4(Evt* script, s32 isInitialCall) {
|
||||
set_time_freeze_mode(TIME_FREEZE_FULL);
|
||||
gOverrideFlags |= 0x200000;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802BD41C(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802BD41C(Evt* script, s32 isInitialCall) {
|
||||
set_time_freeze_mode(TIME_FREEZE_NORMAL);
|
||||
gOverrideFlags &= ~0x200000;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802BD458(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802BD458(Evt* script, s32 isInitialCall) {
|
||||
s32 itemIdx = get_variable(script, *script->ptrReadPos);
|
||||
s32 var15;
|
||||
|
||||
@ -100,7 +100,7 @@ ApiStatus func_802BD458(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802BD4E8(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802BD4E8(Evt* script, s32 isInitialCall) {
|
||||
remove_consumable();
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
@ -189,7 +189,7 @@ INCLUDE_ASM(s32, "362a0_len_2f70", test_ray_entities, f32 startX, f32 startY, f3
|
||||
|
||||
INCLUDE_ASM(s32, "362a0_len_2f70", func_8005DB00);
|
||||
|
||||
ApiStatus func_8005DD54(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_8005DD54(Evt* script, s32 isInitialCall) {
|
||||
f32 angle = clamp_angle(script->varTable[0]);
|
||||
|
||||
script->varTable[0] = angle;
|
||||
|
@ -553,7 +553,7 @@ void func_800E96C8(void) {
|
||||
}
|
||||
}
|
||||
|
||||
ApiStatus ShowCoinCounter(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus ShowCoinCounter(Evt* script, s32 isInitialCall) {
|
||||
if (get_variable(script, *script->ptrReadPos)) {
|
||||
show_coin_counter();
|
||||
} else {
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#define NAMESPACE EA7320
|
||||
|
||||
ApiStatus func_80240350_EA7320(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80240350_EA7320(Evt* script, s32 isInitialCall) {
|
||||
Camera* camera = &dead_gCameras[0];
|
||||
|
||||
camera->flags |= 0x1000;
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
extern s16 D_80169B16;
|
||||
|
||||
ApiStatus func_80240040_EF2650(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80240040_EF2650(Evt* script, s32 isInitialCall) {
|
||||
dead_set_variable(script, *script->ptrReadPos, D_80169B16);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
@ -854,11 +854,11 @@ INCLUDE_ASM(s32, "a5dd0_len_114e0", create_entity, StaticEntityData* data, s32 x
|
||||
|
||||
INCLUDE_ASM(s32, "a5dd0_len_114e0", create_shadow_from_data);
|
||||
|
||||
INCLUDE_ASM(s32, "a5dd0_len_114e0", MakeEntity, ScriptInstance* script, s32 isInitialCall);
|
||||
INCLUDE_ASM(s32, "a5dd0_len_114e0", MakeEntity, Evt* script, s32 isInitialCall);
|
||||
|
||||
INCLUDE_ASM(s32, "a5dd0_len_114e0", SetEntityCullMode);
|
||||
|
||||
ApiStatus UseDynamicShadow(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus UseDynamicShadow(Evt* script, s32 isInitialCall) {
|
||||
Entity* entity = get_entity_by_index(gLastCreatedEntityIndex);
|
||||
|
||||
if (get_variable(script, *script->ptrReadPos)) {
|
||||
@ -874,7 +874,7 @@ ApiStatus UseDynamicShadow(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus AssignScript(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus AssignScript(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
|
||||
if (isInitialCall == TRUE) {
|
||||
@ -887,11 +887,11 @@ ApiStatus AssignScript(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE1;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "a5dd0_len_114e0", AssignAreaFlag, ScriptInstance* script, s32 isInitialCall);
|
||||
INCLUDE_ASM(s32, "a5dd0_len_114e0", AssignAreaFlag, Evt* script, s32 isInitialCall);
|
||||
|
||||
INCLUDE_ASM(s32, "a5dd0_len_114e0", AssignBlockFlag, ScriptInstance* script, s32 isInitialCall);
|
||||
INCLUDE_ASM(s32, "a5dd0_len_114e0", AssignBlockFlag, Evt* script, s32 isInitialCall);
|
||||
|
||||
ApiStatus AssignFlag(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus AssignFlag(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
|
||||
if (isInitialCall == TRUE) {
|
||||
@ -904,9 +904,9 @@ ApiStatus AssignFlag(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE1;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "a5dd0_len_114e0", AssignPanelFlag, ScriptInstance* script, s32 isInitialCall);
|
||||
INCLUDE_ASM(s32, "a5dd0_len_114e0", AssignPanelFlag, Evt* script, s32 isInitialCall);
|
||||
|
||||
INCLUDE_ASM(s32, "a5dd0_len_114e0", AssignCrateFlag, ScriptInstance* script, s32 isInitialCall);
|
||||
INCLUDE_ASM(s32, "a5dd0_len_114e0", AssignCrateFlag, Evt* script, s32 isInitialCall);
|
||||
|
||||
INCLUDE_ASM(s32, "a5dd0_len_114e0", create_entity_shadow);
|
||||
|
||||
|
@ -8,7 +8,7 @@ extern s32 D_80292974;
|
||||
extern s32 D_80294340;
|
||||
extern s32 func_802A98B0_42EC50;
|
||||
|
||||
ApiStatus func_802A9000_428A70(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802A9000_428A70(Evt* script, s32 isInitialCall) {
|
||||
s32 *args = script->ptrReadPos;
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
ActionCommandStatus* actionCommandStatus = &gActionCommandStatus;
|
||||
|
@ -8,7 +8,7 @@ extern s32 D_8029275C;
|
||||
extern s32 D_80292BAC;
|
||||
extern s32 D_80294320;
|
||||
|
||||
ApiStatus N(CreateHudElements)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(CreateHudElements)(Evt* script, s32 isInitialCall) {
|
||||
ActionCommandStatus* actionCommandStatus = &gActionCommandStatus;
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
HudElement* hudElement;
|
||||
@ -20,7 +20,7 @@ ApiStatus N(CreateHudElements)(ScriptInstance* script, s32 isInitialCall) {
|
||||
battleStatus->actionSuccess = 0;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
|
||||
func_80268858();
|
||||
actionCommandStatus->actionCommandID = ACTION_COMMAND_BODY_SLAM;
|
||||
actionCommandStatus->unk_61 = 1;
|
||||
|
@ -8,7 +8,7 @@ extern s32 D_80108AFC;
|
||||
extern s32 D_802928F8;
|
||||
extern s32 D_80109244;
|
||||
|
||||
ApiStatus func_802A9000_4233F0(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802A9000_4233F0(Evt* script, s32 isInitialCall) {
|
||||
ActionCommandStatus* actionCommandStatus = &gActionCommandStatus;
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
HudElement* hudElement;
|
||||
@ -16,7 +16,7 @@ ApiStatus func_802A9000_4233F0(ScriptInstance* script, s32 isInitialCall) {
|
||||
battleStatus->unk_82 = 0;
|
||||
battleStatus->unk_434 = &D_80294220;
|
||||
battleStatus->unk_86 = 127;
|
||||
|
||||
|
||||
if (battleStatus->unk_83 == 0) {
|
||||
battleStatus->actionSuccess = 0;
|
||||
return ApiStatus_DONE2;
|
||||
|
@ -13,7 +13,7 @@ extern s32 D_80108B80;
|
||||
extern s32 D_802A9920;
|
||||
extern s32 D_802A9920;
|
||||
|
||||
ApiStatus func_802A9000_422AD0(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802A9000_422AD0(Evt* script, s32 isInitialCall) {
|
||||
ActionCommandStatus* actionCommandStatus = &gActionCommandStatus;
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
@ -76,7 +76,7 @@ ApiStatus func_802A9000_422AD0(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802A92A0_422D70(ScriptInstance* script) {
|
||||
ApiStatus func_802A92A0_422D70(Evt* script) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActionCommandStatus* actionCommandStatus = &gActionCommandStatus;
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
@ -100,7 +100,7 @@ void func_802A9378_422E48(void) {
|
||||
HudElement* hudElement;
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
ActionCommandStatus* actionCommandStatus = &gActionCommandStatus;
|
||||
|
||||
|
||||
switch (actionCommandStatus->state) {
|
||||
case 0:
|
||||
hudElement = actionCommandStatus->hudElements[0];
|
||||
@ -108,25 +108,25 @@ void func_802A9378_422E48(void) {
|
||||
if (actionCommandStatus->unk_61 != 0) {
|
||||
clear_hud_element_flags(hudElement, 2);
|
||||
}
|
||||
|
||||
|
||||
hudElement = actionCommandStatus->hudElements[1];
|
||||
set_hud_element_alpha(hudElement, 0xFF);
|
||||
if (actionCommandStatus->unk_61 != 0) {
|
||||
clear_hud_element_flags(hudElement, 2);
|
||||
}
|
||||
|
||||
|
||||
hudElement = actionCommandStatus->hudElements[2];
|
||||
set_hud_element_alpha(hudElement, 0xFF);
|
||||
if (actionCommandStatus->unk_61 != 0) {
|
||||
clear_hud_element_flags(hudElement, 2);
|
||||
}
|
||||
|
||||
|
||||
hudElement = actionCommandStatus->hudElements[3];
|
||||
set_hud_element_alpha(hudElement, 0xFF);
|
||||
if (actionCommandStatus->unk_61 != 0) {
|
||||
clear_hud_element_flags(hudElement, 2);
|
||||
}
|
||||
|
||||
|
||||
actionCommandStatus->state = 1;
|
||||
break;
|
||||
case 1:
|
||||
@ -158,7 +158,7 @@ void func_802A9378_422E48(void) {
|
||||
set_hud_element_render_pos(hudElement, actionCommandStatus->hudElementX + 50, actionCommandStatus->hudElementY + 28);
|
||||
clear_hud_element_flags(hudElement, 2);
|
||||
}
|
||||
|
||||
|
||||
battleStatus->actionSuccess = actionCommandStatus->unk_44 / 100;
|
||||
if (actionCommandStatus->unk_54 == 0) {
|
||||
if (battleStatus->actionSuccess >= (100 - actionCommandStatus->unk_46)) {
|
||||
@ -182,7 +182,7 @@ void func_802A9378_422E48(void) {
|
||||
func_80268C9C();
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
switch (actionCommandStatus->state) {
|
||||
case 1:
|
||||
case 10:
|
||||
|
@ -14,7 +14,7 @@ extern s32 D_80292A2C;
|
||||
|
||||
extern s32 D_802941E0;
|
||||
|
||||
ApiStatus N(CreateHudElements)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(CreateHudElements)(Evt* script, s32 isInitialCall) {
|
||||
ActionCommandStatus* actionCommandStatus = &gActionCommandStatus;
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
HudElement* hudElement;
|
||||
@ -82,7 +82,7 @@ ApiStatus N(CreateHudElements)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802A9258_422258(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802A9258_422258(Evt* script, s32 isInitialCall) {
|
||||
ActionCommandStatus* actionCommandStatus = &gActionCommandStatus;
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
|
@ -9,7 +9,7 @@ extern s32 D_80108B28;
|
||||
extern s32 D_80292A2C;
|
||||
extern s32 D_80108B54;
|
||||
|
||||
ApiStatus N(CreateHudElements)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(CreateHudElements)(Evt* script, s32 isInitialCall) {
|
||||
HudElement* hudElement;
|
||||
ActionCommandStatus* actionCommandStatus = &gActionCommandStatus;
|
||||
|
||||
@ -21,7 +21,7 @@ ApiStatus N(CreateHudElements)(ScriptInstance* script, s32 isInitialCall) {
|
||||
gBattleStatus.actionSuccess = 0;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
|
||||
func_80268858();
|
||||
actionCommandStatus->actionCommandID = ACTION_COMMAND_JUMP;
|
||||
actionCommandStatus->hudElementX = -48;
|
||||
@ -46,7 +46,7 @@ ApiStatus N(CreateHudElements)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802A9120_421B10(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802A9120_421B10(Evt* script, s32 isInitialCall) {
|
||||
HudElement* hudElement;
|
||||
|
||||
ActionCommandStatus* actionCommandStatus = &gActionCommandStatus;
|
||||
@ -97,7 +97,7 @@ void N(update)(void) {
|
||||
if (battleStatus->unk_83 == 2) {
|
||||
btl_set_popup_duration(99);
|
||||
}
|
||||
|
||||
|
||||
actionCommandStatus->hudElementX += 20;
|
||||
if (actionCommandStatus->hudElementX > 50) {
|
||||
actionCommandStatus->hudElementX = 50;
|
||||
@ -135,7 +135,7 @@ void N(update)(void) {
|
||||
actionCommandStatus->unk_4E -= 1;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
actionCommandStatus->unk_54 = battleStatus->unk_434[actionCommandStatus->unk_50];
|
||||
battleStatus->actionSuccess = -1;
|
||||
actionCommandStatus->state = 11;
|
||||
@ -153,12 +153,12 @@ void N(update)(void) {
|
||||
if (actionCommandStatus->unk_61 != 0) {
|
||||
set_hud_element_flags(hudElement, 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (battleStatus->actionSuccess < 0) {
|
||||
if ((((battleStatus->currentButtonsPressed & 0x8000) != 0) &&
|
||||
(actionCommandStatus->unk_60 == 0)) ||
|
||||
(actionCommandStatus->unk_60 == 0)) ||
|
||||
(actionCommandStatus->autoSucceed != 0)) {
|
||||
battleStatus->actionSuccess = 1;
|
||||
battleStatus->unk_86 = 1;
|
||||
|
@ -41,7 +41,7 @@ ApiStatus func_802A9000_425590(void) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802A9110_4256A0(ScriptInstance* script) {
|
||||
ApiStatus func_802A9110_4256A0(Evt* script) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActionCommandStatus* actionCommandStatus = &gActionCommandStatus;
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
|
@ -6,7 +6,7 @@ extern s32 D_80108AFC;
|
||||
extern s32 D_80108B28;
|
||||
extern s32 D_802944A0;
|
||||
|
||||
ApiStatus N(CreateHudElements)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(CreateHudElements)(Evt* script, s32 isInitialCall) {
|
||||
ActionCommandStatus* actionCommandStatus = &gActionCommandStatus;
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
s32 hudElement;
|
||||
@ -47,7 +47,7 @@ ApiStatus N(CreateHudElements)(ScriptInstance* script, s32 isInitialCall) {
|
||||
}
|
||||
}
|
||||
|
||||
ApiStatus func_802A9138_42C828(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802A9138_42C828(Evt* script, s32 isInitialCall) {
|
||||
ActionCommandStatus* actionCommandStatus = &gActionCommandStatus;
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
|
@ -5,7 +5,7 @@
|
||||
// requires .data migration
|
||||
INCLUDE_ASM(s32, "battle/action_cmd/water_block", func_802A9000_42A4F0);
|
||||
|
||||
ApiStatus func_802A9398_42A888(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802A9398_42A888(Evt* script, s32 isInitialCall) {
|
||||
ActionCommandStatus* actionCommandStatus = &gActionCommandStatus;
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
// requires .data migration
|
||||
#ifdef NON_MATCHING
|
||||
ApiStatus func_802A9000_423C70(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802A9000_423C70(Evt* script, s32 isInitialCall) {
|
||||
ActionCommandStatus* actionCommandStatus = &gActionCommandStatus;
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include "common/StartRumbleWithParams.inc.c"
|
||||
#define NAMESPACE b_area_arn
|
||||
|
||||
ApiStatus func_80218618_4FF068(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80218618_4FF068(Evt* script, s32 isInitialCall) {
|
||||
s32 temp_s0 = get_variable(script, *script->ptrReadPos);
|
||||
Actor* actor = get_actor(script->owner1.actorID);
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
extern s32 D_8008F0A0;
|
||||
|
||||
ApiStatus func_80218644_6DE404(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80218644_6DE404(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
SelectableTarget* selectableTarget;
|
||||
|
@ -5,7 +5,7 @@
|
||||
extern s32 D_8008F2E4;
|
||||
extern s32 D_8008FC44;
|
||||
|
||||
ApiStatus func_802186E0_6DE4A0(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802186E0_6DE4A0(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
SelectableTarget* selectableTarget;
|
||||
@ -24,7 +24,7 @@ ApiStatus func_802186E0_6DE4A0(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80218770_6DE530(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80218770_6DE530(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* partner = battleStatus->partnerActor;
|
||||
SelectableTarget* selectableTarget;
|
||||
@ -44,7 +44,7 @@ ApiStatus func_80218770_6DE530(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802187F0_6DE5B0(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802187F0_6DE5B0(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
PlayerData* playerData = &gPlayerData;
|
||||
s32 selectedItemID;
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
#include "common/UnkBattleFunc1.inc.c"
|
||||
|
||||
ApiStatus func_802180CC_5B157C(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802180CC_5B157C(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 prevX = get_variable(script, *args++);
|
||||
s32 prevZ = get_variable(script, *args++);
|
||||
|
@ -15,7 +15,7 @@ extern char* D_80233870_5CCD20[11];
|
||||
extern char* D_80233950_5CCE00[11];
|
||||
|
||||
|
||||
ApiStatus func_80219420_5B28D0(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80219420_5B28D0(Evt* script, s32 isInitialCall) {
|
||||
s32 var1 = 0;
|
||||
u32 i;
|
||||
|
||||
@ -31,7 +31,7 @@ ApiStatus func_80219420_5B28D0(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802194E0_5B2990(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802194E0_5B2990(Evt* script, s32 isInitialCall) {
|
||||
s32 var1 = 0;
|
||||
u32 i;
|
||||
|
||||
@ -47,7 +47,7 @@ ApiStatus func_802194E0_5B2990(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802195A0_5B2A50(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802195A0_5B2A50(Evt* script, s32 isInitialCall) {
|
||||
s32 var1 = 0;
|
||||
u32 i;
|
||||
|
||||
@ -63,7 +63,7 @@ ApiStatus func_802195A0_5B2A50(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80219660_5B2B10(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80219660_5B2B10(Evt* script, s32 isInitialCall) {
|
||||
s32 var1 = 0;
|
||||
u32 i;
|
||||
|
||||
@ -79,7 +79,7 @@ ApiStatus func_80219660_5B2B10(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80219720_5B2BD0(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80219720_5B2BD0(Evt* script, s32 isInitialCall) {
|
||||
s32 var1 = 0;
|
||||
u32 i;
|
||||
|
||||
@ -95,7 +95,7 @@ ApiStatus func_80219720_5B2BD0(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802197E0_5B2C90(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802197E0_5B2C90(Evt* script, s32 isInitialCall) {
|
||||
s32 var1 = 0;
|
||||
u32 i;
|
||||
|
||||
@ -111,7 +111,7 @@ ApiStatus func_802197E0_5B2C90(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802198A0_5B2D50(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802198A0_5B2D50(Evt* script, s32 isInitialCall) {
|
||||
s32 var1 = 0;
|
||||
u32 i;
|
||||
|
||||
@ -135,7 +135,7 @@ ApiStatus func_802198A0_5B2D50(ScriptInstance* script, s32 isInitialCall) {
|
||||
#include "common/UnkFloatFunc.inc.c"
|
||||
#define NAMESPACE b_area_flo
|
||||
|
||||
ApiStatus func_80219C80_5B3130(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80219C80_5B3130(Evt* script, s32 isInitialCall) {
|
||||
s32 var1 = 0;
|
||||
u32 i;
|
||||
|
||||
@ -151,7 +151,7 @@ ApiStatus func_80219C80_5B3130(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80219D40_5B31F0(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80219D40_5B31F0(Evt* script, s32 isInitialCall) {
|
||||
s32 var1 = 0;
|
||||
u32 i;
|
||||
|
||||
@ -167,7 +167,7 @@ ApiStatus func_80219D40_5B31F0(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80219E00_5B32B0(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80219E00_5B32B0(Evt* script, s32 isInitialCall) {
|
||||
s32 var1 = 0;
|
||||
u32 i;
|
||||
|
||||
|
@ -18,7 +18,7 @@ extern char* D_802350D4_5EB764[11];
|
||||
#include "common/UnkFloatFunc.inc.c"
|
||||
#define NAMESPACE b_area_flo2
|
||||
|
||||
ApiStatus func_80218DD0_5CF460(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80218DD0_5CF460(Evt* script, s32 isInitialCall) {
|
||||
s32 var1 = 0;
|
||||
u32 i;
|
||||
|
||||
@ -34,7 +34,7 @@ ApiStatus func_80218DD0_5CF460(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80218E90_5CF520(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80218E90_5CF520(Evt* script, s32 isInitialCall) {
|
||||
s32 var1 = 0;
|
||||
u32 i;
|
||||
|
||||
@ -50,7 +50,7 @@ ApiStatus func_80218E90_5CF520(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80218F50_5CF5E0(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80218F50_5CF5E0(Evt* script, s32 isInitialCall) {
|
||||
s32 var1 = 0;
|
||||
u32 i;
|
||||
|
||||
@ -66,7 +66,7 @@ ApiStatus func_80218F50_5CF5E0(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80219010_5CF6A0(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80219010_5CF6A0(Evt* script, s32 isInitialCall) {
|
||||
s32 var1 = 0;
|
||||
u32 i;
|
||||
|
||||
@ -82,7 +82,7 @@ ApiStatus func_80219010_5CF6A0(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802190D0_5CF760(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802190D0_5CF760(Evt* script, s32 isInitialCall) {
|
||||
s32 var1 = 0;
|
||||
u32 i;
|
||||
|
||||
@ -98,7 +98,7 @@ ApiStatus func_802190D0_5CF760(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80219190_5CF820(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80219190_5CF820(Evt* script, s32 isInitialCall) {
|
||||
s32 var1 = 0;
|
||||
u32 i;
|
||||
|
||||
@ -114,7 +114,7 @@ ApiStatus func_80219190_5CF820(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80219250_5CF8E0(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80219250_5CF8E0(Evt* script, s32 isInitialCall) {
|
||||
s32 var1 = 0;
|
||||
u32 i;
|
||||
|
||||
@ -138,7 +138,7 @@ ApiStatus func_80219250_5CF8E0(ScriptInstance* script, s32 isInitialCall) {
|
||||
#include "common/UnkFloatFunc.inc.c"
|
||||
#define NAMESPACE b_area_flo2
|
||||
|
||||
ApiStatus func_80219630_5CFCC0(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80219630_5CFCC0(Evt* script, s32 isInitialCall) {
|
||||
s32 var1 = 0;
|
||||
u32 i;
|
||||
|
||||
@ -154,7 +154,7 @@ ApiStatus func_80219630_5CFCC0(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802196F0_5CFD80(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802196F0_5CFD80(Evt* script, s32 isInitialCall) {
|
||||
s32 var1 = 0;
|
||||
u32 i;
|
||||
|
||||
@ -170,7 +170,7 @@ ApiStatus func_802196F0_5CFD80(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802197B0_5CFE40(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802197B0_5CFE40(Evt* script, s32 isInitialCall) {
|
||||
s32 var1 = 0;
|
||||
u32 i;
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#define NAMESPACE b_area_hos
|
||||
|
||||
ApiStatus func_80218000_47F0B0(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80218000_47F0B0(Evt* script, s32 isInitialCall) {
|
||||
PlayerData* playerData = &gPlayerData;
|
||||
|
||||
playerData->currentPartner = PARTNER_GOOMBARIO;
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
#define NAMESPACE b_area_iwa
|
||||
|
||||
ApiStatus N(SetSpinSmashable)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(SetSpinSmashable)(Evt* script, s32 isInitialCall) {
|
||||
s32 canSpinSmash = get_variable(script, *script->ptrReadPos);
|
||||
Actor* actor = get_actor(script->owner1.actorID);
|
||||
|
||||
|
@ -55,7 +55,7 @@ u32 N(angle_calculate)(f32 x, f32 y) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
ApiStatus N(AngleCalculate)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(AngleCalculate)(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 var1 = get_variable(script, *args++);
|
||||
s32 var2 = get_variable(script, *args++);
|
||||
|
@ -36,7 +36,7 @@ s32 N(statusTable_8021961C)[] = {
|
||||
};
|
||||
|
||||
s32 N(idleAnimations_80219714)[];
|
||||
Script N(init_802197AC);
|
||||
EvtSource N(init_802197AC);
|
||||
|
||||
ActorPartDesc N(partsTable_802196C8)[] = {
|
||||
{
|
||||
@ -102,17 +102,17 @@ s32 N(idleAnimations_80219760)[] = {
|
||||
STATUS_END,
|
||||
};
|
||||
|
||||
Script N(takeTurn_8021A300);
|
||||
Script N(idle_802197F8);
|
||||
Script N(handleEvent_80219AD4);
|
||||
EvtSource N(takeTurn_8021A300);
|
||||
EvtSource N(idle_802197F8);
|
||||
EvtSource N(handleEvent_80219AD4);
|
||||
|
||||
Script N(init_802197AC) = SCRIPT({
|
||||
EvtSource N(init_802197AC) = SCRIPT({
|
||||
BindTakeTurn(ACTOR_SELF, N(takeTurn_8021A300));
|
||||
BindIdle(ACTOR_SELF, N(idle_802197F8));
|
||||
BindHandleEvent(ACTOR_SELF, N(handleEvent_80219AD4));
|
||||
});
|
||||
|
||||
Script N(idle_802197F8) = SCRIPT({
|
||||
EvtSource N(idle_802197F8) = SCRIPT({
|
||||
10:
|
||||
RandInt(80, SI_VAR(0));
|
||||
SI_VAR(0) += 80;
|
||||
@ -160,7 +160,7 @@ Script N(idle_802197F8) = SCRIPT({
|
||||
goto 10;
|
||||
});
|
||||
|
||||
Script N(handleEvent_80219AD4) = SCRIPT({
|
||||
EvtSource N(handleEvent_80219AD4) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_SELF, FALSE);
|
||||
EnableIdleScript(ACTOR_SELF, FALSE);
|
||||
SetActorScale(ACTOR_SELF, 1.0, 1.0, 1.0);
|
||||
@ -286,7 +286,7 @@ Script N(handleEvent_80219AD4) = SCRIPT({
|
||||
|
||||
#include "anglestuff.inc.c"
|
||||
|
||||
Script N(takeTurn_8021A300) = SCRIPT({
|
||||
EvtSource N(takeTurn_8021A300) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_SELF, FALSE);
|
||||
EnableIdleScript(ACTOR_SELF, FALSE);
|
||||
SetTargetActor(ACTOR_SELF, ACTOR_PLAYER);
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#define NAMESPACE b_area_kmr_part_1_paragoomba
|
||||
|
||||
ApiStatus N(AngleCalculate)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(AngleCalculate)(Evt* script, s32 isInitialCall);
|
||||
|
||||
s32 N(defenseTable_8021CB00)[] = {
|
||||
ELEMENT_NORMAL, 0,
|
||||
@ -72,7 +72,7 @@ s32 N(idleAnimations_8021E4EC)[];
|
||||
s32 N(idleAnimations_8021CD28)[];
|
||||
s32 N(idleAnimations_8021CDC0)[];
|
||||
s32 N(idleAnimations_8021CDCC)[];
|
||||
Script N(init_8021CDD8);
|
||||
EvtSource N(init_8021CDD8);
|
||||
|
||||
ActorPartDesc N(partsTable_8021CC70)[] = {
|
||||
{
|
||||
@ -184,17 +184,17 @@ s32 N(idleAnimations_8021CDCC)[] = {
|
||||
STATUS_END,
|
||||
};
|
||||
|
||||
Script N(takeTurn_8021D74C);
|
||||
Script N(idle_8021CE24);
|
||||
Script N(handleEvent_8021D158);
|
||||
EvtSource N(takeTurn_8021D74C);
|
||||
EvtSource N(idle_8021CE24);
|
||||
EvtSource N(handleEvent_8021D158);
|
||||
|
||||
Script N(init_8021CDD8) = SCRIPT({
|
||||
EvtSource N(init_8021CDD8) = SCRIPT({
|
||||
BindTakeTurn(ACTOR_SELF, N(takeTurn_8021D74C));
|
||||
BindIdle(ACTOR_SELF, N(idle_8021CE24));
|
||||
BindHandleEvent(ACTOR_SELF, N(handleEvent_8021D158));
|
||||
});
|
||||
|
||||
Script N(idle_8021CE24) = SCRIPT({
|
||||
EvtSource N(idle_8021CE24) = SCRIPT({
|
||||
10:
|
||||
RandInt(80, SI_VAR(0));
|
||||
SI_VAR(0) += 80;
|
||||
@ -240,7 +240,7 @@ Script N(idle_8021CE24) = SCRIPT({
|
||||
goto 10;
|
||||
});
|
||||
|
||||
Script N(8021D0E0) = SCRIPT({
|
||||
EvtSource N(8021D0E0) = SCRIPT({
|
||||
ResetAllActorSounds(ACTOR_SELF);
|
||||
SetGoalToHome(ACTOR_SELF);
|
||||
SetActorSpeed(ACTOR_SELF, 7.0);
|
||||
@ -248,9 +248,9 @@ Script N(8021D0E0) = SCRIPT({
|
||||
SetAnimation(ACTOR_SELF, 2, NPC_ANIM(paragoomba, default, idle));
|
||||
});
|
||||
|
||||
Script N(8021DF64);
|
||||
EvtSource N(8021DF64);
|
||||
|
||||
Script N(handleEvent_8021D158) = SCRIPT({
|
||||
EvtSource N(handleEvent_8021D158) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_SELF, FALSE);
|
||||
EnableIdleScript(ACTOR_SELF, 0);
|
||||
GetLastEvent(ACTOR_SELF, SI_VAR(0));
|
||||
@ -370,7 +370,7 @@ Script N(handleEvent_8021D158) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_SELF, TRUE);
|
||||
});
|
||||
|
||||
Script N(takeTurn_8021D74C) = SCRIPT({
|
||||
EvtSource N(takeTurn_8021D74C) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_SELF, FALSE);
|
||||
EnableIdleScript(ACTOR_SELF, 0);
|
||||
SetTargetActor(ACTOR_SELF, ACTOR_PLAYER);
|
||||
@ -479,11 +479,11 @@ Script N(takeTurn_8021D74C) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_SELF, TRUE);
|
||||
});
|
||||
|
||||
Script N(8021E584);
|
||||
EvtSource N(8021E584);
|
||||
|
||||
#include "common/StartRumbleWithParams.inc.c"
|
||||
|
||||
Script N(8021DF64) = SCRIPT({
|
||||
EvtSource N(8021DF64) = SCRIPT({
|
||||
func_8027D32C(-127);
|
||||
SetPartFlags(ACTOR_SELF, 2, 131077);
|
||||
SetPartFlags(ACTOR_SELF, 3, 1179652);
|
||||
@ -577,17 +577,17 @@ s32 N(idleAnimations_8021E538)[] = {
|
||||
STATUS_END,
|
||||
};
|
||||
|
||||
Script N(takeTurn_8021F0D8);
|
||||
Script N(idle_8021E5D0);
|
||||
Script N(handleEvent_8021E8AC);
|
||||
EvtSource N(takeTurn_8021F0D8);
|
||||
EvtSource N(idle_8021E5D0);
|
||||
EvtSource N(handleEvent_8021E8AC);
|
||||
|
||||
Script N(8021E584) = SCRIPT({
|
||||
EvtSource N(8021E584) = SCRIPT({
|
||||
BindTakeTurn(ACTOR_SELF, N(takeTurn_8021F0D8));
|
||||
BindIdle(ACTOR_SELF, N(idle_8021E5D0));
|
||||
BindHandleEvent(ACTOR_SELF, N(handleEvent_8021E8AC));
|
||||
});
|
||||
|
||||
Script N(idle_8021E5D0) = SCRIPT({
|
||||
EvtSource N(idle_8021E5D0) = SCRIPT({
|
||||
10:
|
||||
RandInt(80, SI_VAR(0));
|
||||
SI_VAR(0) += 80;
|
||||
@ -635,7 +635,7 @@ Script N(idle_8021E5D0) = SCRIPT({
|
||||
goto 10;
|
||||
});
|
||||
|
||||
Script N(handleEvent_8021E8AC) = SCRIPT({
|
||||
EvtSource N(handleEvent_8021E8AC) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_SELF, FALSE);
|
||||
EnableIdleScript(ACTOR_SELF, FALSE);
|
||||
SetActorScale(ACTOR_SELF, 1.0, 1.0, 1.0);
|
||||
@ -761,7 +761,7 @@ Script N(handleEvent_8021E8AC) = SCRIPT({
|
||||
|
||||
#include "anglestuff.inc.c"
|
||||
|
||||
Script N(takeTurn_8021F0D8) = SCRIPT({
|
||||
EvtSource N(takeTurn_8021F0D8) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_SELF, FALSE);
|
||||
EnableIdleScript(ACTOR_SELF, FALSE);
|
||||
SetTargetActor(ACTOR_SELF, ACTOR_PLAYER);
|
||||
|
@ -36,7 +36,7 @@ s32 N(statusTable_8021AFDC)[] = {
|
||||
};
|
||||
|
||||
s32 N(idleAnimations_8021B0D4)[];
|
||||
Script N(init_8021B16C);
|
||||
EvtSource N(init_8021B16C);
|
||||
|
||||
ActorPartDesc N(partsTable_8021B088)[] = {
|
||||
{
|
||||
@ -102,17 +102,17 @@ s32 N(idleAnimations_8021B120)[] = {
|
||||
STATUS_END,
|
||||
};
|
||||
|
||||
Script N(takeTurn_8021BDDC);
|
||||
Script N(idle_8021B1B8);
|
||||
Script N(handleEvent_8021B494);
|
||||
EvtSource N(takeTurn_8021BDDC);
|
||||
EvtSource N(idle_8021B1B8);
|
||||
EvtSource N(handleEvent_8021B494);
|
||||
|
||||
Script N(init_8021B16C) = SCRIPT({
|
||||
EvtSource N(init_8021B16C) = SCRIPT({
|
||||
BindTakeTurn(ACTOR_SELF, N(takeTurn_8021BDDC));
|
||||
BindIdle(ACTOR_SELF, N(idle_8021B1B8));
|
||||
BindHandleEvent(ACTOR_SELF, N(handleEvent_8021B494));
|
||||
});
|
||||
|
||||
Script N(idle_8021B1B8) = SCRIPT({
|
||||
EvtSource N(idle_8021B1B8) = SCRIPT({
|
||||
10:
|
||||
RandInt(80, SI_VAR(0));
|
||||
SI_VAR(0) += 80;
|
||||
@ -160,7 +160,7 @@ Script N(idle_8021B1B8) = SCRIPT({
|
||||
goto 10;
|
||||
});
|
||||
|
||||
Script N(handleEvent_8021B494) = SCRIPT({
|
||||
EvtSource N(handleEvent_8021B494) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_SELF, FALSE);
|
||||
EnableIdleScript(ACTOR_SELF, FALSE);
|
||||
SetActorScale(ACTOR_SELF, 1.0, 1.0, 1.0);
|
||||
@ -302,7 +302,7 @@ Script N(handleEvent_8021B494) = SCRIPT({
|
||||
|
||||
#include "anglestuff.inc.c"
|
||||
|
||||
Script N(takeTurn_8021BDDC) = SCRIPT({
|
||||
EvtSource N(takeTurn_8021BDDC) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_SELF, FALSE);
|
||||
EnableIdleScript(ACTOR_SELF, FALSE);
|
||||
SetTargetActor(ACTOR_SELF, ACTOR_PLAYER);
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include "common/UnkAngleFunc2.inc.c"
|
||||
|
||||
Script N(clouds1) = SCRIPT({
|
||||
EvtSource N(clouds1) = SCRIPT({
|
||||
SI_VAR(10) = SI_VAR(0);
|
||||
SI_VAR(7) = SI_VAR(2);
|
||||
SI_VAR(7) *= 10;
|
||||
@ -16,7 +16,7 @@ Script N(clouds1) = SCRIPT({
|
||||
goto 0;
|
||||
});
|
||||
|
||||
Script N(clouds2) = SCRIPT({
|
||||
EvtSource N(clouds2) = SCRIPT({
|
||||
SI_VAR(10) = SI_VAR(0);
|
||||
SI_VAR(11) = SI_VAR(3);
|
||||
SI_VAR(12) = SI_VAR(4);
|
||||
@ -36,7 +36,7 @@ Script N(clouds2) = SCRIPT({
|
||||
goto 0;
|
||||
});
|
||||
|
||||
Script N(clouds3) = SCRIPT({
|
||||
EvtSource N(clouds3) = SCRIPT({
|
||||
SI_VAR(10) = SI_VAR(0);
|
||||
SI_VAR(11) = SI_VAR(3);
|
||||
SI_VAR(12) = SI_VAR(4);
|
||||
|
@ -3,11 +3,11 @@
|
||||
|
||||
#define NAMESPACE b_area_kmr_part_1_kmr_02
|
||||
|
||||
Script N(beforeBattle_8021FDA0) = SCRIPT({
|
||||
EvtSource N(beforeBattle_8021FDA0) = SCRIPT({
|
||||
SetSpriteShading(-1);
|
||||
});
|
||||
|
||||
Script N(afterBattle_8021FDC0) = SCRIPT({
|
||||
EvtSource N(afterBattle_8021FDC0) = SCRIPT({
|
||||
});
|
||||
|
||||
Stage NAMESPACE = {
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
#include "clouds.inc.c"
|
||||
|
||||
Script N(beforeBattle_80220188) = SCRIPT({
|
||||
EvtSource N(beforeBattle_80220188) = SCRIPT({
|
||||
SetSpriteShading(-1);
|
||||
|
||||
SI_VAR(0) = 1; // model
|
||||
@ -17,7 +17,7 @@ Script N(beforeBattle_80220188) = SCRIPT({
|
||||
spawn N(clouds1);
|
||||
});
|
||||
|
||||
Script N(afterBattle_80220200) = SCRIPT({
|
||||
EvtSource N(afterBattle_80220200) = SCRIPT({
|
||||
});
|
||||
|
||||
s32 N(foregroundModelList_80220210)[] = {
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
#include "clouds.inc.c"
|
||||
|
||||
Script N(beforeBattle_802205D8) = SCRIPT({
|
||||
EvtSource N(beforeBattle_802205D8) = SCRIPT({
|
||||
SetSpriteShading(-1);
|
||||
|
||||
SI_VAR(0) = 1;
|
||||
@ -17,7 +17,7 @@ Script N(beforeBattle_802205D8) = SCRIPT({
|
||||
spawn N(clouds1);
|
||||
});
|
||||
|
||||
Script N(afterBattle_80220650) = SCRIPT({
|
||||
EvtSource N(afterBattle_80220650) = SCRIPT({
|
||||
|
||||
});
|
||||
|
||||
|
@ -5,12 +5,12 @@
|
||||
|
||||
#include "clouds.inc.c"
|
||||
|
||||
Script N(beforeBattle_80220A28) = SCRIPT({
|
||||
EvtSource N(beforeBattle_80220A28) = SCRIPT({
|
||||
SetSpriteShading(-1);
|
||||
EnableModel(27, 0);
|
||||
});
|
||||
|
||||
Script N(afterBattle_80220A5C) = SCRIPT({
|
||||
EvtSource N(afterBattle_80220A5C) = SCRIPT({
|
||||
|
||||
});
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include "clouds.inc.c"
|
||||
#include "common/UnkFogFunc.inc.c"
|
||||
|
||||
Script N(beforeBattle_80220E28) = SCRIPT({
|
||||
EvtSource N(beforeBattle_80220E28) = SCRIPT({
|
||||
SetSpriteShading(-1);
|
||||
|
||||
N(UnkFogFunc)();
|
||||
@ -20,7 +20,7 @@ Script N(beforeBattle_80220E28) = SCRIPT({
|
||||
spawn N(clouds1);
|
||||
});
|
||||
|
||||
Script N(afterBattle_80220EAC) = SCRIPT({
|
||||
EvtSource N(afterBattle_80220EAC) = SCRIPT({
|
||||
|
||||
});
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
#include "common/DivActorLevel4.inc.c"
|
||||
#define NAMESPACE b_area_kmr_part_2
|
||||
|
||||
ApiStatus func_80218A60_43A4F0(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80218A60_43A4F0(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 var1 = get_variable(script, *args++);
|
||||
s32 var2 = get_variable(script, *args++);
|
||||
|
@ -8,7 +8,7 @@ extern s32 D_80104A28;
|
||||
#include "common/UnkBattleFunc1.inc.c"
|
||||
#define NAMESPACE b_area_kmr_part_3
|
||||
|
||||
ApiStatus func_802189DC_447E1C(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802189DC_447E1C(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
f32 posX = get_float_variable(script, *args++);
|
||||
f32 posY = get_float_variable(script, *args++);
|
||||
|
@ -10,12 +10,12 @@ INCLUDE_ASM(s32, "battle/area_omo/512E50", func_80218B38_513108);
|
||||
|
||||
/// checks if all actions are available.
|
||||
/// used by Spy Guys.
|
||||
ApiStatus func_80218CF4_5132C4(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80218CF4_5132C4(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* status = &gBattleStatus;
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
|
||||
if (status->hammerLossTurns == -1 ||
|
||||
status->jumpLossTurns == -1 ||
|
||||
if (status->hammerLossTurns == -1 ||
|
||||
status->jumpLossTurns == -1 ||
|
||||
status->itemLossTurns == -1
|
||||
) {
|
||||
set_variable(script, *args++, 0);
|
||||
|
@ -2,9 +2,9 @@
|
||||
|
||||
#define NAMESPACE b_area_omo3
|
||||
|
||||
ApiStatus func_80218000_5573E0(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80218000_5573E0(Evt* script, s32 isInitialCall) {
|
||||
get_actor(script->owner1.actorID);
|
||||
|
||||
|
||||
set_screen_overlay_params_back(13, 220.0f);
|
||||
set_screen_overlay_alpha(1, 200.0f);
|
||||
return ApiStatus_DONE2;
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
extern s32 D_80219040;
|
||||
|
||||
ApiStatus func_80218000_4CF1B0(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80218000_4CF1B0(Evt* script, s32 isInitialCall) {
|
||||
Actor* actor = get_actor(script->owner1.actorID);
|
||||
s32* sym;
|
||||
|
||||
@ -20,29 +20,29 @@ ApiStatus func_80218000_4CF1B0(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_BLOCK;
|
||||
}
|
||||
|
||||
ApiStatus func_802180C8_4CF278(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802180C8_4CF278(Evt* script, s32 isInitialCall) {
|
||||
status_menu_start_blinking_sp();
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802180E8_4CF298(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802180E8_4CF298(Evt* script, s32 isInitialCall) {
|
||||
status_menu_stop_blinking_sp();
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80218108_4CF2B8(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80218108_4CF2B8(Evt* script, s32 isInitialCall) {
|
||||
status_menu_start_blinking_hp();
|
||||
status_menu_start_blinking_fp();
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80218130_4CF2E0(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80218130_4CF2E0(Evt* script, s32 isInitialCall) {
|
||||
status_menu_stop_blinking_hp();
|
||||
status_menu_stop_blinking_fp();
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80218158_4CF308(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80218158_4CF308(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
|
||||
battleStatus->unk_4C = 0;
|
||||
@ -51,7 +51,7 @@ ApiStatus func_80218158_4CF308(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_80218170_4CF320(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_80218170_4CF320(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
|
||||
if (isInitialCall) {
|
||||
@ -68,7 +68,7 @@ ApiStatus func_80218170_4CF320(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802181B4_4CF364(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802181B4_4CF364(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
|
||||
if (isInitialCall) {
|
||||
@ -85,7 +85,7 @@ ApiStatus func_802181B4_4CF364(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802181F8_4CF3A8(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus func_802181F8_4CF3A8(Evt* script, s32 isInitialCall) {
|
||||
PlayerData* playerData = &gPlayerData;
|
||||
|
||||
playerData->specialBarsFilled += 32;
|
||||
|
@ -5,7 +5,7 @@
|
||||
static HudElement* D_802A1E80;
|
||||
|
||||
// Returns time to sleep for on $x.
|
||||
ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefund)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = gBattleStatus.playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -50,7 +50,7 @@ ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefundCleanup)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
|
||||
@ -62,7 +62,7 @@ ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
}
|
||||
|
||||
/// Provide arg `TRUE` on `SI_VAR(1)` to disable refunding.
|
||||
Script N(UseItemWithEffect) = SCRIPT({
|
||||
EvtSource N(UseItemWithEffect) = SCRIPT({
|
||||
if (SI_VAR(1) == 0) {
|
||||
UseBattleCamPreset(69); // Nice
|
||||
sleep 10;
|
||||
@ -111,7 +111,7 @@ Script N(UseItemWithEffect) = SCRIPT({
|
||||
}
|
||||
});
|
||||
|
||||
Script N(UseItem) = SCRIPT({
|
||||
EvtSource N(UseItem) = SCRIPT({
|
||||
UseBattleCamPreset(19);
|
||||
SetBattleCamTarget(-85, 1, 0);
|
||||
SetBattleCamOffsetZ(41);
|
||||
@ -134,7 +134,7 @@ Script N(UseItem) = SCRIPT({
|
||||
RemoveItemEntity(SI_VAR(14));
|
||||
});
|
||||
|
||||
Script N(PlayerGoHome) = SCRIPT({
|
||||
EvtSource N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 0);
|
||||
SetGoalToHome(ACTOR_PLAYER);
|
||||
SetActorSpeed(ACTOR_PLAYER, 8.0);
|
||||
@ -145,7 +145,7 @@ Script N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 1);
|
||||
});
|
||||
|
||||
Script N(EatItem) = SCRIPT({
|
||||
EvtSource N(EatItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -156,7 +156,7 @@ Script N(EatItem) = SCRIPT({
|
||||
sleep 45;
|
||||
});
|
||||
|
||||
Script N(DrinkItem) = SCRIPT({
|
||||
EvtSource N(DrinkItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -206,7 +206,7 @@ s32 N(modelCommandList)[] = {
|
||||
0x00000004, 0x0000000D, 0x00000001, sizeof(N(displayList)) / sizeof(s32), &N(displayList), 0x00000002, 0x00000000,
|
||||
};
|
||||
|
||||
Script N(main) = SCRIPT({
|
||||
EvtSource N(main) = SCRIPT({
|
||||
SI_VAR(10) = (const) ITEM_COCONUT;
|
||||
|
||||
await N(UseItemWithEffect);
|
||||
|
@ -7,10 +7,10 @@
|
||||
#undef NAMESPACE
|
||||
#define NAMESPACE battle_item_coconut
|
||||
|
||||
Script N(UseItemWithEffect);
|
||||
Script N(PlayerGoHome);
|
||||
EvtSource N(UseItemWithEffect);
|
||||
EvtSource N(PlayerGoHome);
|
||||
|
||||
ApiStatus func_802A1000_72F720(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802A11D4_72F8F4(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802A1000_72F720(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_802A11D4_72F8F4(Evt* script, s32 isInitialCall);
|
||||
|
||||
#endif
|
||||
|
@ -4,7 +4,7 @@
|
||||
static s32* D_802A1CD0;
|
||||
static HudElement* D_802A1CD4;
|
||||
|
||||
ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefund)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -43,7 +43,7 @@ ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefundCleanup)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -59,7 +59,7 @@ void func_802A123C_727B4C(void) {
|
||||
func_80138D88(0, 0, 0x140, 0xF0, 160.0f);
|
||||
}
|
||||
|
||||
ApiStatus N(func_802A1270_727B80)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A1270_727B80)(Evt* script, s32 isInitialCall) {
|
||||
Camera* camera = &gCameras[1];
|
||||
f32 a;
|
||||
|
||||
@ -93,7 +93,7 @@ ApiStatus N(func_802A1270_727B80)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_BLOCK;
|
||||
}
|
||||
|
||||
Script N(UseItemWithEffect) = SCRIPT({
|
||||
EvtSource N(UseItemWithEffect) = SCRIPT({
|
||||
if (SI_VAR(1) == 0) {
|
||||
UseBattleCamPreset(69);
|
||||
sleep 10;
|
||||
@ -140,7 +140,7 @@ Script N(UseItemWithEffect) = SCRIPT({
|
||||
}
|
||||
});
|
||||
|
||||
Script N(UseItem) = SCRIPT({
|
||||
EvtSource N(UseItem) = SCRIPT({
|
||||
UseBattleCamPreset(19);
|
||||
SetBattleCamTarget(-85, 1, 0);
|
||||
SetBattleCamOffsetZ(41);
|
||||
@ -163,7 +163,7 @@ Script N(UseItem) = SCRIPT({
|
||||
RemoveItemEntity(SI_VAR(14));
|
||||
});
|
||||
|
||||
Script N(PlayerGoHome) = SCRIPT({
|
||||
EvtSource N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 0);
|
||||
SetGoalToHome(ACTOR_PLAYER);
|
||||
SetActorSpeed(ACTOR_PLAYER, 8.0);
|
||||
@ -174,7 +174,7 @@ Script N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 1);
|
||||
});
|
||||
|
||||
Script N(EatItem) = SCRIPT({
|
||||
EvtSource N(EatItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -185,7 +185,7 @@ Script N(EatItem) = SCRIPT({
|
||||
sleep 45;
|
||||
});
|
||||
|
||||
Script N(DrinkItem) = SCRIPT({
|
||||
EvtSource N(DrinkItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -196,7 +196,7 @@ Script N(DrinkItem) = SCRIPT({
|
||||
sleep 45;
|
||||
});
|
||||
|
||||
Script N(main) = SCRIPT({
|
||||
EvtSource N(main) = SCRIPT({
|
||||
SI_VAR(10) = (const) ITEM_DIZZY_DIAL;
|
||||
await N(UseItemWithEffect);
|
||||
UseBattleCamPreset(2);
|
||||
|
@ -7,11 +7,11 @@
|
||||
#undef NAMESPACE
|
||||
#define NAMESPACE battle_item_dizzy_dial
|
||||
|
||||
ApiStatus func_8024ECF8(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_80252B3C(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A1270_727B80)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_8024ECF8(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_80252B3C(Evt* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A1270_727B80)(Evt* script, s32 isInitialCall);
|
||||
|
||||
Script N(UseItemWithEffect);
|
||||
Script N(PlayerGoHome);
|
||||
EvtSource N(UseItemWithEffect);
|
||||
EvtSource N(PlayerGoHome);
|
||||
|
||||
#endif
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
static HudElement* D_802A1A90;
|
||||
|
||||
ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefund)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -42,7 +42,7 @@ ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefundCleanup)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -54,7 +54,7 @@ ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(func_802A123C_71CF1C)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A123C_71CF1C)(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 a = get_variable(script, *args++);
|
||||
s32 b = get_variable(script, *args++);
|
||||
@ -66,7 +66,7 @@ ApiStatus N(func_802A123C_71CF1C)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(func_802A12FC_71CFDC)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A12FC_71CFDC)(Evt* script, s32 isInitialCall) {
|
||||
PlayerData* playerData = &gPlayerData;
|
||||
|
||||
playerData->curHP++;
|
||||
@ -76,7 +76,7 @@ ApiStatus N(func_802A12FC_71CFDC)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
Script N(UseItemWithEffect) = SCRIPT({
|
||||
EvtSource N(UseItemWithEffect) = SCRIPT({
|
||||
if (SI_VAR(1) == 0) {
|
||||
UseBattleCamPreset(69);
|
||||
sleep 10;
|
||||
@ -123,7 +123,7 @@ Script N(UseItemWithEffect) = SCRIPT({
|
||||
}
|
||||
});
|
||||
|
||||
Script N(UseItem) = SCRIPT({
|
||||
EvtSource N(UseItem) = SCRIPT({
|
||||
UseBattleCamPreset(19);
|
||||
SetBattleCamTarget(-85, 1, 0);
|
||||
SetBattleCamOffsetZ(41);
|
||||
@ -146,7 +146,7 @@ Script N(UseItem) = SCRIPT({
|
||||
RemoveItemEntity(SI_VAR(14));
|
||||
});
|
||||
|
||||
Script N(PlayerGoHome) = SCRIPT({
|
||||
EvtSource N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 0);
|
||||
SetGoalToHome(ACTOR_PLAYER);
|
||||
SetActorSpeed(ACTOR_PLAYER, 8.0);
|
||||
@ -157,7 +157,7 @@ Script N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 1);
|
||||
});
|
||||
|
||||
Script N(EatItem) = SCRIPT({
|
||||
EvtSource N(EatItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -168,7 +168,7 @@ Script N(EatItem) = SCRIPT({
|
||||
sleep 45;
|
||||
});
|
||||
|
||||
Script N(DrinkItem) = SCRIPT({
|
||||
EvtSource N(DrinkItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -179,7 +179,7 @@ Script N(DrinkItem) = SCRIPT({
|
||||
sleep 45;
|
||||
});
|
||||
|
||||
Script N(main) = SCRIPT({
|
||||
EvtSource N(main) = SCRIPT({
|
||||
SI_VAR(10) = (const) ITEM_DRIED_SHROOM;
|
||||
await N(UseItemWithEffect);
|
||||
await N(EatItem);
|
||||
|
@ -7,13 +7,13 @@
|
||||
#undef NAMESPACE
|
||||
#define NAMESPACE battle_item_dried_shroom
|
||||
|
||||
ApiStatus func_802D7520(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802D75D8(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A123C_71CF1C)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A12FC_71CFDC)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802D7520(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_802D75D8(Evt* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A123C_71CF1C)(Evt* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A12FC_71CFDC)(Evt* script, s32 isInitialCall);
|
||||
|
||||
Script N(UseItemWithEffect);
|
||||
Script N(PlayerGoHome);
|
||||
Script N(EatItem);
|
||||
EvtSource N(UseItemWithEffect);
|
||||
EvtSource N(PlayerGoHome);
|
||||
EvtSource N(EatItem);
|
||||
|
||||
#endif
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
static HudElement* D_802A1E80;
|
||||
|
||||
ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefund)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -43,7 +43,7 @@ ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefundCleanup)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -55,7 +55,7 @@ ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
Script N(UseItemWithEffect) = SCRIPT({
|
||||
EvtSource N(UseItemWithEffect) = SCRIPT({
|
||||
if (SI_VAR(1) == 0) {
|
||||
UseBattleCamPreset(69);
|
||||
sleep 10;
|
||||
@ -102,7 +102,7 @@ Script N(UseItemWithEffect) = SCRIPT({
|
||||
}
|
||||
});
|
||||
|
||||
Script N(UseItem) = SCRIPT({
|
||||
EvtSource N(UseItem) = SCRIPT({
|
||||
UseBattleCamPreset(19);
|
||||
SetBattleCamTarget(-85, 1, 0);
|
||||
SetBattleCamOffsetZ(41);
|
||||
@ -125,7 +125,7 @@ Script N(UseItem) = SCRIPT({
|
||||
RemoveItemEntity(SI_VAR(14));
|
||||
});
|
||||
|
||||
Script N(PlayerGoHome) = SCRIPT({
|
||||
EvtSource N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 0);
|
||||
SetGoalToHome(ACTOR_PLAYER);
|
||||
SetActorSpeed(ACTOR_PLAYER, 8.0);
|
||||
@ -136,7 +136,7 @@ Script N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 1);
|
||||
});
|
||||
|
||||
Script N(EatItem) = SCRIPT({
|
||||
EvtSource N(EatItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -147,7 +147,7 @@ Script N(EatItem) = SCRIPT({
|
||||
sleep 45;
|
||||
});
|
||||
|
||||
Script N(DrinkItem) = SCRIPT({
|
||||
EvtSource N(DrinkItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -196,7 +196,7 @@ s32 N(modelCommandList)[] = {
|
||||
0x00000004, 0x0000000D, 0x00000001, sizeof(N(displayList)) / sizeof(s32), &N(displayList), 0x00000002, 0x00000000,
|
||||
};
|
||||
|
||||
Script N(main) = SCRIPT({
|
||||
EvtSource N(main) = SCRIPT({
|
||||
SI_VAR(10) = (const) 0x86;
|
||||
await N(UseItemWithEffect);
|
||||
UseBattleCamPreset(3);
|
||||
|
@ -7,7 +7,7 @@
|
||||
#undef NAMESPACE
|
||||
#define NAMESPACE battle_item_dusty_hammer
|
||||
|
||||
Script N(UseItemWithEffect);
|
||||
Script N(PlayerGoHome);
|
||||
EvtSource N(UseItemWithEffect);
|
||||
EvtSource N(PlayerGoHome);
|
||||
|
||||
#endif
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
static HudElement* D_802A2890;
|
||||
|
||||
ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefund)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -47,7 +47,7 @@ ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefundCleanup)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -59,7 +59,7 @@ ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(func_802A123C_71CF1C)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A123C_71CF1C)(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 a = get_variable(script, *args++);
|
||||
s32 b = get_variable(script, *args++);
|
||||
@ -71,7 +71,7 @@ ApiStatus N(func_802A123C_71CF1C)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
Script N(UseItemWithEffect) = SCRIPT({
|
||||
EvtSource N(UseItemWithEffect) = SCRIPT({
|
||||
if (SI_VAR(1) == 0) {
|
||||
UseBattleCamPreset(69);
|
||||
sleep 10;
|
||||
@ -118,7 +118,7 @@ Script N(UseItemWithEffect) = SCRIPT({
|
||||
}
|
||||
});
|
||||
|
||||
Script N(UseItem) = SCRIPT({
|
||||
EvtSource N(UseItem) = SCRIPT({
|
||||
UseBattleCamPreset(19);
|
||||
SetBattleCamTarget(-85, 1, 0);
|
||||
SetBattleCamOffsetZ(41);
|
||||
@ -141,7 +141,7 @@ Script N(UseItem) = SCRIPT({
|
||||
RemoveItemEntity(SI_VAR(14));
|
||||
});
|
||||
|
||||
Script N(PlayerGoHome) = SCRIPT({
|
||||
EvtSource N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 0);
|
||||
SetGoalToHome(ACTOR_PLAYER);
|
||||
SetActorSpeed(ACTOR_PLAYER, 8.0);
|
||||
@ -152,7 +152,7 @@ Script N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 1);
|
||||
});
|
||||
|
||||
Script N(EatItem) = SCRIPT({
|
||||
EvtSource N(EatItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -163,7 +163,7 @@ Script N(EatItem) = SCRIPT({
|
||||
sleep 45;
|
||||
});
|
||||
|
||||
Script N(DrinkItem) = SCRIPT({
|
||||
EvtSource N(DrinkItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -291,7 +291,7 @@ s32 N(modelCommandList)[] = {
|
||||
0x00000002, 0x00000000,
|
||||
};
|
||||
|
||||
Script N(main) = SCRIPT({
|
||||
EvtSource N(main) = SCRIPT({
|
||||
SI_VAR(10) = (const) ITEM_EGG_MISSILE;
|
||||
await N(UseItemWithEffect);
|
||||
UseBattleCamPreset(3);
|
||||
|
@ -7,9 +7,9 @@
|
||||
#undef NAMESPACE
|
||||
#define NAMESPACE battle_item_egg_missile
|
||||
|
||||
Script N(UseItemWithEffect);
|
||||
Script N(PlayerGoHome);
|
||||
EvtSource N(UseItemWithEffect);
|
||||
EvtSource N(PlayerGoHome);
|
||||
|
||||
ApiStatus N(func_802A123C_71CF1C)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A123C_71CF1C)(Evt* script, s32 isInitialCall);
|
||||
|
||||
#endif
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
static HudElement* D_802A1D60;
|
||||
|
||||
ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefund)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -42,7 +42,7 @@ ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefundCleanup)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -54,7 +54,7 @@ ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(func_802A123C_7307DC)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A123C_7307DC)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
|
||||
@ -63,7 +63,7 @@ ApiStatus N(func_802A123C_7307DC)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(func_802A127C_73081C)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A127C_73081C)(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 a = get_variable(script, *args++);
|
||||
s32 b = get_variable(script, *args++);
|
||||
@ -75,7 +75,7 @@ ApiStatus N(func_802A127C_73081C)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(func_802A133C_7308DC)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A133C_7308DC)(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 a = get_variable(script, *args++);
|
||||
s32 b = get_variable(script, *args++);
|
||||
@ -89,7 +89,7 @@ ApiStatus N(func_802A133C_7308DC)(ScriptInstance* script, s32 isInitialCall) {
|
||||
|
||||
#include "common/AddHP.inc.c"
|
||||
|
||||
ApiStatus N(func_802A1450_7309F0)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A1450_7309F0)(Evt* script, s32 isInitialCall) {
|
||||
StaticItem* item = &gItemTable[ITEM_ELECTRO_POP];
|
||||
PlayerData* playerData = &gPlayerData;
|
||||
|
||||
@ -103,7 +103,7 @@ ApiStatus N(func_802A1450_7309F0)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(AddFP)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(AddFP)(Evt* script, s32 isInitialCall) {
|
||||
PlayerData* playerData = &gPlayerData;
|
||||
s32 amt = get_variable(script, *script->ptrReadPos);
|
||||
|
||||
@ -119,7 +119,7 @@ ApiStatus N(AddFP)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(func_802A14F0_730A90)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A14F0_730A90)(Evt* script, s32 isInitialCall) {
|
||||
StaticItem* item = &gItemTable[ITEM_ELECTRO_POP];
|
||||
PlayerData* playerData = &gPlayerData;
|
||||
|
||||
@ -133,7 +133,7 @@ ApiStatus N(func_802A14F0_730A90)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
Script N(UseItemWithEffect) = SCRIPT({
|
||||
EvtSource N(UseItemWithEffect) = SCRIPT({
|
||||
if (SI_VAR(1) == 0) {
|
||||
UseBattleCamPreset(69);
|
||||
sleep 10;
|
||||
@ -180,7 +180,7 @@ Script N(UseItemWithEffect) = SCRIPT({
|
||||
}
|
||||
});
|
||||
|
||||
Script N(UseItem) = SCRIPT({
|
||||
EvtSource N(UseItem) = SCRIPT({
|
||||
UseBattleCamPreset(19);
|
||||
SetBattleCamTarget(-85, 1, 0);
|
||||
SetBattleCamOffsetZ(41);
|
||||
@ -203,7 +203,7 @@ Script N(UseItem) = SCRIPT({
|
||||
RemoveItemEntity(SI_VAR(14));
|
||||
});
|
||||
|
||||
Script N(PlayerGoHome) = SCRIPT({
|
||||
EvtSource N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 0);
|
||||
SetGoalToHome(ACTOR_PLAYER);
|
||||
SetActorSpeed(ACTOR_PLAYER, 8.0);
|
||||
@ -214,7 +214,7 @@ Script N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 1);
|
||||
});
|
||||
|
||||
Script N(EatItem) = SCRIPT({
|
||||
EvtSource N(EatItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -225,7 +225,7 @@ Script N(EatItem) = SCRIPT({
|
||||
sleep 45;
|
||||
});
|
||||
|
||||
Script N(DrinkItem) = SCRIPT({
|
||||
EvtSource N(DrinkItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -236,7 +236,7 @@ Script N(DrinkItem) = SCRIPT({
|
||||
sleep 45;
|
||||
});
|
||||
|
||||
Script N(main) = SCRIPT({
|
||||
EvtSource N(main) = SCRIPT({
|
||||
SI_VAR(10) = (const) ITEM_ELECTRO_POP;
|
||||
await N(UseItemWithEffect);
|
||||
await N(EatItem);
|
||||
|
@ -7,16 +7,16 @@
|
||||
#undef NAMESPACE
|
||||
#define NAMESPACE battle_item_electro_pop
|
||||
|
||||
ApiStatus func_802D7520(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802D75D8(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802D7520(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_802D75D8(Evt* script, s32 isInitialCall);
|
||||
|
||||
ApiStatus N(func_802A123C_7307DC)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A14F0_730A90)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A133C_7308DC)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(AddFP)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A123C_7307DC)(Evt* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A14F0_730A90)(Evt* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A133C_7308DC)(Evt* script, s32 isInitialCall);
|
||||
ApiStatus N(AddFP)(Evt* script, s32 isInitialCall);
|
||||
|
||||
Script N(UseItemWithEffect);
|
||||
Script N(PlayerGoHome);
|
||||
Script N(EatItem);
|
||||
EvtSource N(UseItemWithEffect);
|
||||
EvtSource N(PlayerGoHome);
|
||||
EvtSource N(EatItem);
|
||||
|
||||
#endif
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
static HudElement* D_802A1D70;
|
||||
|
||||
ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefund)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -42,7 +42,7 @@ ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefundCleanup)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -54,7 +54,7 @@ ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(func_802A123C_716E9C)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A123C_716E9C)(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 a = get_variable(script, *args++);
|
||||
s32 b = get_variable(script, *args++);
|
||||
@ -67,7 +67,7 @@ ApiStatus N(func_802A123C_716E9C)(ScriptInstance* script, s32 isInitialCall) {
|
||||
|
||||
#include "common/FadeBackgroundToBlack.inc.c"
|
||||
|
||||
ApiStatus N(func_802A1378_716FD8)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A1378_716FD8)(Evt* script, s32 isInitialCall) {
|
||||
if (isInitialCall) {
|
||||
script->functionTemp[0] = 20;
|
||||
}
|
||||
@ -83,7 +83,7 @@ ApiStatus N(func_802A1378_716FD8)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_BLOCK;
|
||||
}
|
||||
|
||||
Script N(UseItemWithEffect) = SCRIPT({
|
||||
EvtSource N(UseItemWithEffect) = SCRIPT({
|
||||
if (SI_VAR(1) == 0) {
|
||||
UseBattleCamPreset(69);
|
||||
sleep 10;
|
||||
@ -130,7 +130,7 @@ Script N(UseItemWithEffect) = SCRIPT({
|
||||
}
|
||||
});
|
||||
|
||||
Script N(UseItem) = SCRIPT({
|
||||
EvtSource N(UseItem) = SCRIPT({
|
||||
UseBattleCamPreset(19);
|
||||
SetBattleCamTarget(-85, 1, 0);
|
||||
SetBattleCamOffsetZ(41);
|
||||
@ -153,7 +153,7 @@ Script N(UseItem) = SCRIPT({
|
||||
RemoveItemEntity(SI_VAR(14));
|
||||
});
|
||||
|
||||
Script N(PlayerGoHome) = SCRIPT({
|
||||
EvtSource N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 0);
|
||||
SetGoalToHome(ACTOR_PLAYER);
|
||||
SetActorSpeed(ACTOR_PLAYER, 8.0);
|
||||
@ -164,7 +164,7 @@ Script N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 1);
|
||||
});
|
||||
|
||||
Script N(EatItem) = SCRIPT({
|
||||
EvtSource N(EatItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -175,7 +175,7 @@ Script N(EatItem) = SCRIPT({
|
||||
sleep 45;
|
||||
});
|
||||
|
||||
Script N(DrinkItem) = SCRIPT({
|
||||
EvtSource N(DrinkItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -186,7 +186,7 @@ Script N(DrinkItem) = SCRIPT({
|
||||
sleep 45;
|
||||
});
|
||||
|
||||
Script N(main) = SCRIPT({
|
||||
EvtSource N(main) = SCRIPT({
|
||||
SI_VAR(10) = (const) ITEM_FIRE_FLOWER;
|
||||
await N(UseItemWithEffect);
|
||||
N(FadeBackgroundToBlack)();
|
||||
|
@ -7,11 +7,11 @@
|
||||
#undef NAMESPACE
|
||||
#define NAMESPACE battle_item_fire_flower
|
||||
|
||||
ApiStatus N(FadeBackgroundToBlack)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A123C_716E9C)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A1378_716FD8)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(FadeBackgroundToBlack)(Evt* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A123C_716E9C)(Evt* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A1378_716FD8)(Evt* script, s32 isInitialCall);
|
||||
|
||||
Script N(UseItemWithEffect);
|
||||
Script N(PlayerGoHome);
|
||||
EvtSource N(UseItemWithEffect);
|
||||
EvtSource N(PlayerGoHome);
|
||||
|
||||
#endif
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
static HudElement* D_802A24D0;
|
||||
|
||||
ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefund)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -42,7 +42,7 @@ ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefundCleanup)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -54,7 +54,7 @@ ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(func_802A123C_73330C)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A123C_73330C)(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 a = get_variable(script, *args++);
|
||||
s32 b = get_variable(script, *args++);
|
||||
@ -68,7 +68,7 @@ ApiStatus N(func_802A123C_73330C)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(func_802A12EC_7333BC)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A12EC_7333BC)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* partner = battleStatus->partnerActor;
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
@ -92,7 +92,7 @@ ApiStatus N(func_802A12EC_7333BC)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(func_802A1378_733448)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A1378_733448)(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 a = get_variable(script, *args++);
|
||||
s32 b = get_variable(script, *args++);
|
||||
@ -104,7 +104,7 @@ ApiStatus N(func_802A1378_733448)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(func_802A1438_733508)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A1438_733508)(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 a = get_variable(script, *args++);
|
||||
s32 b = get_variable(script, *args++);
|
||||
@ -120,7 +120,7 @@ ApiStatus N(func_802A1438_733508)(ScriptInstance* script, s32 isInitialCall) {
|
||||
|
||||
#include "common/AddFP.inc.c"
|
||||
|
||||
ApiStatus N(func_802A15A0_733670)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A15A0_733670)(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 itemIdx = get_variable(script, *args++);
|
||||
StaticItem* item = &gItemTable[itemIdx];
|
||||
@ -144,7 +144,7 @@ ApiStatus N(func_802A15A0_733670)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
Script N(UseItemWithEffect) = SCRIPT({
|
||||
EvtSource N(UseItemWithEffect) = SCRIPT({
|
||||
if (SI_VAR(1) == 0) {
|
||||
UseBattleCamPreset(69);
|
||||
sleep 10;
|
||||
@ -191,7 +191,7 @@ Script N(UseItemWithEffect) = SCRIPT({
|
||||
}
|
||||
});
|
||||
|
||||
Script N(UseItem) = SCRIPT({
|
||||
EvtSource N(UseItem) = SCRIPT({
|
||||
UseBattleCamPreset(19);
|
||||
SetBattleCamTarget(-85, 1, 0);
|
||||
SetBattleCamOffsetZ(41);
|
||||
@ -214,7 +214,7 @@ Script N(UseItem) = SCRIPT({
|
||||
RemoveItemEntity(SI_VAR(14));
|
||||
});
|
||||
|
||||
Script N(PlayerGoHome) = SCRIPT({
|
||||
EvtSource N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 0);
|
||||
SetGoalToHome(ACTOR_PLAYER);
|
||||
SetActorSpeed(ACTOR_PLAYER, 8.0);
|
||||
@ -225,7 +225,7 @@ Script N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 1);
|
||||
});
|
||||
|
||||
Script N(EatItem) = SCRIPT({
|
||||
EvtSource N(EatItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -236,7 +236,7 @@ Script N(EatItem) = SCRIPT({
|
||||
sleep 45;
|
||||
});
|
||||
|
||||
Script N(DrinkItem) = SCRIPT({
|
||||
EvtSource N(DrinkItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -247,7 +247,7 @@ Script N(DrinkItem) = SCRIPT({
|
||||
sleep 45;
|
||||
});
|
||||
|
||||
Script N(script6) = SCRIPT({
|
||||
EvtSource N(script6) = SCRIPT({
|
||||
SetActorYaw(ACTOR_PLAYER, 30);
|
||||
sleep 1;
|
||||
SetActorYaw(ACTOR_PLAYER, 60);
|
||||
@ -323,7 +323,7 @@ Script N(script6) = SCRIPT({
|
||||
sleep 10;
|
||||
});
|
||||
|
||||
Script N(main) = SCRIPT({
|
||||
EvtSource N(main) = SCRIPT({
|
||||
SI_VAR(14) = SI_VAR(1);
|
||||
GetMenuSelection(SI_VAR(0), SI_VAR(1), SI_VAR(2));
|
||||
SI_VAR(10) = SI_VAR(1);
|
||||
|
@ -7,23 +7,23 @@
|
||||
#undef NAMESPACE
|
||||
#define NAMESPACE battle_item_food
|
||||
|
||||
ApiStatus SetVirtualEntityFlags(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetVirtualEntityPosition(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802D7520(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802D75D8(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetVirtualEntityFlags(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetVirtualEntityPosition(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_802D7520(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_802D75D8(Evt* script, s32 isInitialCall);
|
||||
|
||||
ApiStatus N(func_802A123C_73330C)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A12EC_7333BC)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A15A0_733670)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A1378_733448)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A1438_733508)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(AddHP)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(AddFP)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A123C_73330C)(Evt* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A12EC_7333BC)(Evt* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A15A0_733670)(Evt* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A1378_733448)(Evt* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A1438_733508)(Evt* script, s32 isInitialCall);
|
||||
ApiStatus N(AddHP)(Evt* script, s32 isInitialCall);
|
||||
ApiStatus N(AddFP)(Evt* script, s32 isInitialCall);
|
||||
|
||||
Script N(UseItemWithEffect);
|
||||
Script N(PlayerGoHome);
|
||||
Script N(UseItem);
|
||||
Script N(EatItem);
|
||||
Script N(DrinkItem);
|
||||
EvtSource N(UseItemWithEffect);
|
||||
EvtSource N(PlayerGoHome);
|
||||
EvtSource N(UseItem);
|
||||
EvtSource N(EatItem);
|
||||
EvtSource N(DrinkItem);
|
||||
|
||||
#endif
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
static HudElement* D_802A1CA0;
|
||||
|
||||
ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefund)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -41,7 +41,7 @@ ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefundCleanup)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -55,7 +55,7 @@ ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
|
||||
#include "common/FadeBackgroundToBlack.inc.c"
|
||||
|
||||
ApiStatus N(func_802A12D4_72BBE4)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A12D4_72BBE4)(Evt* script, s32 isInitialCall) {
|
||||
if (isInitialCall) {
|
||||
script->functionTemp[0] = 20;
|
||||
}
|
||||
@ -71,7 +71,7 @@ ApiStatus N(func_802A12D4_72BBE4)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_BLOCK;
|
||||
}
|
||||
|
||||
Script N(UseItemWithEffect) = SCRIPT({
|
||||
EvtSource N(UseItemWithEffect) = SCRIPT({
|
||||
if (SI_VAR(1) == 0) {
|
||||
UseBattleCamPreset(69);
|
||||
sleep 10;
|
||||
@ -118,7 +118,7 @@ Script N(UseItemWithEffect) = SCRIPT({
|
||||
}
|
||||
});
|
||||
|
||||
Script N(UseItem) = SCRIPT({
|
||||
EvtSource N(UseItem) = SCRIPT({
|
||||
UseBattleCamPreset(19);
|
||||
SetBattleCamTarget(-85, 1, 0);
|
||||
SetBattleCamOffsetZ(41);
|
||||
@ -141,7 +141,7 @@ Script N(UseItem) = SCRIPT({
|
||||
RemoveItemEntity(SI_VAR(14));
|
||||
});
|
||||
|
||||
Script N(PlayerGoHome) = SCRIPT({
|
||||
EvtSource N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 0);
|
||||
SetGoalToHome(ACTOR_PLAYER);
|
||||
SetActorSpeed(ACTOR_PLAYER, 8.0);
|
||||
@ -152,7 +152,7 @@ Script N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 1);
|
||||
});
|
||||
|
||||
Script N(EatItem) = SCRIPT({
|
||||
EvtSource N(EatItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -163,7 +163,7 @@ Script N(EatItem) = SCRIPT({
|
||||
sleep 45;
|
||||
});
|
||||
|
||||
Script N(DrinkItem) = SCRIPT({
|
||||
EvtSource N(DrinkItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -174,7 +174,7 @@ Script N(DrinkItem) = SCRIPT({
|
||||
sleep 45;
|
||||
});
|
||||
|
||||
Script N(main) = SCRIPT({
|
||||
EvtSource N(main) = SCRIPT({
|
||||
SI_VAR(10) = (const) ITEM_FRIGHT_JAR;
|
||||
await N(UseItemWithEffect);
|
||||
N(FadeBackgroundToBlack)();
|
||||
|
@ -7,11 +7,11 @@
|
||||
#undef NAMESPACE
|
||||
#define NAMESPACE battle_item_fright_jar
|
||||
|
||||
ApiStatus func_80269EAC(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(FadeBackgroundToBlack)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A12D4_72BBE4)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_80269EAC(Evt* script, s32 isInitialCall);
|
||||
ApiStatus N(FadeBackgroundToBlack)(Evt* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A12D4_72BBE4)(Evt* script, s32 isInitialCall);
|
||||
|
||||
Script N(UseItemWithEffect);
|
||||
Script N(PlayerGoHome);
|
||||
EvtSource N(UseItemWithEffect);
|
||||
EvtSource N(PlayerGoHome);
|
||||
|
||||
#endif
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
static HudElement* D_802A1E70;
|
||||
|
||||
ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefund)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -41,7 +41,7 @@ ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefundCleanup)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -53,7 +53,7 @@ ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(func_802A123C_72619C)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A123C_72619C)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
|
||||
@ -79,13 +79,13 @@ ApiStatus N(func_802A123C_72619C)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(func_802A12C4_726224)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A12C4_726224)(Evt* script, s32 isInitialCall) {
|
||||
gBattleStatus.hustleTurns = 2;
|
||||
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
Script N(UseItemWithEffect) = SCRIPT({
|
||||
EvtSource N(UseItemWithEffect) = SCRIPT({
|
||||
if (SI_VAR(1) == 0) {
|
||||
UseBattleCamPreset(69);
|
||||
sleep 10;
|
||||
@ -132,7 +132,7 @@ Script N(UseItemWithEffect) = SCRIPT({
|
||||
}
|
||||
});
|
||||
|
||||
Script N(UseItem) = SCRIPT({
|
||||
EvtSource N(UseItem) = SCRIPT({
|
||||
UseBattleCamPreset(19);
|
||||
SetBattleCamTarget(-85, 1, 0);
|
||||
SetBattleCamOffsetZ(41);
|
||||
@ -155,7 +155,7 @@ Script N(UseItem) = SCRIPT({
|
||||
RemoveItemEntity(SI_VAR(14));
|
||||
});
|
||||
|
||||
Script N(PlayerGoHome) = SCRIPT({
|
||||
EvtSource N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 0);
|
||||
SetGoalToHome(ACTOR_PLAYER);
|
||||
SetActorSpeed(ACTOR_PLAYER, 8.0);
|
||||
@ -166,7 +166,7 @@ Script N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 1);
|
||||
});
|
||||
|
||||
Script N(EatItem) = SCRIPT({
|
||||
EvtSource N(EatItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -177,7 +177,7 @@ Script N(EatItem) = SCRIPT({
|
||||
sleep 45;
|
||||
});
|
||||
|
||||
Script N(DrinkItem) = SCRIPT({
|
||||
EvtSource N(DrinkItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -188,7 +188,7 @@ Script N(DrinkItem) = SCRIPT({
|
||||
sleep 45;
|
||||
});
|
||||
|
||||
Script N(main) = SCRIPT({
|
||||
EvtSource N(main) = SCRIPT({
|
||||
SI_VAR(10) = (const) ITEM_HUSTLE_DRINK;
|
||||
await N(UseItemWithEffect);
|
||||
await N(DrinkItem);
|
||||
|
@ -7,12 +7,12 @@
|
||||
#undef NAMESPACE
|
||||
#define NAMESPACE battle_item_hustle_drink
|
||||
|
||||
ApiStatus func_802D7520(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A12C4_726224)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A123C_72619C)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802D7520(Evt* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A12C4_726224)(Evt* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A123C_72619C)(Evt* script, s32 isInitialCall);
|
||||
|
||||
Script N(UseItemWithEffect);
|
||||
Script N(PlayerGoHome);
|
||||
Script N(DrinkItem);
|
||||
EvtSource N(UseItemWithEffect);
|
||||
EvtSource N(PlayerGoHome);
|
||||
EvtSource N(DrinkItem);
|
||||
|
||||
#endif
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
static HudElement* D_802A21C0;
|
||||
|
||||
ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefund)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -44,7 +44,7 @@ ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefundCleanup)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -56,7 +56,7 @@ ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(func_802A123C_72A98C)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A123C_72A98C)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* enemy = get_actor(script->owner1.enemyID);
|
||||
Actor* target = get_actor(enemy->targetActorID);
|
||||
@ -66,7 +66,7 @@ ApiStatus N(func_802A123C_72A98C)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(func_802A1280_72A9D0)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A1280_72A9D0)(Evt* script, s32 isInitialCall) {
|
||||
Actor* enemy = get_actor(script->owner1.enemyID);
|
||||
Actor* target;
|
||||
|
||||
@ -82,7 +82,7 @@ typedef struct N(temp) {
|
||||
EffectInstanceDataThing* unk_0C;
|
||||
} N(temp);
|
||||
|
||||
ApiStatus N(func_802A12E0_72AA30)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A12E0_72AA30)(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
f32 a = get_variable(script, *args++);
|
||||
f32 b = get_variable(script, *args++);
|
||||
@ -104,7 +104,7 @@ ApiStatus N(func_802A12E0_72AA30)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
Script N(UseItemWithEffect) = SCRIPT({
|
||||
EvtSource N(UseItemWithEffect) = SCRIPT({
|
||||
if (SI_VAR(1) == 0) {
|
||||
UseBattleCamPreset(69);
|
||||
sleep 10;
|
||||
@ -151,7 +151,7 @@ Script N(UseItemWithEffect) = SCRIPT({
|
||||
}
|
||||
});
|
||||
|
||||
Script N(UseItem) = SCRIPT({
|
||||
EvtSource N(UseItem) = SCRIPT({
|
||||
UseBattleCamPreset(19);
|
||||
SetBattleCamTarget(-85, 1, 0);
|
||||
SetBattleCamOffsetZ(41);
|
||||
@ -174,7 +174,7 @@ Script N(UseItem) = SCRIPT({
|
||||
RemoveItemEntity(SI_VAR(14));
|
||||
});
|
||||
|
||||
Script N(PlayerGoHome) = SCRIPT({
|
||||
EvtSource N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 0);
|
||||
SetGoalToHome(ACTOR_PLAYER);
|
||||
SetActorSpeed(ACTOR_PLAYER, 8.0);
|
||||
@ -185,7 +185,7 @@ Script N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 1);
|
||||
});
|
||||
|
||||
Script N(EatItem) = SCRIPT({
|
||||
EvtSource N(EatItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -196,7 +196,7 @@ Script N(EatItem) = SCRIPT({
|
||||
sleep 45;
|
||||
});
|
||||
|
||||
Script N(DrinkItem) = SCRIPT({
|
||||
EvtSource N(DrinkItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -245,7 +245,7 @@ s32 N(modelCommandList)[] = {
|
||||
0x00000004, 0x0000000D, 0x00000001, sizeof(N(displayList)) / sizeof(s32), &N(displayList), 0x00000002, 0x00000000,
|
||||
};
|
||||
|
||||
Script script = SCRIPT({
|
||||
EvtSource script = SCRIPT({
|
||||
SI_VAR(10) = (const) ITEM_INSECTICIDE_HERB;
|
||||
await N(UseItemWithEffect);
|
||||
UseBattleCamPreset(3);
|
||||
|
@ -7,10 +7,10 @@
|
||||
#undef NAMESPACE
|
||||
#define NAMESPACE battle_item_insecticide_herb
|
||||
|
||||
Script N(UseItemWithEffect);
|
||||
Script N(PlayerGoHome);
|
||||
ApiStatus N(func_802A12E0_72AA30)(ScriptInstance *script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A123C_72A98C)(ScriptInstance *script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A1280_72A9D0)(ScriptInstance *script, s32 isInitialCall);
|
||||
EvtSource N(UseItemWithEffect);
|
||||
EvtSource N(PlayerGoHome);
|
||||
ApiStatus N(func_802A12E0_72AA30)(Evt *script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A123C_72A98C)(Evt *script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A1280_72A9D0)(Evt *script, s32 isInitialCall);
|
||||
|
||||
#endif
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
static HudElement* D_802A21F0;
|
||||
|
||||
ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefund)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -42,7 +42,7 @@ ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefundCleanup)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -54,7 +54,7 @@ ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(func_802A123C_72E76C)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A123C_72E76C)(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 a = get_variable(script, *args++);
|
||||
s32 b = get_variable(script, *args++);
|
||||
@ -68,7 +68,7 @@ ApiStatus N(func_802A123C_72E76C)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(func_802A12EC_72E81C)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A12EC_72E81C)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* partner = battleStatus->partnerActor;
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
@ -92,7 +92,7 @@ ApiStatus N(func_802A12EC_72E81C)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(func_802A1378_72E8A8)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A1378_72E8A8)(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 a = get_variable(script, *args++);
|
||||
s32 b = get_variable(script, *args++);
|
||||
@ -104,7 +104,7 @@ ApiStatus N(func_802A1378_72E8A8)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(func_802A1438_72E968)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A1438_72E968)(Evt* script, s32 isInitialCall) {
|
||||
StaticItem* item = &gItemTable[ITEM_LIFE_SHROOM];
|
||||
PlayerData* playerData = &gPlayerData;
|
||||
|
||||
@ -118,7 +118,7 @@ ApiStatus N(func_802A1438_72E968)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(func_802A1484_72E9B4)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A1484_72E9B4)(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 itemIdx = get_variable(script, *args++);
|
||||
StaticItem* itemTable = gItemTable;
|
||||
@ -133,7 +133,7 @@ ApiStatus N(func_802A1484_72E9B4)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
Script N(UseItemWithEffect) = SCRIPT({
|
||||
EvtSource N(UseItemWithEffect) = SCRIPT({
|
||||
if (SI_VAR(1) == 0) {
|
||||
UseBattleCamPreset(69);
|
||||
sleep 10;
|
||||
@ -180,7 +180,7 @@ Script N(UseItemWithEffect) = SCRIPT({
|
||||
}
|
||||
});
|
||||
|
||||
Script N(UseItem) = SCRIPT({
|
||||
EvtSource N(UseItem) = SCRIPT({
|
||||
UseBattleCamPreset(19);
|
||||
SetBattleCamTarget(-85, 1, 0);
|
||||
SetBattleCamOffsetZ(41);
|
||||
@ -203,7 +203,7 @@ Script N(UseItem) = SCRIPT({
|
||||
RemoveItemEntity(SI_VAR(14));
|
||||
});
|
||||
|
||||
Script N(PlayerGoHome) = SCRIPT({
|
||||
EvtSource N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 0);
|
||||
SetGoalToHome(ACTOR_PLAYER);
|
||||
SetActorSpeed(ACTOR_PLAYER, 8.0);
|
||||
@ -214,7 +214,7 @@ Script N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 1);
|
||||
});
|
||||
|
||||
Script N(EatItem) = SCRIPT({
|
||||
EvtSource N(EatItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -225,7 +225,7 @@ Script N(EatItem) = SCRIPT({
|
||||
sleep 45;
|
||||
});
|
||||
|
||||
Script N(DrinkItem) = SCRIPT({
|
||||
EvtSource N(DrinkItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -236,7 +236,7 @@ Script N(DrinkItem) = SCRIPT({
|
||||
sleep 45;
|
||||
});
|
||||
|
||||
Script N(script6) = SCRIPT({
|
||||
EvtSource N(script6) = SCRIPT({
|
||||
SetActorYaw(ACTOR_PLAYER, 30);
|
||||
sleep 1;
|
||||
SetActorYaw(ACTOR_PLAYER, 60);
|
||||
@ -312,7 +312,7 @@ Script N(script6) = SCRIPT({
|
||||
sleep 10;
|
||||
});
|
||||
|
||||
Script N(main) = SCRIPT({
|
||||
EvtSource N(main) = SCRIPT({
|
||||
SI_VAR(15) = SI_VAR(1);
|
||||
GetMenuSelection(SI_VAR(0), SI_VAR(1), SI_VAR(2));
|
||||
SI_VAR(10) = SI_VAR(1);
|
||||
|
@ -7,20 +7,20 @@
|
||||
#undef NAMESPACE
|
||||
#define NAMESPACE battle_item_life_shroom
|
||||
|
||||
ApiStatus SetVirtualEntityFlags(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetVirtualEntityPosition(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802D7520(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802D75D8(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetVirtualEntityFlags(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetVirtualEntityPosition(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_802D7520(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_802D75D8(Evt* script, s32 isInitialCall);
|
||||
|
||||
ApiStatus N(func_802A123C_72E76C)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A12EC_72E81C)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A1484_72E9B4)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A1438_72E968)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A1378_72E8A8)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A123C_72E76C)(Evt* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A12EC_72E81C)(Evt* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A1484_72E9B4)(Evt* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A1438_72E968)(Evt* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A1378_72E8A8)(Evt* script, s32 isInitialCall);
|
||||
|
||||
Script N(UseItemWithEffect);
|
||||
Script N(PlayerGoHome);
|
||||
Script N(UseItem);
|
||||
Script N(EatItem);
|
||||
EvtSource N(UseItemWithEffect);
|
||||
EvtSource N(PlayerGoHome);
|
||||
EvtSource N(UseItem);
|
||||
EvtSource N(EatItem);
|
||||
|
||||
#endif
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
static HudElement* D_802A2410;
|
||||
|
||||
ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefund)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -42,7 +42,7 @@ ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefundCleanup)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -54,7 +54,7 @@ ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(func_802A123C_715A8C)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A123C_715A8C)(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 a = get_variable(script, *args++);
|
||||
s32 b = get_variable(script, *args++);
|
||||
@ -68,7 +68,7 @@ ApiStatus N(func_802A123C_715A8C)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(func_802A12EC_715B3C)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A12EC_715B3C)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* partner = battleStatus->partnerActor;
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
@ -92,7 +92,7 @@ ApiStatus N(func_802A12EC_715B3C)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(func_802A1378_715BC8)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A1378_715BC8)(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 a = get_variable(script, *args++);
|
||||
s32 b = get_variable(script, *args++);
|
||||
@ -104,7 +104,7 @@ ApiStatus N(func_802A1378_715BC8)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(func_802A1438_715C88)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A1438_715C88)(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 a = get_variable(script, *args++);
|
||||
s32 b = get_variable(script, *args++);
|
||||
@ -120,7 +120,7 @@ ApiStatus N(func_802A1438_715C88)(ScriptInstance* script, s32 isInitialCall) {
|
||||
|
||||
#include "common/AddFP.inc.c"
|
||||
|
||||
ApiStatus N(func_802A15A0_715DF0)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A15A0_715DF0)(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
StaticItem* itemTable = gItemTable;
|
||||
StaticItem* item = &itemTable[get_variable(script, *args++)];
|
||||
@ -132,7 +132,7 @@ ApiStatus N(func_802A15A0_715DF0)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
Script N(UseItemWithEffect) = SCRIPT({
|
||||
EvtSource N(UseItemWithEffect) = SCRIPT({
|
||||
if (SI_VAR(1) == 0) {
|
||||
UseBattleCamPreset(69);
|
||||
sleep 10;
|
||||
@ -179,7 +179,7 @@ Script N(UseItemWithEffect) = SCRIPT({
|
||||
}
|
||||
});
|
||||
|
||||
Script N(UseItem) = SCRIPT({
|
||||
EvtSource N(UseItem) = SCRIPT({
|
||||
UseBattleCamPreset(19);
|
||||
SetBattleCamTarget(-85, 1, 0);
|
||||
SetBattleCamOffsetZ(41);
|
||||
@ -202,7 +202,7 @@ Script N(UseItem) = SCRIPT({
|
||||
RemoveItemEntity(SI_VAR(14));
|
||||
});
|
||||
|
||||
Script N(PlayerGoHome) = SCRIPT({
|
||||
EvtSource N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 0);
|
||||
SetGoalToHome(ACTOR_PLAYER);
|
||||
SetActorSpeed(ACTOR_PLAYER, 8.0);
|
||||
@ -213,7 +213,7 @@ Script N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 1);
|
||||
});
|
||||
|
||||
Script N(EatItem) = SCRIPT({
|
||||
EvtSource N(EatItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -224,7 +224,7 @@ Script N(EatItem) = SCRIPT({
|
||||
sleep 45;
|
||||
});
|
||||
|
||||
Script N(DrinkItem) = SCRIPT({
|
||||
EvtSource N(DrinkItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -235,7 +235,7 @@ Script N(DrinkItem) = SCRIPT({
|
||||
sleep 45;
|
||||
});
|
||||
|
||||
Script N(script6) = SCRIPT({
|
||||
EvtSource N(script6) = SCRIPT({
|
||||
SetActorYaw(ACTOR_PLAYER, 30);
|
||||
sleep 1;
|
||||
SetActorYaw(ACTOR_PLAYER, 60);
|
||||
@ -311,7 +311,7 @@ Script N(script6) = SCRIPT({
|
||||
sleep 10;
|
||||
});
|
||||
|
||||
Script N(main) = SCRIPT({
|
||||
EvtSource N(main) = SCRIPT({
|
||||
SI_VAR(14) = SI_VAR(1);
|
||||
GetMenuSelection(SI_VAR(0), SI_VAR(1), SI_VAR(2));
|
||||
SI_VAR(10) = SI_VAR(1);
|
||||
|
@ -7,22 +7,22 @@
|
||||
#undef NAMESPACE
|
||||
#define NAMESPACE battle_item_mushroom
|
||||
|
||||
ApiStatus SetVirtualEntityFlags(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus GetVirtualEntityPosition(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802D7520(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_802D75D8(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetVirtualEntityFlags(Evt* script, s32 isInitialCall);
|
||||
ApiStatus GetVirtualEntityPosition(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_802D7520(Evt* script, s32 isInitialCall);
|
||||
ApiStatus func_802D75D8(Evt* script, s32 isInitialCall);
|
||||
|
||||
ApiStatus N(func_802A123C_715A8C)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A12EC_715B3C)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A15A0_715DF0)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A1378_715BC8)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A1438_715C88)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(AddHP)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(AddFP)(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A123C_715A8C)(Evt* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A12EC_715B3C)(Evt* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A15A0_715DF0)(Evt* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A1378_715BC8)(Evt* script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A1438_715C88)(Evt* script, s32 isInitialCall);
|
||||
ApiStatus N(AddHP)(Evt* script, s32 isInitialCall);
|
||||
ApiStatus N(AddFP)(Evt* script, s32 isInitialCall);
|
||||
|
||||
Script N(UseItemWithEffect);
|
||||
Script N(PlayerGoHome);
|
||||
Script N(UseItem);
|
||||
Script N(EatItem);
|
||||
EvtSource N(UseItemWithEffect);
|
||||
EvtSource N(PlayerGoHome);
|
||||
EvtSource N(UseItem);
|
||||
EvtSource N(EatItem);
|
||||
|
||||
#endif
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
static HudElement* D_802A25C0;
|
||||
|
||||
ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefund)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -44,7 +44,7 @@ ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefundCleanup)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -91,7 +91,7 @@ void N(func_802A123C_72C7EC)(void) {
|
||||
}
|
||||
}
|
||||
#else
|
||||
INCLUDE_ASM(ApiStatus, "battle/item/mystery", battle_item_mystery_func_802A123C_72C7EC, ScriptInstance* script,
|
||||
INCLUDE_ASM(ApiStatus, "battle/item/mystery", battle_item_mystery_func_802A123C_72C7EC, Evt* script,
|
||||
s32 isInitialCall);
|
||||
#endif
|
||||
|
||||
@ -107,7 +107,7 @@ extern s16** D_802A25FC;
|
||||
extern HudElement** D_802A25C8;
|
||||
extern struct N(tempStc) D_8008A680[100];
|
||||
|
||||
ApiStatus N(func_802A13E4_72C994)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A13E4_72C994)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
|
||||
if (isInitialCall) {
|
||||
@ -259,11 +259,11 @@ ApiStatus N(func_802A13E4_72C994)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_BLOCK;
|
||||
}
|
||||
#else
|
||||
INCLUDE_ASM(ApiStatus, "battle/item/mystery", battle_item_mystery_func_802A13E4_72C994, ScriptInstance* script,
|
||||
INCLUDE_ASM(ApiStatus, "battle/item/mystery", battle_item_mystery_func_802A13E4_72C994, Evt* script,
|
||||
s32 isInitialCall);
|
||||
#endif
|
||||
|
||||
ApiStatus N(func_802A188C_72CE3C)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A188C_72CE3C)(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 a = get_variable(script, *args++);
|
||||
s32 b = get_variable(script, *args++);
|
||||
@ -274,7 +274,7 @@ ApiStatus N(func_802A188C_72CE3C)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
Script N(UseItemWithEffect) = SCRIPT({
|
||||
EvtSource N(UseItemWithEffect) = SCRIPT({
|
||||
if (SI_VAR(1) == 0) {
|
||||
UseBattleCamPreset(69);
|
||||
sleep 10;
|
||||
@ -321,7 +321,7 @@ Script N(UseItemWithEffect) = SCRIPT({
|
||||
}
|
||||
});
|
||||
|
||||
Script N(UseItem) = SCRIPT({
|
||||
EvtSource N(UseItem) = SCRIPT({
|
||||
UseBattleCamPreset(19);
|
||||
SetBattleCamTarget(-85, 1, 0);
|
||||
SetBattleCamOffsetZ(41);
|
||||
@ -344,7 +344,7 @@ Script N(UseItem) = SCRIPT({
|
||||
RemoveItemEntity(SI_VAR(14));
|
||||
});
|
||||
|
||||
Script N(PlayerGoHome) = SCRIPT({
|
||||
EvtSource N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 0);
|
||||
SetGoalToHome(ACTOR_PLAYER);
|
||||
SetActorSpeed(ACTOR_PLAYER, 8.0);
|
||||
@ -355,7 +355,7 @@ Script N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 1);
|
||||
});
|
||||
|
||||
Script N(EatItem) = SCRIPT({
|
||||
EvtSource N(EatItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -366,7 +366,7 @@ Script N(EatItem) = SCRIPT({
|
||||
sleep 45;
|
||||
});
|
||||
|
||||
Script N(DrinkItem) = SCRIPT({
|
||||
EvtSource N(DrinkItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -425,7 +425,7 @@ s32 N(D_802A229C_72D84C)[8] = {
|
||||
0x0000008A, 0x0000008C, 0x00000085, 0x0000008A
|
||||
};
|
||||
|
||||
Script N(main) = SCRIPT({
|
||||
EvtSource N(main) = SCRIPT({
|
||||
SI_VAR(10) = (const) ITEM_MYSTERY;
|
||||
await N(UseItemWithEffect);
|
||||
spawn {
|
||||
|
@ -7,8 +7,8 @@
|
||||
#undef NAMESPACE
|
||||
#define NAMESPACE battle_item_mystery
|
||||
|
||||
ApiStatus N(func_802A13E4_72C994)(ScriptInstance *script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A188C_72CE3C)(ScriptInstance *script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A13E4_72C994)(Evt *script, s32 isInitialCall);
|
||||
ApiStatus N(func_802A188C_72CE3C)(Evt *script, s32 isInitialCall);
|
||||
|
||||
typedef struct N(tempStc) {
|
||||
s32 iconId;
|
||||
@ -17,6 +17,6 @@ typedef struct N(tempStc) {
|
||||
|
||||
extern s32 N(D_802A227C_72D82C)[8];
|
||||
extern s32 N(D_802A229C_72D84C)[8];
|
||||
extern Script N(UseItemWithEffect);
|
||||
extern EvtSource N(UseItemWithEffect);
|
||||
|
||||
#endif
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
static HudElement* D_802A1E80;
|
||||
|
||||
ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefund)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -43,7 +43,7 @@ ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefundCleanup)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -55,7 +55,7 @@ ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
Script N(UseItemWithEffect) = SCRIPT({
|
||||
EvtSource N(UseItemWithEffect) = SCRIPT({
|
||||
if (SI_VAR(1) == 0) {
|
||||
UseBattleCamPreset(69);
|
||||
sleep 10;
|
||||
@ -102,7 +102,7 @@ Script N(UseItemWithEffect) = SCRIPT({
|
||||
}
|
||||
});
|
||||
|
||||
Script N(UseItem) = SCRIPT({
|
||||
EvtSource N(UseItem) = SCRIPT({
|
||||
UseBattleCamPreset(19);
|
||||
SetBattleCamTarget(-85, 1, 0);
|
||||
SetBattleCamOffsetZ(41);
|
||||
@ -125,7 +125,7 @@ Script N(UseItem) = SCRIPT({
|
||||
RemoveItemEntity(SI_VAR(14));
|
||||
});
|
||||
|
||||
Script N(PlayerGoHome) = SCRIPT({
|
||||
EvtSource N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 0);
|
||||
SetGoalToHome(ACTOR_PLAYER);
|
||||
SetActorSpeed(ACTOR_PLAYER, 8.0);
|
||||
@ -136,7 +136,7 @@ Script N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 1);
|
||||
});
|
||||
|
||||
Script N(EatItem) = SCRIPT({
|
||||
EvtSource N(EatItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -147,7 +147,7 @@ Script N(EatItem) = SCRIPT({
|
||||
sleep 45;
|
||||
});
|
||||
|
||||
Script N(DrinkItem) = SCRIPT({
|
||||
EvtSource N(DrinkItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -196,7 +196,7 @@ s32 N(modelCommandList)[] = {
|
||||
0x00000004, 0x0000000D, 0x00000001, sizeof(N(displayList)) / sizeof(s32), &N(displayList), 0x00000002, 0x00000000,
|
||||
};
|
||||
|
||||
Script N(main) = SCRIPT({
|
||||
EvtSource N(main) = SCRIPT({
|
||||
SI_VAR(10) = (const) ITEM_PEBBLE;
|
||||
await N(UseItemWithEffect);
|
||||
UseBattleCamPreset(3);
|
||||
|
@ -7,7 +7,7 @@
|
||||
#undef NAMESPACE
|
||||
#define NAMESPACE battle_item_pebble
|
||||
|
||||
Script N(UseItemWithEffect);
|
||||
Script N(PlayerGoHome);
|
||||
EvtSource N(UseItemWithEffect);
|
||||
EvtSource N(PlayerGoHome);
|
||||
|
||||
#endif
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
static HudElement* D_802A18E0;
|
||||
|
||||
ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefund)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -41,7 +41,7 @@ ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefundCleanup)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -53,7 +53,7 @@ ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
Script N(UseItemWithEffect) = SCRIPT({
|
||||
EvtSource N(UseItemWithEffect) = SCRIPT({
|
||||
if (SI_VAR(1) == 0) {
|
||||
UseBattleCamPreset(69);
|
||||
sleep 10;
|
||||
@ -100,7 +100,7 @@ Script N(UseItemWithEffect) = SCRIPT({
|
||||
}
|
||||
});
|
||||
|
||||
Script N(UseItem) = SCRIPT({
|
||||
EvtSource N(UseItem) = SCRIPT({
|
||||
UseBattleCamPreset(19);
|
||||
SetBattleCamTarget(-85, 1, 0);
|
||||
SetBattleCamOffsetZ(41);
|
||||
@ -123,7 +123,7 @@ Script N(UseItem) = SCRIPT({
|
||||
RemoveItemEntity(SI_VAR(14));
|
||||
});
|
||||
|
||||
Script N(PlayerGoHome) = SCRIPT({
|
||||
EvtSource N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 0);
|
||||
SetGoalToHome(ACTOR_PLAYER);
|
||||
SetActorSpeed(ACTOR_PLAYER, 8.0);
|
||||
@ -134,7 +134,7 @@ Script N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 1);
|
||||
});
|
||||
|
||||
Script N(EatItem) = SCRIPT({
|
||||
EvtSource N(EatItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -145,7 +145,7 @@ Script N(EatItem) = SCRIPT({
|
||||
sleep 45;
|
||||
});
|
||||
|
||||
Script N(DrinkItem) = SCRIPT({
|
||||
EvtSource N(DrinkItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -156,7 +156,7 @@ Script N(DrinkItem) = SCRIPT({
|
||||
sleep 45;
|
||||
});
|
||||
|
||||
Script N(main) = SCRIPT({
|
||||
EvtSource N(main) = SCRIPT({
|
||||
SI_VAR(10) = (const) ITEM_DIZZY_DIAL;
|
||||
await N(UseItemWithEffect);
|
||||
SetGoalToHome(ACTOR_PLAYER);
|
||||
|
@ -7,8 +7,8 @@
|
||||
#undef NAMESPACE
|
||||
#define NAMESPACE battle_item_please_come_back
|
||||
|
||||
ApiStatus func_80273444(ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus func_80273444(Evt* script, s32 isInitialCall);
|
||||
|
||||
Script N(UseItemWithEffect);
|
||||
EvtSource N(UseItemWithEffect);
|
||||
|
||||
#endif
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
static HudElement* D_802A2120;
|
||||
|
||||
ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefund)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -41,7 +41,7 @@ ApiStatus N(GiveRefund)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(GiveRefundCleanup)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
s32 sellValue = gItemTable[battleStatus->selectedItemID].sellValue;
|
||||
@ -53,7 +53,7 @@ ApiStatus N(GiveRefundCleanup)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(func_802A123C_718A8C)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A123C_718A8C)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
CollisionStatus* collisionStatus = &gCollisionStatus;
|
||||
@ -73,7 +73,7 @@ ApiStatus N(func_802A123C_718A8C)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(func_802A12E4_718B34)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A12E4_718B34)(Evt* script, s32 isInitialCall) {
|
||||
Entity* entity = get_entity_by_index(script->varTable[10]);
|
||||
|
||||
entity->flags |= 0x20000000;
|
||||
@ -81,7 +81,7 @@ ApiStatus N(func_802A12E4_718B34)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus N(func_802A1318_718B68)(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus N(func_802A1318_718B68)(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* player = battleStatus->playerActor;
|
||||
Entity* entity = get_entity_by_index(script->varTable[10]);
|
||||
@ -96,7 +96,7 @@ ApiStatus N(func_802A1318_718B68)(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
Script N(UseItemWithEffect) = SCRIPT({
|
||||
EvtSource N(UseItemWithEffect) = SCRIPT({
|
||||
if (SI_VAR(1) == 0) {
|
||||
UseBattleCamPreset(69);
|
||||
sleep 10;
|
||||
@ -143,7 +143,7 @@ Script N(UseItemWithEffect) = SCRIPT({
|
||||
}
|
||||
});
|
||||
|
||||
Script N(UseItem) = SCRIPT({
|
||||
EvtSource N(UseItem) = SCRIPT({
|
||||
UseBattleCamPreset(19);
|
||||
SetBattleCamTarget(-85, 1, 0);
|
||||
SetBattleCamOffsetZ(41);
|
||||
@ -166,7 +166,7 @@ Script N(UseItem) = SCRIPT({
|
||||
RemoveItemEntity(SI_VAR(14));
|
||||
});
|
||||
|
||||
Script N(PlayerGoHome) = SCRIPT({
|
||||
EvtSource N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 0);
|
||||
SetGoalToHome(ACTOR_PLAYER);
|
||||
SetActorSpeed(ACTOR_PLAYER, 8.0);
|
||||
@ -177,7 +177,7 @@ Script N(PlayerGoHome) = SCRIPT({
|
||||
UseIdleAnimation(ACTOR_PLAYER, 1);
|
||||
});
|
||||
|
||||
Script N(EatItem) = SCRIPT({
|
||||
EvtSource N(EatItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -188,7 +188,7 @@ Script N(EatItem) = SCRIPT({
|
||||
sleep 45;
|
||||
});
|
||||
|
||||
Script N(DrinkItem) = SCRIPT({
|
||||
EvtSource N(DrinkItem) = SCRIPT({
|
||||
spawn {
|
||||
loop 4 {
|
||||
PlaySoundAtActor(ACTOR_PLAYER, SOUND_UNKNOWN_2095);
|
||||
@ -199,7 +199,7 @@ Script N(DrinkItem) = SCRIPT({
|
||||
sleep 45;
|
||||
});
|
||||
|
||||
Script N(main) = SCRIPT({
|
||||
EvtSource N(main) = SCRIPT({
|
||||
SI_VAR(10) = (const) ITEM_P_O_W_BLOCK;
|
||||
await N(UseItemWithEffect);
|
||||
sleep 10;
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user