#ifndef _SCRIPT_API_BATTLE_H_ #define _SCRIPT_API_BATTLE_H_ #include "common_structs.h" #include "evt.h" #include "script_api/common.h" 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 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