1#ifndef _SCRIPT_API_BATTLE_H_
2#define _SCRIPT_API_BATTLE_H_
12#ifdef _LANGUAGE_C_PLUS_PLUS
16API_CALLABLE(EnablePartnerBlur);
17API_CALLABLE(DisablePartnerBlur);
18API_CALLABLE(UseBattleCamPreset);
19API_CALLABLE(SetBattleCamTarget);
20API_CALLABLE(SetBattleCamOffsetY);
21API_CALLABLE(AddBattleCamOffsetY);
22API_CALLABLE(SetBattleCamYaw);
23API_CALLABLE(BattleCamTargetActor);
24API_CALLABLE(MoveBattleCamOver);
25API_CALLABLE(SetBattleCamDist);
26API_CALLABLE(AddBattleCamDist);
27API_CALLABLE(FreezeBattleCam);
28API_CALLABLE(DisableBattleCamClampX);
29API_CALLABLE(ShowMessageBox);
30API_CALLABLE(ShowVariableMessageBox);
31API_CALLABLE(IsMessageBoxDisplayed);
32API_CALLABLE(WaitForMessageBoxDone);
33API_CALLABLE(ForceCloseMessageBox);
34API_CALLABLE(SetMessageBoxDuration);
35API_CALLABLE(ItemDamageEnemy);
36API_CALLABLE(ItemAfflictEnemy);
37API_CALLABLE(ItemSpookEnemy);
38API_CALLABLE(ItemCheckHit);
39API_CALLABLE(ActorSpeak);
40API_CALLABLE(EndActorSpeech);
41API_CALLABLE(ShowBattleChoice);
42API_CALLABLE(OverrideBattleDmaDest);
43API_CALLABLE(LoadBattleDmaData);
44API_CALLABLE(EnableBattleFloorReflections);
45API_CALLABLE(SetDarknessMode);
46API_CALLABLE(PlaySoundAtActor);
47API_CALLABLE(PlaySoundAtPart);
48API_CALLABLE(SetForegroundModelsVisibleUnchecked);
49API_CALLABLE(SetForegroundModelsVisible);
50API_CALLABLE(MakeStatusField);
51API_CALLABLE(MultiplyByActorScale);
52API_CALLABLE(MultiplyVec2ByActorScale);
53API_CALLABLE(MultiplyVec3ByActorScale);
54API_CALLABLE(ApplyShrinkFromOwner);
55API_CALLABLE(StartRumble);
56API_CALLABLE(HasMerleeCastsLeft);
57API_CALLABLE(SpawnRecoverHeartFX);
58API_CALLABLE(SpawnRecoverFlowerFX);
59API_CALLABLE(IncrementPlayerHP);
60API_CALLABLE(IncrementPlayerFP);
61API_CALLABLE(StartRumbleWithParams);
62API_CALLABLE(LoadItemScript);
63API_CALLABLE(LoadMoveScript);
64API_CALLABLE(LoadBattleSection);
65API_CALLABLE(GetBattlePhase);
66API_CALLABLE(GetLastElement);
67API_CALLABLE(SetDamageSource);
68API_CALLABLE(GetDamageSource);
69API_CALLABLE(SetGoalToHome);
70API_CALLABLE(SetIdleGoalToHome);
71API_CALLABLE(SetGoalToIndex);
72API_CALLABLE(GetIndexFromPos);
73API_CALLABLE(GetIndexFromHome);
74API_CALLABLE(CountTargets);
75API_CALLABLE(ForceHomePos);
76API_CALLABLE(SetHomePos);
77API_CALLABLE(SetGoalToTarget);
78API_CALLABLE(SetPartGoalToTarget);
79API_CALLABLE(SetGoalToFirstTarget);
80API_CALLABLE(SetGoalPos);
81API_CALLABLE(SetIdleGoal);
82API_CALLABLE(AddGoalPos);
83API_CALLABLE(GetGoalPos);
84API_CALLABLE(GetIdleGoal);
85API_CALLABLE(GetPartTarget);
86API_CALLABLE(GetActorPos);
87API_CALLABLE(GetPartOffset);
88API_CALLABLE(GetPartPos);
89API_CALLABLE(GetHomePos);
90API_CALLABLE(SetActorPos);
91API_CALLABLE(SetPartPos);
92API_CALLABLE(SetEnemyTargetOffset);
93API_CALLABLE(SetAnimation);
94API_CALLABLE(GetAnimation);
95API_CALLABLE(SetAnimationRate);
96API_CALLABLE(SetActorYaw);
97API_CALLABLE(GetActorYaw);
98API_CALLABLE(SetPartYaw);
99API_CALLABLE(GetPartYaw);
100API_CALLABLE(SetActorJumpGravity);
101API_CALLABLE(SetActorIdleJumpGravity);
102API_CALLABLE(SetActorSpeed);
103API_CALLABLE(SetActorIdleSpeed);
104API_CALLABLE(SetPartJumpGravity);
105API_CALLABLE(SetPartMoveSpeed);
106API_CALLABLE(SetJumpAnimations);
107API_CALLABLE(AddActorPos);
108API_CALLABLE(SetActorDispOffset);
109API_CALLABLE(GetPartDispOffset);
110API_CALLABLE(SetPartDispOffset);
111API_CALLABLE(AddPartDispOffset);
112API_CALLABLE(FreezeBattleState);
113API_CALLABLE(GetActorVar);
114API_CALLABLE(SetActorVar);
115API_CALLABLE(AddActorVar);
116API_CALLABLE(GetPartMovementVar);
117API_CALLABLE(SetPartMovementVar);
118API_CALLABLE(AddPartMovementVar);
119API_CALLABLE(SetActorRotation);
120API_CALLABLE(SetActorRotationOffset);
121API_CALLABLE(GetActorRotation);
122API_CALLABLE(SetPartRotation);
123API_CALLABLE(SetPartRotationOffset);
124API_CALLABLE(GetPartRotation);
125API_CALLABLE(SetActorScale);
126API_CALLABLE(SetActorScaleModifier);
127API_CALLABLE(GetActorScale);
128API_CALLABLE(SetPartScale);
129API_CALLABLE(GetPartScale);
130API_CALLABLE(GetBattleFlags);
131API_CALLABLE(SetBattleFlagBits);
132API_CALLABLE(GetBattleFlags2);
133API_CALLABLE(SetBattleFlagBits2);
134API_CALLABLE(SetActorFlags);
135API_CALLABLE(SetActorFlagBits);
136API_CALLABLE(GetActorFlags);
137API_CALLABLE(SetPartFlags);
138API_CALLABLE(SetPartFlagBits);
139API_CALLABLE(SetPartTargetFlags);
140API_CALLABLE(SetPartTargetFlagBits);
141API_CALLABLE(GetPartFlags);
142API_CALLABLE(GetPartTargetFlags);
143API_CALLABLE(SetPartEventFlags);
144API_CALLABLE(SetPartEventBits);
145API_CALLABLE(GetPartEventFlags);
146API_CALLABLE(HPBarToHome);
147API_CALLABLE(HPBarToCurrent);
148API_CALLABLE(SetHPBarOffset);
149API_CALLABLE(SetActorStatusOffsets);
150API_CALLABLE(SummonEnemy);
151API_CALLABLE(GetOwnerID);
152API_CALLABLE(SetOwnerID);
153API_CALLABLE(ActorExists);
154API_CALLABLE(SetEnabledStarPowers);
155API_CALLABLE(SetBattleInputMask);
156API_CALLABLE(SetBattleInputButtons);
157API_CALLABLE(CheckButtonPress);
158API_CALLABLE(CheckButtonHeld);
159API_CALLABLE(CheckButtonDown);
160API_CALLABLE(GetBattleState);
161API_CALLABLE(CreateCurrentPosTargetList);
162API_CALLABLE(CreateHomeTargetList);
163API_CALLABLE(InitTargetIterator);
164API_CALLABLE(SetOwnerTarget);
165API_CALLABLE(ChooseNextTarget);
166API_CALLABLE(GetTargetListLength);
167API_CALLABLE(GetOwnerTarget);
168API_CALLABLE(func_8026E914);
169API_CALLABLE(GetPlayerActorID);
170API_CALLABLE(GetDistanceToGoal);
171API_CALLABLE(SetActorPaletteEffect);
172API_CALLABLE(AddActorDecoration);
173API_CALLABLE(RemoveActorDecoration);
174API_CALLABLE(ModifyActorDecoration);
175API_CALLABLE(UseIdleAnimation);
176API_CALLABLE(GetStatusFlags);
177API_CALLABLE(RemovePlayerBuffs);
178API_CALLABLE(SetPartAlpha);
179API_CALLABLE(CreatePartShadow);
180API_CALLABLE(RemovePartShadow);
181API_CALLABLE(SetEndBattleFadeOutRate);
182API_CALLABLE(SetBattleVar);
183API_CALLABLE(GetBattleVar);
184API_CALLABLE(ResetAllActorSounds);
185API_CALLABLE(SetActorSounds);
186API_CALLABLE(ResetActorSounds);
187API_CALLABLE(SetPartSounds);
188API_CALLABLE(SetActorType);
189API_CALLABLE(ShowShockEffect);
190API_CALLABLE(GetActorAttackBoost);
191API_CALLABLE(GetActorDefenseBoost);
192API_CALLABLE(BoostAttack);
193API_CALLABLE(BoostDefense);
194API_CALLABLE(VanishActor);
195API_CALLABLE(ElectrifyActor);
196API_CALLABLE(HealActor);
197API_CALLABLE(WaitForBuffDone);
198API_CALLABLE(CopyBuffs);
199API_CALLABLE(GetMenuSelection);
200API_CALLABLE(PlayerFallToGoal);
201API_CALLABLE(PlayerLandJump);
202API_CALLABLE(PlayerRunToGoal);
203API_CALLABLE(CancelablePlayerRunToGoal);
204API_CALLABLE(GetPlayerHP);
205API_CALLABLE(PlayerDamageEnemy);
206API_CALLABLE(PlayerPowerBounceEnemy);
207API_CALLABLE(PlayerTestEnemy);
208API_CALLABLE(DispatchDamagePlayerEvent);
209API_CALLABLE(EnablePlayerBlur);
210API_CALLABLE(PlayerBasicJumpToGoal);
211API_CALLABLE(PlayerSuperJumpToGoal);
212API_CALLABLE(PlayerUltraJumpToGoal);
213API_CALLABLE(GetPlayerActionSuccess);
214API_CALLABLE(BindTakeTurn);
215API_CALLABLE(PauseTakeTurn);
216API_CALLABLE(ResumeTakeTurn);
217API_CALLABLE(BindIdle);
218API_CALLABLE(EnableIdleScript);
219API_CALLABLE(BindHandleEvent);
220API_CALLABLE(BindHandlePhase);
221API_CALLABLE(JumpToGoal);
222API_CALLABLE(IdleJumpToGoal);
223API_CALLABLE(JumpWithBounce);
224API_CALLABLE(LandJump);
225API_CALLABLE(FallToGoal);
226API_CALLABLE(RunToGoal);
227API_CALLABLE(IdleRunToGoal);
228API_CALLABLE(JumpPartTo);
229API_CALLABLE(FallPartTo);
230API_CALLABLE(LandJumpPart);
231API_CALLABLE(RunPartTo);
232API_CALLABLE(FlyToGoal);
233API_CALLABLE(IdleFlyToGoal);
234API_CALLABLE(FlyPartTo);
235API_CALLABLE(GetLastEvent);
236API_CALLABLE(SetTargetActor);
237API_CALLABLE(SetEnemyHP);
238API_CALLABLE(GetActorHP);
239API_CALLABLE(GetEnemyMaxHP);
240API_CALLABLE(RemoveActor);
241API_CALLABLE(DropStarPoints);
242API_CALLABLE(SetDefenseTable);
243API_CALLABLE(SetStatusTable);
244API_CALLABLE(SetIdleAnimations);
245API_CALLABLE(EnemyDamageTarget);
246API_CALLABLE(EnemyFollowupAfflictTarget);
247API_CALLABLE(EnemyTestTarget);
248API_CALLABLE(DispatchDamageEvent);
249API_CALLABLE(DispatchEvent);
250API_CALLABLE(ShowHealthBar);
251API_CALLABLE(SetTargetOffset);
252API_CALLABLE(SetProjectileTargetOffset);
253API_CALLABLE(EnableActorBlur);
254API_CALLABLE(AfflictActor);
255API_CALLABLE(GetInstigatorValue);
256API_CALLABLE(GetEncounterTrigger);
257API_CALLABLE(YieldTurn);
258API_CALLABLE(SetActorSize);
259API_CALLABLE(GetActorSize);
260API_CALLABLE(SetPartSize);
261API_CALLABLE(GetOriginalActorType);
262API_CALLABLE(GetCurrentActorType);
263API_CALLABLE(GetLastDamage);
264API_CALLABLE(EnableActorGlow);
265API_CALLABLE(WasStatusInflicted);
266API_CALLABLE(CopyStatusEffects);
267API_CALLABLE(ClearStatusEffects);
268API_CALLABLE(MakeOwnerTargetIndex);
269API_CALLABLE(GetActorLevel);
270API_CALLABLE(PartnerDamageEnemy);
271API_CALLABLE(PartnerAfflictEnemy);
272API_CALLABLE(PartnerPowerBounceEnemy);
273API_CALLABLE(PartnerTestEnemy);
274API_CALLABLE(DeletePartner);
275API_CALLABLE(GetDamageIntensity);
276API_CALLABLE(AddEffectOffset);
277API_CALLABLE(LoadStarPowerScript);
278API_CALLABLE(ForceBattleCamTarget);
279API_CALLABLE(SetBattleCamParam);
280API_CALLABLE(GetPartAnimNotify);
283API_CALLABLE(PartnerYieldTurn);
284API_CALLABLE(SetBattleCamTargetingModes);
285API_CALLABLE(UseBattleCamPresetImmediately);
286API_CALLABLE(UseBattleCamPresetWait);
287API_CALLABLE(HideHealthBar);
288API_CALLABLE(GetPartnerActionSuccess);
290API_CALLABLE(EnableBattleStatusBar);
291API_CALLABLE(PlayerYieldTurn);
294API_CALLABLE(PlayerHopToGoal);
295API_CALLABLE(WaitForState);
296API_CALLABLE(SetBattleMenuEnabledFlags);
297API_CALLABLE(SetBattleState);
298API_CALLABLE(func_8027D434);
299API_CALLABLE(func_8026F1A0);
300API_CALLABLE(PlayLoopingSoundAtActor);
301API_CALLABLE(StopLoopingSoundAtActor);
302API_CALLABLE(EnableActorPaletteEffects);
303API_CALLABLE(SetActorPaletteSwapParams);
304API_CALLABLE(BattleCamTargetActorPart);
305API_CALLABLE(GetDarknessStatus);
306API_CALLABLE(CancelEnemyTurn);
309API_CALLABLE(DispatchEventPlayer);
385#ifdef _LANGUAGE_C_PLUS_PLUS
EvtScript EVS_Enemy_ReturnHome
EvtScript EVS_MerleeRunOut
EvtScript EVS_PlayStopHitFX
EvtScript EVS_Partner_Hit
EvtScript EVS_Partner_Recover
EvtScript EVS_Enemy_DeathWithoutRemove
EvtScript EVS_Player_HandleEvent
EvtScript EVS_PlayerFirstStrike
EvtScript EVS_Partner_BurnContact
EvtScript BtlPutPartnerAway
EvtScript EVS_MerleeExpBonus
EvtScript EVS_PeachEnterStage
EvtScript Rumble_Unused_1
EvtScript Rumble_Unused_2
EvtScript EVS_Enemy_Knockback
EvtScript EVS_ApplyDizzyAttack
EvtScript EVS_ExecuteMarioAction
EvtScript EVS_Enemy_HopToPos
EvtScript EVS_Enemy_ScareAway
EvtScript EVS_Partner_Drop
EvtScript EVS_PlayerRegainAbility
EvtScript EVS_Partner_NoDamageHit
EvtScript EVS_Peach_HandlePhase
EvtScript EVS_PlayFreezeHitFX
EvtScript EVS_Enemy_Death
EvtScript EVS_Enemy_SpinSmashHit
EvtScript EVS_PlayShrinkHitFX
EvtScript EVS_Enemy_ShockHit_Impl
EvtScript EVS_Enemy_ShockHit
EvtScript EVS_Partner_ShockHit
EvtScript EVS_Enemy_HopHome
EvtScript EVS_Enemy_FlipBackUp
EvtScript EVS_Enemy_AirLift
EvtScript BtlBringPartnerOut
EvtScript EVS_Mario_HandlePhase
EvtScript EVS_ForceNextTarget
EvtScript Rumble_Unused_4
EvtScript EVS_MerleeDefenseBonus
EvtScript EVS_Enemy_BlowAway
EvtScript EVS_PlayParalyzeHitFX
EvtScript EVS_Partner_BurnHit
EvtScript EVS_Enemy_Recover
EvtScript EVS_Partner_BombetteSpikeContact
EvtScript EVS_Enemy_BurnHit
EvtScript EVS_Unused_DrinkItem
EvtScript EVS_MarioEnterStage
EvtScript EVS_Partner_Celebrate
EvtScript EVS_PlayPoisonHitFX
EvtScript EVS_StartDefend
EvtScript EVS_PlayerHappy
EvtScript EVS_UseLifeShroom
EvtScript EVS_PlaySleepHitFX
EvtScript EVS_RunAwayFail
EvtScript EVS_Partner_SpikeContact
EvtScript EVS_Partner_LakilesterHit
EvtScript EVS_MerleeAttackBonus
EvtScript EVS_RunAwayStart
EvtScript EVS_Unused_EatItem
EvtScript EVS_ExecutePeachAction
EvtScript EVS_Partner_RunAway
EvtScript EVS_PlayDizzyHitFX
EvtScript Rumble_Unused_3
EvtScript EVS_Enemy_NoDamageHit
EVT scripting API functions available at all times.
ApiStatus ShowRecoveryShimmer(Evt *script, b32 isInitialCall)
ApiStatus GetAnimatedNodePosition(Evt *script, b32 isInitialCall)
ApiStatus CreateNpc(Evt *script, b32 isInitialCall)
ApiStatus InitAnimatedModels(Evt *script, b32 isInitialCall)
ApiStatus SetCamLookTarget(Evt *script, b32 isInitialCall)
ApiStatus ShowStartRecoveryShimmer(Evt *script, b32 isInitialCall)
ApiStatus GetAnimatedNodeRotation(Evt *script, b32 isInitialCall)