Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
common.h File Reference

EVT scripting API functions available at all times.

See also
script_api/battle.h script_api/map.h

Definition in file common.h.

Go to the source code of this file.

Functions

Map
ApiStatus TranslateModel (Evt *script, b32 isInitialCall)
 Translates the given model's position.
 
ApiStatus RotateModel (Evt *script, b32 isInitialCall)
 Rotates the model the given amount on the selected axis.
 
ApiStatus ScaleModel (Evt *script, b32 isInitialCall)
 Scales the model the given amount along the selected axis.
 
ApiStatus GetModelIndex (Evt *script, b32 isInitialCall)
 Returns the given model's index.
 
ApiStatus InvalidateModelTransform (Evt *script, b32 isInitialCall)
 
ApiStatus CloneModel (Evt *script, b32 isInitialCall)
 Clones the given model.
 
ApiStatus GetModelCenter (Evt *script, b32 isInitialCall)
 Returns the center of the given model.
 
ApiStatus SetTexPanner (Evt *script, b32 isInitialCall)
 Sets a model's pannerID and sets the texture pan flag.
 
ApiStatus SetCustomGfxEnabled (Evt *script, b32 isInitialCall)
 
ApiStatus SetModelCustomGfx (Evt *script, b32 isInitialCall)
 
ApiStatus SetModelTexVariant (Evt *script, b32 isInitialCall)
 
ApiStatus EnableTexPanning (Evt *script, b32 isInitialCall)
 Enables or disables texture panning on the given model.
 
ApiStatus EnableModel (Evt *script, b32 isInitialCall)
 Enables or disables the given model.
 
ApiStatus SetGroupVisibility (Evt *script, b32 isInitialCall)
 Enables or disables the given group.
 
ApiStatus SetTexPanOffset (Evt *script, b32 isInitialCall)
 Sets offsets for texture panners.
 
ApiStatus SetCustomGfx (Evt *script, b32 isInitialCall)
 
ApiStatus SetCustomGfxBuilders (Evt *script, b32 isInitialCall)
 
ApiStatus SetModelFlags (Evt *script, b32 isInitialCall)
 Sets flags for models.
 
ApiStatus MakeTransformGroup (Evt *script, b32 isInitialCall)
 
ApiStatus SetTransformGroupEnabled (Evt *script, b32 isInitialCall)
 
ApiStatus TranslateGroup (Evt *script, b32 isInitialCall)
 Translates the given group's position.
 
ApiStatus RotateGroup (Evt *script, b32 isInitialCall)
 Rotates the given group's position.
 
ApiStatus ScaleGroup (Evt *script, b32 isInitialCall)
 Scales the given group's position.
 
ApiStatus GetTransformGroup (Evt *script, b32 isInitialCall)
 
ApiStatus EnableGroup (Evt *script, b32 isInitialCall)
 Enables or disables the given group.
 
ApiStatus MakeLocalVertexCopy (Evt *script, b32 isInitialCall)
 
ApiStatus ModifyColliderFlags (Evt *script, b32 isInitialCall)
 Set flags for collider + siblings + children.
 
ApiStatus ResetFromLava (Evt *script, b32 isInitialCall)
 
ApiStatus GetColliderCenter (Evt *script, b32 isInitialCall)
 Returns the center of the given collider.
 
ApiStatus ParentColliderToModel (Evt *script, b32 isInitialCall)
 Associates a model with a collider and applies the model's transformation.
 
ApiStatus UpdateColliderTransform (Evt *script, b32 isInitialCall)
 Applies transformation from parent model.
 
ApiStatus SetZoneEnabled (Evt *script, b32 isInitialCall)
 Enables or disables the given zone.
 
ApiStatus GotoMap (Evt *script, b32 isInitialCall)
 Makes the player go to the given map and at the given entrance.
 
ApiStatus GotoMapSpecial (Evt *script, b32 isInitialCall)
 Makes the player go to the given map and at the given entrance with a unique fadeout effect.
 
ApiStatus GotoMapByID (Evt *script, b32 isInitialCall)
 
ApiStatus GetEntryID (Evt *script, b32 isInitialCall)
 Returns the entryID of the Entry that the player entered the map from.
 
ApiStatus GetMapID (Evt *script, b32 isInitialCall)
 Returns the mapID of the map the player is currently on.
 
ApiStatus GetLoadType (Evt *script, b32 isInitialCall)
 Returns the way the player loaded into the map, commonly used by to put the player in the correct position for save blocks.
 
ApiStatus SetRenderMode (Evt *script, b32 isInitialCall)
 
ApiStatus PlaySoundAtModel (Evt *script, b32 isInitialCall)
 Plays the given sound at the given model.
 
ApiStatus PlaySoundAtCollider (Evt *script, b32 isInitialCall)
 Plays the given sound at the given collider.
 
Animated Model
ApiStatus InitAnimatedModels (Evt *script, b32 isInitialCall)
 
ApiStatus LoadAnimatedModel (Evt *script, b32 isInitialCall)
 
ApiStatus LoadAnimatedMesh (Evt *script, b32 isInitialCall)
 
ApiStatus PlayModelAnimation (Evt *script, b32 isInitialCall)
 
ApiStatus PlayModelAnimationStartingFrom (Evt *script, b32 isInitialCall)
 
ApiStatus ChangeModelAnimation (Evt *script, b32 isInitialCall)
 
ApiStatus SetAnimatedModelRootPosition (Evt *script, b32 isInitialCall)
 
ApiStatus GetAnimatedModelRootPosition (Evt *script, b32 isInitialCall)
 
ApiStatus AddAnimatedModelRootPosition (Evt *script, b32 isInitialCall)
 
ApiStatus SetAnimatedModelRootRotation (Evt *script, b32 isInitialCall)
 
ApiStatus SetAnimatedModelRootScale (Evt *script, b32 isInitialCall)
 
ApiStatus SetAnimatedModelRenderMode (Evt *script, b32 isInitialCall)
 
ApiStatus DeleteAnimatedModel (Evt *script, b32 isInitialCall)
 
ApiStatus SetAnimatorFlags (Evt *script, b32 isInitialCall)
 
ApiStatus GetAnimatedNodePosition (Evt *script, b32 isInitialCall)
 
ApiStatus GetAnimatedNodeRotation (Evt *script, b32 isInitialCall)
 
ApiStatus GetAnimatedPositionByTreeIndex (Evt *script, b32 isInitialCall)
 
ApiStatus GetAnimatedRotationByTreeIndex (Evt *script, b32 isInitialCall)
 
ApiStatus SetAnimatedNodeFlags (Evt *script, b32 isInitialCall)
 
Camera
ApiStatus SetCamEnabled (Evt *script, b32 isInitialCall)
 
ApiStatus SetCamNoDraw (Evt *script, b32 isInitialCall)
 
ApiStatus SetCamPerspective (Evt *script, b32 isInitialCall)
 
ApiStatus SetCamUpdateMode (Evt *script, b32 isInitialCall)
 
ApiStatus GrabCamera (Evt *script, b32 isInitialCall)
 
ApiStatus GetInterpCamDist (Evt *script, b32 isInitialCall)
 
ApiStatus GetInterpCamOffsetY (Evt *script, b32 isInitialCall)
 
ApiStatus SetInterpCamDist (Evt *script, b32 isInitialCall)
 
ApiStatus SetInterpCamOffsetY (Evt *script, b32 isInitialCall)
 
ApiStatus SetInterpCamParams (Evt *script, b32 isInitialCall)
 
ApiStatus SetNoInterpCamParams (Evt *script, b32 isInitialCall)
 
ApiStatus SetCamViewport (Evt *script, b32 isInitialCall)
 
ApiStatus SetCamBGColor (Evt *script, b32 isInitialCall)
 
ApiStatus SetCamLookTarget (Evt *script, b32 isInitialCall)
 
ApiStatus SetCamTarget (Evt *script, b32 isInitialCall)
 
ApiStatus InterpCamTargetPos (Evt *script, b32 isInitialCall)
 
ApiStatus ShakeCam (Evt *script, b32 isInitialCall)
 
ApiStatus SetCamLeadPlayer (Evt *script, b32 isInitialCall)
 
ApiStatus EnableCameraFollowPlayerY (Evt *script, b32 isInitialCall)
 
ApiStatus DisableCameraFollowPlayerY (Evt *script, b32 isInitialCall)
 
ApiStatus EnableCameraLeadingPlayer (Evt *script, b32 isInitialCall)
 
ApiStatus DisableCameraLeadingPlayer (Evt *script, b32 isInitialCall)
 
ApiStatus SetCamLeadScale (Evt *script, b32 isInitialCall)
 
ApiStatus PanToTarget (Evt *script, b32 isInitialCall)
 
ApiStatus UseSettingsFrom (Evt *script, b32 isInitialCall)
 
ApiStatus LoadSettings (Evt *script, b32 isInitialCall)
 
ApiStatus SetCamType (Evt *script, b32 isInitialCall)
 
ApiStatus SetCamPitch (Evt *script, b32 isInitialCall)
 
ApiStatus SetCamDistance (Evt *script, b32 isInitialCall)
 
ApiStatus SetCamPosA (Evt *script, b32 isInitialCall)
 
ApiStatus SetCamPosB (Evt *script, b32 isInitialCall)
 
ApiStatus SetCamPosC (Evt *script, b32 isInitialCall)
 
ApiStatus SetPanTarget (Evt *script, b32 isInitialCall)
 
ApiStatus SetCamSpeed (Evt *script, b32 isInitialCall)
 
ApiStatus GetCamType (Evt *script, b32 isInitialCall)
 
ApiStatus GetCamPitch (Evt *script, b32 isInitialCall)
 
ApiStatus GetCamDistance (Evt *script, b32 isInitialCall)
 
ApiStatus GetCamPosA (Evt *script, b32 isInitialCall)
 
ApiStatus GetCamPosB (Evt *script, b32 isInitialCall)
 
ApiStatus GetCamPosC (Evt *script, b32 isInitialCall)
 
ApiStatus GetCamPosition (Evt *script, b32 isInitialCall)
 
ApiStatus WaitForCam (Evt *script, b32 isInitialCall)
 
ApiStatus SetCamProperties (Evt *script, b32 isInitialCall)
 
ApiStatus AdjustCam (Evt *script, b32 isInitialCall)
 
ApiStatus ResetCam (Evt *script, b32 isInitialCall)
 
NPC
ApiStatus CreateNpc (Evt *script, b32 isInitialCall)
 
ApiStatus DeleteNpc (Evt *script, b32 isInitialCall)
 
ApiStatus GetNpcPointer (Evt *script, b32 isInitialCall)
 
ApiStatus SetNpcPos (Evt *script, b32 isInitialCall)
 
ApiStatus SetNpcRotation (Evt *script, b32 isInitialCall)
 
ApiStatus SetNpcRotationPivot (Evt *script, b32 isInitialCall)
 
ApiStatus SetNpcScale (Evt *script, b32 isInitialCall)
 
ApiStatus SetNpcCollisionSize (Evt *script, b32 isInitialCall)
 
ApiStatus SetNpcSpeed (Evt *script, b32 isInitialCall)
 
ApiStatus SetNpcJumpscale (Evt *script, b32 isInitialCall)
 
ApiStatus SetNpcAnimation (Evt *script, b32 isInitialCall)
 
ApiStatus GetNpcAnimation (Evt *script, b32 isInitialCall)
 
ApiStatus SetNpcAnimationSpeed (Evt *script, b32 isInitialCall)
 
ApiStatus NpcMoveTo (Evt *script, b32 isInitialCall)
 
ApiStatus NpcJump0 (Evt *script, b32 isInitialCall)
 
ApiStatus NpcJump1 (Evt *script, b32 isInitialCall)
 
ApiStatus NpcFlyTo (Evt *script, b32 isInitialCall)
 
ApiStatus GetNpcYaw (Evt *script, b32 isInitialCall)
 
ApiStatus SetNpcYaw (Evt *script, b32 isInitialCall)
 
ApiStatus InterpNpcYaw (Evt *script, b32 isInitialCall)
 
ApiStatus NpcFacePlayer (Evt *script, b32 isInitialCall)
 
ApiStatus NpcFaceNpc (Evt *script, b32 isInitialCall)
 
ApiStatus SetNpcFlagBits (Evt *script, b32 isInitialCall)
 
ApiStatus GetNpcPos (Evt *script, b32 isInitialCall)
 
ApiStatus SetNpcCollisionChannel (Evt *script, b32 isInitialCall)
 
ApiStatus SetNpcSprite (Evt *script, b32 isInitialCall)
 
ApiStatus EnableNpcShadow (Evt *script, b32 isInitialCall)
 
ApiStatus EnableNpcBlur (Evt *script, b32 isInitialCall)
 
ApiStatus ClearPartnerMoveHistory (Evt *script, b32 isInitialCall)
 
ApiStatus NpcSetHomePosToCurrent (Evt *script, b32 isInitialCall)
 
ApiStatus GetPartnerPos (Evt *script, b32 isInitialCall)
 
ApiStatus DisablePartnerAI (Evt *script, b32 isInitialCall)
 
ApiStatus EnablePartnerAI (Evt *script, b32 isInitialCall)
 
ApiStatus func_802CF54C (Evt *script, b32 isInitialCall)
 
ApiStatus func_802CF56C (Evt *script, b32 isInitialCall)
 
ApiStatus BringPartnerOut (Evt *script, b32 isInitialCall)
 
ApiStatus PutPartnerAway (Evt *script, b32 isInitialCall)
 
ApiStatus GetCurrentPartnerID (Evt *script, b32 isInitialCall)
 
ApiStatus PartnerCanUseAbility (Evt *script, b32 isInitialCall)
 
ApiStatus PartnerIsFlying (Evt *script, b32 isInitialCall)
 
ApiStatus SetNpcImgFXParams (Evt *script, b32 isInitialCall)
 
ApiStatus SetNpcImgFXFlags (Evt *script, b32 isInitialCall)
 
ApiStatus SetNpcPaletteSwapMode (Evt *script, b32 isInitialCall)
 
ApiStatus SetNpcPaletteSwapLower (Evt *script, b32 isInitialCall)
 
ApiStatus SetNpcPaletteSwapping (Evt *script, b32 isInitialCall)
 
ApiStatus SetNpcDecoration (Evt *script, b32 isInitialCall)
 
ApiStatus PlaySoundAtNpc (Evt *script, b32 isInitialCall)
 
ApiStatus SetNpcRenderMode (Evt *script, b32 isInitialCall)
 
Encounter
ApiStatus SetEncounterStatusFlags (Evt *script, b32 isInitialCall)
 
ApiStatus IsStartingConversation (Evt *script, b32 isInitialCall)
 
ApiStatus LoadDemoBattle (Evt *script, b32 isInitialCall)
 
ApiStatus func_80044290 (Evt *script, b32 isInitialCall)
 
ApiStatus MakeNpcs (Evt *script, b32 isInitialCall)
 
ApiStatus RemoveNpc (Evt *script, b32 isInitialCall)
 
ApiStatus RemoveEncounter (Evt *script, b32 isInitialCall)
 
ApiStatus GetBattleOutcome (Evt *script, b32 isInitialCall)
 
ApiStatus func_800445A8 (Evt *script, b32 isInitialCall)
 
ApiStatus func_800445D4 (Evt *script, b32 isInitialCall)
 
ApiStatus GetOwnerEncounterTrigger (Evt *script, b32 isInitialCall)
 
ApiStatus DoNpcDefeat (Evt *script, b32 isInitialCall)
 
ApiStatus StartBattle (Evt *script, b32 isInitialCall)
 
ApiStatus StartBattleWith (Evt *script, b32 isInitialCall)
 
ApiStatus StartBossBattle (Evt *script, b32 isInitialCall)
 
ApiStatus SetBattleMusic (Evt *script, b32 isInitialCall)
 
ApiStatus BindNpcAI (Evt *script, b32 isInitialCall)
 
ApiStatus BindNpcIdle (Evt *script, b32 isInitialCall)
 
ApiStatus RestartNpcAI (Evt *script, b32 isInitialCall)
 
ApiStatus EnableNpcAI (Evt *script, b32 isInitialCall)
 
ApiStatus SetNpcAux (Evt *script, b32 isInitialCall)
 
ApiStatus BindNpcAux (Evt *script, b32 isInitialCall)
 
ApiStatus RestartNpcAux (Evt *script, b32 isInitialCall)
 
ApiStatus EnableNpcAux (Evt *script, b32 isInitialCall)
 
ApiStatus BindNpcInteract (Evt *script, b32 isInitialCall)
 
ApiStatus BindNpcHit (Evt *script, b32 isInitialCall)
 
ApiStatus BindNpcDefeat (Evt *script, b32 isInitialCall)
 
ApiStatus SetSelfVar (Evt *script, b32 isInitialCall)
 
ApiStatus GetSelfVar (Evt *script, b32 isInitialCall)
 
ApiStatus SetNpcVar (Evt *script, b32 isInitialCall)
 
ApiStatus GetNpcVar (Evt *script, b32 isInitialCall)
 
ApiStatus SetSelfRotation (Evt *script, b32 isInitialCall)
 
ApiStatus SetSelfEnemyFlags (Evt *script, b32 isInitialCall)
 
ApiStatus SetSelfEnemyFlagBits (Evt *script, b32 isInitialCall)
 
ApiStatus SelfEnemyOverrideSyncPos (Evt *script, b32 isInitialCall)
 
ApiStatus GetSelfNpcID (Evt *script, b32 isInitialCall)
 
ApiStatus ClearDefeatedEnemies (Evt *script, b32 isInitialCall)
 
ApiStatus SetEnemyFlagBits (Evt *script, b32 isInitialCall)
 
ApiStatus func_8004572C (Evt *script, b32 isInitialCall)
 
ApiStatus GetSelfAnimationFromTable (Evt *script, b32 isInitialCall)
 
ApiStatus func_80045798 (Evt *script, b32 isInitialCall)
 
ApiStatus SetOwnerInstigatorValue (Evt *script, b32 isInitialCall)
 
ApiStatus SetBattleAsScripted (Evt *script, b32 isInitialCall)
 
ApiStatus GetEncounterTriggerHitTier (Evt *script, b32 isInitialCall)
 
ApiStatus func_80045838 (Evt *script, b32 isInitialCall)
 
ApiStatus func_800458CC (Evt *script, b32 isInitialCall)
 
ApiStatus OnPlayerFled (Evt *script, b32 isInitialCall)
 
ApiStatus SetTattleMessage (Evt *script, b32 isInitialCall)
 
ApiStatus ShowMerleeCoinMessage (Evt *script, b32 isInitialCall)
 
ApiStatus ShowMerleeRanOutMessage (Evt *script, b32 isInitialCall)
 
ApiStatus FadeInMerlee (Evt *script, b32 isInitialCall)
 
ApiStatus FadeOutMerlee (Evt *script, b32 isInitialCall)
 
ApiStatus MerleeUpdateFX (Evt *script, b32 isInitialCall)
 
ApiStatus MerleeStopFX (Evt *script, b32 isInitialCall)
 
ApiStatus PlayMerleeGatherFX (Evt *script, b32 isInitialCall)
 
ApiStatus PlayMerleeOrbFX (Evt *script, b32 isInitialCall)
 
ApiStatus FadeBackgroundDarken (Evt *script, b32 isInitialCall)
 
ApiStatus FadeBackgroundLighten (Evt *script, b32 isInitialCall)
 
ApiStatus GetCamLookAtObjVector (Evt *script, b32 isInitialCall)
 
ApiStatus HasMerleeCasts (Evt *script, b32 isInitialCall)
 
ApiStatus OnDefeatEnemy (Evt *script, b32 isInitialCall)
 
ApiStatus OnFleeBattleDrops (Evt *script, b32 isInitialCall)
 
Message
ApiStatus SpeakToPlayer (Evt *script, b32 isInitialCall)
 
ApiStatus EndSpeech (Evt *script, b32 isInitialCall)
 
ApiStatus ContinueSpeech (Evt *script, b32 isInitialCall)
 
ApiStatus SpeakToNpc (Evt *script, b32 isInitialCall)
 
ApiStatus ShowMessageAtScreenPos (Evt *script, b32 isInitialCall)
 
ApiStatus ShowMessageAtWorldPos (Evt *script, b32 isInitialCall)
 
ApiStatus CloseMessage (Evt *script, b32 isInitialCall)
 
ApiStatus SwitchMessage (Evt *script, b32 isInitialCall)
 
ApiStatus ShowChoice (Evt *script, b32 isInitialCall)
 
ApiStatus CloseChoice (Evt *script, b32 isInitialCall)
 
ApiStatus CancelMessage (Evt *script, b32 isInitialCall)
 
ApiStatus SetMessageImages (Evt *script, b32 isInitialCall)
 
ApiStatus func_802D0C94 (Evt *script, b32 isInitialCall)
 
ApiStatus SetMessageText (Evt *script, b32 isInitialCall)
 
ApiStatus SetMessageValue (Evt *script, b32 isInitialCall)
 
Player
ApiStatus HidePlayerShadow (Evt *script, b32 isInitialCall)
 Hides the player's shadow if hide is TRUE, shows it if FALSE.
 
ApiStatus DisablePlayerPhysics (Evt *script, b32 isInitialCall)
 Disables player physics if disable is TRUE, enables it if FALSE.
 
ApiStatus DisablePlayerInput (Evt *script, b32 isInitialCall)
 Disables player and partner input, and disables the status menu.
 
ApiStatus SetPlayerPos (Evt *script, b32 isInitialCall)
 Sets the player position.
 
ApiStatus SetPlayerCollisionSize (Evt *script, b32 isInitialCall)
 Overrides the player collision size.
 
ApiStatus SetPlayerSpeed (Evt *script, b32 isInitialCall)
 Sets the move speed of the player for subequent PlayerMoveTo calls.
 
ApiStatus SetPlayerJumpscale (Evt *script, b32 isInitialCall)
 
ApiStatus SetPlayerAnimation (Evt *script, b32 isInitialCall)
 
ApiStatus SetPlayerActionState (Evt *script, b32 isInitialCall)
 
ApiStatus SetPlayerAnimationSpeed (Evt *script, b32 isInitialCall)
 
ApiStatus PlayerMoveTo (Evt *script, b32 isInitialCall)
 
ApiStatus func_802D1270 (Evt *script, b32 isInitialCall)
 
ApiStatus func_802D1380 (Evt *script, b32 isInitialCall)
 
ApiStatus PlayerJump (Evt *script, b32 isInitialCall)
 
ApiStatus PlayerJump1 (Evt *script, b32 isInitialCall)
 
ApiStatus PlayerJump2 (Evt *script, b32 isInitialCall)
 
ApiStatus InterpPlayerYaw (Evt *script, b32 isInitialCall)
 
ApiStatus PlayerFaceNpc (Evt *script, b32 isInitialCall)
 
ApiStatus GetPlayerTargetYaw (Evt *script, b32 isInitialCall)
 
ApiStatus SetPlayerFlagBits (Evt *script, b32 isInitialCall)
 
ApiStatus GetPlayerActionState (Evt *script, b32 isInitialCall)
 
ApiStatus GetPlayerPos (Evt *script, b32 isInitialCall)
 
ApiStatus GetPlayerAnimation (Evt *script, b32 isInitialCall)
 
ApiStatus FullyRestoreHPandFP (Evt *script, b32 isInitialCall)
 
ApiStatus FullyRestoreSP (Evt *script, b32 isInitialCall)
 
ApiStatus EnablePartner (Evt *script, b32 isInitialCall)
 Enables switching to the given partner.
 
ApiStatus DisablePartner (Evt *script, b32 isInitialCall)
 Disables switching to the given partner.
 
ApiStatus UseEntryHeading (Evt *script, b32 isInitialCall)
 
ApiStatus func_802D2148 (Evt *script, b32 isInitialCall)
 
ApiStatus UseExitHeading (Evt *script, b32 isInitialCall)
 
ApiStatus WaitForPlayerTouchingFloor (Evt *script, b32 isInitialCall)
 
ApiStatus func_802D2484 (Evt *script, b32 isInitialCall)
 
ApiStatus IsPlayerOnValidFloor (Evt *script, b32 isInitialCall)
 
ApiStatus WaitForPlayerMoveToComplete (Evt *script, b32 isInitialCall)
 
ApiStatus WaitForPlayerInputEnabled (Evt *script, b32 isInitialCall)
 
ApiStatus UpdatePlayerImgFX (Evt *script, b32 isInitialCall)
 
ApiStatus SetPlayerImgFXFlags (Evt *script, b32 isInitialCall)
 
ApiStatus FacePlayerTowardPoint (Evt *script, b32 isInitialCall)
 
ApiStatus DisablePulseStone (Evt *script, b32 isInitialCall)
 
ApiStatus GetPartnerInUse (Evt *script, b32 isInitialCall)
 
ApiStatus ForceUsePartner (Evt *script, b32 isInitialCall)
 
ApiStatus InterruptUsePartner (Evt *script, b32 isInitialCall)
 
ApiStatus Disable8bitMario (Evt *script, b32 isInitialCall)
 Enables and disables the 8-bit Mario easter egg.
 
ApiStatus func_802D2C14 (Evt *script, b32 isInitialCall)
 
ApiStatus SetPlayerPushVelocity (Evt *script, b32 isInitialCall)
 
ApiStatus PlaySoundAtPlayer (Evt *script, b32 isInitialCall)
 
Math
ApiStatus MakeLerp (Evt *script, b32 isInitialCall)
 
ApiStatus UpdateLerp (Evt *script, b32 isInitialCall)
 
ApiStatus RandInt (Evt *script, b32 isInitialCall)
 
ApiStatus GetAngleBetweenNPCs (Evt *script, b32 isInitialCall)
 
ApiStatus GetAngleToNPC (Evt *script, b32 isInitialCall)
 
ApiStatus GetAngleToPlayer (Evt *script, b32 isInitialCall)
 
ApiStatus AwaitPlayerApproach (Evt *script, b32 isInitialCall)
 
ApiStatus IsPlayerWithin (Evt *script, b32 isInitialCall)
 
ApiStatus AwaitPlayerLeave (Evt *script, b32 isInitialCall)
 
ApiStatus AddVectorPolar (Evt *script, b32 isInitialCall)
 
ApiStatus func_802D4BDC (Evt *script, b32 isInitialCall)
 
ApiStatus func_802D4C4C (Evt *script, b32 isInitialCall)
 
ApiStatus func_802D4CC4 (Evt *script, b32 isInitialCall)
 
ApiStatus func_802D4D14 (Evt *script, b32 isInitialCall)
 
ApiStatus func_802D4D88 (Evt *script, b32 isInitialCall)
 
ApiStatus LoadPath (Evt *script, b32 isInitialCall)
 
ApiStatus GetNextPathPos (Evt *script, b32 isInitialCall)
 
ApiStatus GetDist2D (Evt *script, b32 isInitialCall)
 
ApiStatus SetTimeFreezeMode (Evt *script, b32 isInitialCall)
 
ApiStatus ModifyGlobalOverrideFlags (Evt *script, b32 isInitialCall)
 
ApiStatus SetValueByRef (Evt *script, b32 isInitialCall)
 
ApiStatus GetValueByRef (Evt *script, b32 isInitialCall)
 
ApiStatus SetGameMode (Evt *script, b32 isInitialCall)
 
ApiStatus ClampAngleInt (Evt *script, b32 isInitialCall)
 
ApiStatus ClampAngleFloat (Evt *script, b32 isInitialCall)
 
UI
ApiStatus EnableWorldStatusBar (Evt *script, b32 isInitialCall)
 
ApiStatus ShowWorldStatusBar (Evt *script, b32 isInitialCall)
 
ApiStatus ShowCoinCounter (Evt *script, b32 isInitialCall)
 
Audio
ApiStatus PollMusicEvents (Evt *script, b32 isInitialCall)
 
ApiStatus RegisterMusicEvents (Evt *script, b32 isInitialCall)
 
ApiStatus FadeOutMusic (Evt *script, b32 isInitialCall)
 
ApiStatus SetMusicTrack (Evt *script, b32 isInitialCall)
 
ApiStatus FadeInMusic (Evt *script, b32 isInitialCall)
 
ApiStatus EnableMusicProximityMix (Evt *script, b32 isInitialCall)
 
ApiStatus AdjustMusicProximityMix (Evt *script, b32 isInitialCall)
 
ApiStatus SetMusicTrackVolumes (Evt *script, b32 isInitialCall)
 
ApiStatus PopSong (Evt *script, b32 isInitialCall)
 
ApiStatus PushSong (Evt *script, b32 isInitialCall)
 
ApiStatus PopBattleSong (Evt *script, b32 isInitialCall)
 
ApiStatus PushBattleSong (Evt *script, b32 isInitialCall)
 
ApiStatus SetBattleSong (Evt *script, b32 isInitialCall)
 
ApiStatus ClearAmbientSounds (Evt *script, b32 isInitialCall)
 
ApiStatus PlayAmbientSounds (Evt *script, b32 isInitialCall)
 
ApiStatus PlaySound (Evt *script, b32 isInitialCall)
 
ApiStatus PlaySoundWithVolume (Evt *script, b32 isInitialCall)
 
ApiStatus PlaySoundAt (Evt *script, b32 isInitialCall)
 
ApiStatus StopSound (Evt *script, b32 isInitialCall)
 
ApiStatus StopTrackingSoundPos (Evt *script, b32 isInitialCall)
 
ApiStatus UseDoorSounds (Evt *script, b32 isInitialCall)
 
ApiStatus UseRoomDoorSounds (Evt *script, b32 isInitialCall)
 
ApiStatus PlaySoundAtF (Evt *script, b32 isInitialCall)
 
Virtual Entity
ApiStatus InitVirtualEntityList (Evt *script, b32 isInitialCall)
 
ApiStatus CreateVirtualEntityAt (Evt *script, b32 isInitialCall)
 
ApiStatus CreateVirtualEntity (Evt *script, b32 isInitialCall)
 
ApiStatus CreateVirtualEntity_ALT (Evt *script, b32 isInitialCall)
 
ApiStatus DeleteVirtualEntity (Evt *script, b32 isInitialCall)
 
ApiStatus SetVirtualEntityRenderCommands (Evt *script, b32 isInitialCall)
 
ApiStatus SetVirtualEntityPosition (Evt *script, b32 isInitialCall)
 
ApiStatus GetVirtualEntityPosition (Evt *script, b32 isInitialCall)
 
ApiStatus SetVirtualEntityRotation (Evt *script, b32 isInitialCall)
 
ApiStatus SetVirtualEntityScale (Evt *script, b32 isInitialCall)
 
ApiStatus SetVirtualEntityMoveSpeed (Evt *script, b32 isInitialCall)
 
ApiStatus SetVirtualEntityJumpGravity (Evt *script, b32 isInitialCall)
 
ApiStatus VirtualEntityMoveTo (Evt *script, b32 isInitialCall)
 
ApiStatus VirtualEntityJumpTo (Evt *script, b32 isInitialCall)
 
ApiStatus VirtualEntityLandJump (Evt *script, b32 isInitialCall)
 
ApiStatus SetVirtualEntityFlags (Evt *script, b32 isInitialCall)
 
ApiStatus SetVirtualEntityFlagBits (Evt *script, b32 isInitialCall)
 
ApiStatus SetVirtualEntityRenderMode (Evt *script, b32 isInitialCall)
 
Item
ApiStatus ShowKeyChoicePopup (Evt *script, b32 isInitialCall)
 
ApiStatus ShowConsumableChoicePopup (Evt *script, b32 isInitialCall)
 
ApiStatus RemoveKeyItemAt (Evt *script, b32 isInitialCall)
 
ApiStatus RemoveItemAt (Evt *script, b32 isInitialCall)
 
ApiStatus CloseChoicePopup (Evt *script, b32 isInitialCall)
 
ApiStatus HasItem (Evt *script, b32 isInitialCall)
 
ApiStatus FindItem (Evt *script, b32 isInitialCall)
 
ApiStatus AddItem (Evt *script, b32 isInitialCall)
 
ApiStatus RemoveItem (Evt *script, b32 isInitialCall)
 
ApiStatus MakeItemEntity (Evt *script, b32 isInitialCall)
 
ApiStatus DropItemEntity (Evt *script, b32 isInitialCall)
 
ApiStatus DropResizableItemEntity (Evt *script, b32 isInitialCall)
 
ApiStatus RemoveItemEntity (Evt *script, b32 isInitialCall)
 
ApiStatus SetItemPos (Evt *script, b32 isInitialCall)
 
ApiStatus SetItemFlags (Evt *script, b32 isInitialCall)
 
ApiStatus SetItemAlpha (Evt *script, b32 isInitialCall)
 
ApiStatus AddCoin (Evt *script, b32 isInitialCall)
 
ApiStatus AddStarPoints (Evt *script, b32 isInitialCall)
 
ApiStatus AddStarPieces (Evt *script, b32 isInitialCall)
 
ApiStatus GetItemPower (Evt *script, b32 isInitialCall)
 
ApiStatus ShowGotItem (Evt *script, b32 isInitialCall)
 
Effect
ApiStatus ShowStartRecoveryShimmer (Evt *script, b32 isInitialCall)
 
ApiStatus ShowRecoveryShimmer (Evt *script, b32 isInitialCall)
 
ApiStatus func_802D7690 (Evt *script, b32 isInitialCall)
 
ApiStatus ShowEmote (Evt *script, b32 isInitialCall)
 
ApiStatus RemoveEffect (Evt *script, b32 isInitialCall)
 
ApiStatus DismissEffect (Evt *script, b32 isInitialCall)
 
ApiStatus DismissItemOutline (Evt *script, b32 isInitialCall)
 
ApiStatus func_802D7B74 (Evt *script, b32 isInitialCall)
 
ApiStatus InterpMotionBlurParams (Evt *script, b32 isInitialCall)
 
ApiStatus SetMotionBlurParams (Evt *script, b32 isInitialCall)
 
ApiStatus ShowSweat (Evt *script, b32 isInitialCall)
 
ApiStatus ShowSleepBubble (Evt *script, b32 isInitialCall)
 
ApiStatus SetSleepBubbleTimeLeft (Evt *script, b32 isInitialCall)
 
ApiStatus PlayEffect_impl (Evt *script, b32 isInitialCall)
 
Entity
ApiStatus MakeEntity (Evt *script, b32 isInitialCall)
 Creates an entity.
 
ApiStatus SetEntityCullMode (Evt *script, b32 isInitialCall)
 
ApiStatus UseDynamicShadow (Evt *script, b32 isInitialCall)
 
ApiStatus AssignScript (Evt *script, b32 isInitialCall)
 
ApiStatus AssignSwitchFlag (Evt *script, b32 isInitialCall)
 
ApiStatus AssignBlockFlag (Evt *script, b32 isInitialCall)
 
ApiStatus AssignChestFlag (Evt *script, b32 isInitialCall)
 
ApiStatus AssignPanelFlag (Evt *script, b32 isInitialCall)
 
ApiStatus AssignCrateFlag (Evt *script, b32 isInitialCall)
 
ApiStatus DeleteTrigger (Evt *script, b32 isInitialCall)
 Removes a trigger previously bound with BindTrigger.
 
Sprite shading
ApiStatus SetSpriteShading (Evt *script, b32 isInitialCall)
 
ApiStatus EnableSpriteShading (Evt *script, b32 isInitialCall)
 
Demo
ApiStatus GetDemoState (Evt *script, b32 isInitialCall)
 
ApiStatus DemoPressButton (Evt *script, b32 isInitialCall)
 
ApiStatus DemoReleaseButton (Evt *script, b32 isInitialCall)
 
ApiStatus DemoSetButtons (Evt *script, b32 isInitialCall)
 
ApiStatus DemoJoystickRadial (Evt *script, b32 isInitialCall)
 
ApiStatus DemoJoystickXY (Evt *script, b32 isInitialCall)
 

Variables

EvtScript EnemyNpcHit
 
EvtScript EnemyNpcDefeat
 

Function Documentation

◆ TranslateModel()

ApiStatus TranslateModel ( Evt * script,
b32 isInitialCall )

Translates the given model's position.

Parameters
modelID
x
y
z

◆ RotateModel()

ApiStatus RotateModel ( Evt * script,
b32 isInitialCall )

Rotates the model the given amount on the selected axis.

Parameters
modelID
angle
xWhether to rotate on X axis
yWhether to rotate on Y axis
zWhether to rotate on Z axis

◆ ScaleModel()

ApiStatus ScaleModel ( Evt * script,
b32 isInitialCall )

Scales the model the given amount along the selected axis.

Parameters
modelID
angle
xWhether to scale on X axis
yWhether to scale on Y axis
zWhether to scale on Z axis

◆ GetModelIndex()

ApiStatus GetModelIndex ( Evt * script,
b32 isInitialCall )

Returns the given model's index.

Parameters
modelID@vars {out | LVar0 | Returns the index of the model. }

◆ InvalidateModelTransform()

ApiStatus InvalidateModelTransform ( Evt * script,
b32 isInitialCall )

◆ CloneModel()

ApiStatus CloneModel ( Evt * script,
b32 isInitialCall )

Clones the given model.

Parameters
modelID
newModelID

◆ GetModelCenter()

ApiStatus GetModelCenter ( Evt * script,
b32 isInitialCall )

Returns the center of the given model.

Parameters
modelID@vars {out | LVar0 int posX | Returns X coordinate of the given model. } @vars {out | LVar1 int posY | Returns Y coordinate of the given model. } @vars {out | LVar2 int posZ | Returns Z coordinate of the given model. }

◆ SetTexPanner()

ApiStatus SetTexPanner ( Evt * script,
b32 isInitialCall )

Sets a model's pannerID and sets the texture pan flag.

Parameters
modelID
panID

◆ SetCustomGfxEnabled()

ApiStatus SetCustomGfxEnabled ( Evt * script,
b32 isInitialCall )
Parameters
modelID
bool

◆ SetModelCustomGfx()

ApiStatus SetModelCustomGfx ( Evt * script,
b32 isInitialCall )
Parameters
modelID
customGfxIndex-1 for no change
fogType-1 for no change

◆ SetModelTexVariant()

ApiStatus SetModelTexVariant ( Evt * script,
b32 isInitialCall )

◆ EnableTexPanning()

ApiStatus EnableTexPanning ( Evt * script,
b32 isInitialCall )

Enables or disables texture panning on the given model.

Parameters
modelID
bool

◆ EnableModel()

ApiStatus EnableModel ( Evt * script,
b32 isInitialCall )

Enables or disables the given model.

Parameters
modelID
bool

◆ SetGroupVisibility()

ApiStatus SetGroupVisibility ( Evt * script,
b32 isInitialCall )

Enables or disables the given group.

Parameters
modelID
mode"0 = disabled, 1 = enabled, 2 = all others disabled, 3 = all others enabled"

◆ SetTexPanOffset()

ApiStatus SetTexPanOffset ( Evt * script,
b32 isInitialCall )

Sets offsets for texture panners.

Parameters
panID
tile"0 = main | 1 = aux"
offsetU
offsetV

◆ SetCustomGfx()

ApiStatus SetCustomGfx ( Evt * script,
b32 isInitialCall )

◆ SetCustomGfxBuilders()

ApiStatus SetCustomGfxBuilders ( Evt * script,
b32 isInitialCall )

◆ SetModelFlags()

ApiStatus SetModelFlags ( Evt * script,
b32 isInitialCall )

Sets flags for models.

Parameters
modelID
flagbits
bool1 = set, 0 = clear

◆ MakeTransformGroup()

ApiStatus MakeTransformGroup ( Evt * script,
b32 isInitialCall )
Parameters
modelID

◆ SetTransformGroupEnabled()

ApiStatus SetTransformGroupEnabled ( Evt * script,
b32 isInitialCall )
Parameters
modelID
bool

◆ TranslateGroup()

ApiStatus TranslateGroup ( Evt * script,
b32 isInitialCall )

Translates the given group's position.

Parameters
modelID
x
y
z

◆ RotateGroup()

ApiStatus RotateGroup ( Evt * script,
b32 isInitialCall )

Rotates the given group's position.

Parameters
modelID
angle
xWhether to rotate on X axis
yWhether to rotate on Y axis
zWhether to rotate on Z axis

◆ ScaleGroup()

ApiStatus ScaleGroup ( Evt * script,
b32 isInitialCall )

Scales the given group's position.

Parameters
modelID
angle
xWhether to scale on X axis
yWhether to scale on Y axis
zWhether to scale on Z axis

◆ GetTransformGroup()

ApiStatus GetTransformGroup ( Evt * script,
b32 isInitialCall )

◆ EnableGroup()

ApiStatus EnableGroup ( Evt * script,
b32 isInitialCall )

Enables or disables the given group.

Parameters
modelID
bool

◆ MakeLocalVertexCopy()

ApiStatus MakeLocalVertexCopy ( Evt * script,
b32 isInitialCall )
Parameters
copyIndex
modelID
bool"0 = clear, 1 = get"

◆ ModifyColliderFlags()

ApiStatus ModifyColliderFlags ( Evt * script,
b32 isInitialCall )

Set flags for collider + siblings + children.

Parameters
mode0 = set bits, 1 = clear bits, 2 = replace, 3 = replace lowest 16 bits
colliderID
flags

◆ ResetFromLava()

ApiStatus ResetFromLava ( Evt * script,
b32 isInitialCall )

◆ GetColliderCenter()

ApiStatus GetColliderCenter ( Evt * script,
b32 isInitialCall )

Returns the center of the given collider.

Parameters
modelID@vars {out | LVar0 int posX | Returns X coordinate of the given collider. } @vars {out | LVar1 int posY | Returns Y coordinate of the given collider. } @vars {out | LVar2 int posZ | Returns Z coordinate of the given collider. }

◆ ParentColliderToModel()

ApiStatus ParentColliderToModel ( Evt * script,
b32 isInitialCall )

Associates a model with a collider and applies the model's transformation.

Parameters
colliderID
modelID

◆ UpdateColliderTransform()

ApiStatus UpdateColliderTransform ( Evt * script,
b32 isInitialCall )

Applies transformation from parent model.

Parameters
colliderID

◆ SetZoneEnabled()

ApiStatus SetZoneEnabled ( Evt * script,
b32 isInitialCall )

Enables or disables the given zone.

Parameters
zoneID
bool

◆ GotoMap()

ApiStatus GotoMap ( Evt * script,
b32 isInitialCall )

Makes the player go to the given map and at the given entrance.

Parameters
mapName
entryID

◆ GotoMapSpecial()

ApiStatus GotoMapSpecial ( Evt * script,
b32 isInitialCall )

Makes the player go to the given map and at the given entrance with a unique fadeout effect.

Parameters
mapName
entryID
transitionType
See also
ScreenTransitions in enums.h

◆ GotoMapByID()

ApiStatus GotoMapByID ( Evt * script,
b32 isInitialCall )
Parameters
areaID
mapID
entryID

◆ GetEntryID()

ApiStatus GetEntryID ( Evt * script,
b32 isInitialCall )

Returns the entryID of the Entry that the player entered the map from.

@vars {out | LVar0 int entryID }

◆ GetMapID()

ApiStatus GetMapID ( Evt * script,
b32 isInitialCall )

Returns the mapID of the map the player is currently on.

@vars {out | LVar0 int mapID }

◆ GetLoadType()

ApiStatus GetLoadType ( Evt * script,
b32 isInitialCall )

Returns the way the player loaded into the map, commonly used by to put the player in the correct position for save blocks.

@vars {out | LVar0 int LoadType }

◆ SetRenderMode()

ApiStatus SetRenderMode ( Evt * script,
b32 isInitialCall )
Parameters
modelID
renderMode

◆ PlaySoundAtModel()

ApiStatus PlaySoundAtModel ( Evt * script,
b32 isInitialCall )

Plays the given sound at the given model.

Parameters
modelID
soundID
SoundSpatializationFlags

◆ PlaySoundAtCollider()

ApiStatus PlaySoundAtCollider ( Evt * script,
b32 isInitialCall )

Plays the given sound at the given collider.

Parameters
colliderID
soundID
SoundSpatializationFlags

◆ InitAnimatedModels()

ApiStatus InitAnimatedModels ( Evt * script,
b32 isInitialCall )

◆ LoadAnimatedModel()

ApiStatus LoadAnimatedModel ( Evt * script,
b32 isInitialCall )

◆ LoadAnimatedMesh()

ApiStatus LoadAnimatedMesh ( Evt * script,
b32 isInitialCall )

◆ PlayModelAnimation()

ApiStatus PlayModelAnimation ( Evt * script,
b32 isInitialCall )

◆ PlayModelAnimationStartingFrom()

ApiStatus PlayModelAnimationStartingFrom ( Evt * script,
b32 isInitialCall )

◆ ChangeModelAnimation()

ApiStatus ChangeModelAnimation ( Evt * script,
b32 isInitialCall )

◆ SetAnimatedModelRootPosition()

ApiStatus SetAnimatedModelRootPosition ( Evt * script,
b32 isInitialCall )

◆ GetAnimatedModelRootPosition()

ApiStatus GetAnimatedModelRootPosition ( Evt * script,
b32 isInitialCall )

◆ AddAnimatedModelRootPosition()

ApiStatus AddAnimatedModelRootPosition ( Evt * script,
b32 isInitialCall )

◆ SetAnimatedModelRootRotation()

ApiStatus SetAnimatedModelRootRotation ( Evt * script,
b32 isInitialCall )

◆ SetAnimatedModelRootScale()

ApiStatus SetAnimatedModelRootScale ( Evt * script,
b32 isInitialCall )

◆ SetAnimatedModelRenderMode()

ApiStatus SetAnimatedModelRenderMode ( Evt * script,
b32 isInitialCall )

◆ DeleteAnimatedModel()

ApiStatus DeleteAnimatedModel ( Evt * script,
b32 isInitialCall )

◆ SetAnimatorFlags()

ApiStatus SetAnimatorFlags ( Evt * script,
b32 isInitialCall )

◆ GetAnimatedNodePosition()

ApiStatus GetAnimatedNodePosition ( Evt * script,
b32 isInitialCall )

◆ GetAnimatedNodeRotation()

ApiStatus GetAnimatedNodeRotation ( Evt * script,
b32 isInitialCall )

◆ GetAnimatedPositionByTreeIndex()

ApiStatus GetAnimatedPositionByTreeIndex ( Evt * script,
b32 isInitialCall )

◆ GetAnimatedRotationByTreeIndex()

ApiStatus GetAnimatedRotationByTreeIndex ( Evt * script,
b32 isInitialCall )

◆ SetAnimatedNodeFlags()

ApiStatus SetAnimatedNodeFlags ( Evt * script,
b32 isInitialCall )

◆ SetCamEnabled()

ApiStatus SetCamEnabled ( Evt * script,
b32 isInitialCall )

◆ SetCamNoDraw()

ApiStatus SetCamNoDraw ( Evt * script,
b32 isInitialCall )

◆ SetCamPerspective()

ApiStatus SetCamPerspective ( Evt * script,
b32 isInitialCall )

◆ SetCamUpdateMode()

ApiStatus SetCamUpdateMode ( Evt * script,
b32 isInitialCall )

◆ GrabCamera()

ApiStatus GrabCamera ( Evt * script,
b32 isInitialCall )

◆ GetInterpCamDist()

ApiStatus GetInterpCamDist ( Evt * script,
b32 isInitialCall )

◆ GetInterpCamOffsetY()

ApiStatus GetInterpCamOffsetY ( Evt * script,
b32 isInitialCall )

◆ SetInterpCamDist()

ApiStatus SetInterpCamDist ( Evt * script,
b32 isInitialCall )

◆ SetInterpCamOffsetY()

ApiStatus SetInterpCamOffsetY ( Evt * script,
b32 isInitialCall )

◆ SetInterpCamParams()

ApiStatus SetInterpCamParams ( Evt * script,
b32 isInitialCall )

◆ SetNoInterpCamParams()

ApiStatus SetNoInterpCamParams ( Evt * script,
b32 isInitialCall )

◆ SetCamViewport()

ApiStatus SetCamViewport ( Evt * script,
b32 isInitialCall )

◆ SetCamBGColor()

ApiStatus SetCamBGColor ( Evt * script,
b32 isInitialCall )

◆ SetCamLookTarget()

ApiStatus SetCamLookTarget ( Evt * script,
b32 isInitialCall )

◆ SetCamTarget()

ApiStatus SetCamTarget ( Evt * script,
b32 isInitialCall )

◆ InterpCamTargetPos()

ApiStatus InterpCamTargetPos ( Evt * script,
b32 isInitialCall )

◆ ShakeCam()

ApiStatus ShakeCam ( Evt * script,
b32 isInitialCall )

◆ SetCamLeadPlayer()

ApiStatus SetCamLeadPlayer ( Evt * script,
b32 isInitialCall )

◆ EnableCameraFollowPlayerY()

ApiStatus EnableCameraFollowPlayerY ( Evt * script,
b32 isInitialCall )

◆ DisableCameraFollowPlayerY()

ApiStatus DisableCameraFollowPlayerY ( Evt * script,
b32 isInitialCall )

◆ EnableCameraLeadingPlayer()

ApiStatus EnableCameraLeadingPlayer ( Evt * script,
b32 isInitialCall )

◆ DisableCameraLeadingPlayer()

ApiStatus DisableCameraLeadingPlayer ( Evt * script,
b32 isInitialCall )

◆ SetCamLeadScale()

ApiStatus SetCamLeadScale ( Evt * script,
b32 isInitialCall )

◆ PanToTarget()

ApiStatus PanToTarget ( Evt * script,
b32 isInitialCall )

◆ UseSettingsFrom()

ApiStatus UseSettingsFrom ( Evt * script,
b32 isInitialCall )

◆ LoadSettings()

ApiStatus LoadSettings ( Evt * script,
b32 isInitialCall )

◆ SetCamType()

ApiStatus SetCamType ( Evt * script,
b32 isInitialCall )

◆ SetCamPitch()

ApiStatus SetCamPitch ( Evt * script,
b32 isInitialCall )

◆ SetCamDistance()

ApiStatus SetCamDistance ( Evt * script,
b32 isInitialCall )

◆ SetCamPosA()

ApiStatus SetCamPosA ( Evt * script,
b32 isInitialCall )

◆ SetCamPosB()

ApiStatus SetCamPosB ( Evt * script,
b32 isInitialCall )

◆ SetCamPosC()

ApiStatus SetCamPosC ( Evt * script,
b32 isInitialCall )

◆ SetPanTarget()

ApiStatus SetPanTarget ( Evt * script,
b32 isInitialCall )

◆ SetCamSpeed()

ApiStatus SetCamSpeed ( Evt * script,
b32 isInitialCall )

◆ GetCamType()

ApiStatus GetCamType ( Evt * script,
b32 isInitialCall )

◆ GetCamPitch()

ApiStatus GetCamPitch ( Evt * script,
b32 isInitialCall )

◆ GetCamDistance()

ApiStatus GetCamDistance ( Evt * script,
b32 isInitialCall )

◆ GetCamPosA()

ApiStatus GetCamPosA ( Evt * script,
b32 isInitialCall )

◆ GetCamPosB()

ApiStatus GetCamPosB ( Evt * script,
b32 isInitialCall )

◆ GetCamPosC()

ApiStatus GetCamPosC ( Evt * script,
b32 isInitialCall )

◆ GetCamPosition()

ApiStatus GetCamPosition ( Evt * script,
b32 isInitialCall )

◆ WaitForCam()

ApiStatus WaitForCam ( Evt * script,
b32 isInitialCall )

◆ SetCamProperties()

ApiStatus SetCamProperties ( Evt * script,
b32 isInitialCall )

◆ AdjustCam()

ApiStatus AdjustCam ( Evt * script,
b32 isInitialCall )

◆ ResetCam()

ApiStatus ResetCam ( Evt * script,
b32 isInitialCall )

◆ CreateNpc()

ApiStatus CreateNpc ( Evt * script,
b32 isInitialCall )

◆ DeleteNpc()

ApiStatus DeleteNpc ( Evt * script,
b32 isInitialCall )

◆ GetNpcPointer()

ApiStatus GetNpcPointer ( Evt * script,
b32 isInitialCall )

◆ SetNpcPos()

ApiStatus SetNpcPos ( Evt * script,
b32 isInitialCall )

◆ SetNpcRotation()

ApiStatus SetNpcRotation ( Evt * script,
b32 isInitialCall )

◆ SetNpcRotationPivot()

ApiStatus SetNpcRotationPivot ( Evt * script,
b32 isInitialCall )

◆ SetNpcScale()

ApiStatus SetNpcScale ( Evt * script,
b32 isInitialCall )

◆ SetNpcCollisionSize()

ApiStatus SetNpcCollisionSize ( Evt * script,
b32 isInitialCall )

◆ SetNpcSpeed()

ApiStatus SetNpcSpeed ( Evt * script,
b32 isInitialCall )

◆ SetNpcJumpscale()

ApiStatus SetNpcJumpscale ( Evt * script,
b32 isInitialCall )

◆ SetNpcAnimation()

ApiStatus SetNpcAnimation ( Evt * script,
b32 isInitialCall )

◆ GetNpcAnimation()

ApiStatus GetNpcAnimation ( Evt * script,
b32 isInitialCall )

◆ SetNpcAnimationSpeed()

ApiStatus SetNpcAnimationSpeed ( Evt * script,
b32 isInitialCall )

◆ NpcMoveTo()

ApiStatus NpcMoveTo ( Evt * script,
b32 isInitialCall )

◆ NpcJump0()

ApiStatus NpcJump0 ( Evt * script,
b32 isInitialCall )

◆ NpcJump1()

ApiStatus NpcJump1 ( Evt * script,
b32 isInitialCall )

◆ NpcFlyTo()

ApiStatus NpcFlyTo ( Evt * script,
b32 isInitialCall )

◆ GetNpcYaw()

ApiStatus GetNpcYaw ( Evt * script,
b32 isInitialCall )

◆ SetNpcYaw()

ApiStatus SetNpcYaw ( Evt * script,
b32 isInitialCall )

◆ InterpNpcYaw()

ApiStatus InterpNpcYaw ( Evt * script,
b32 isInitialCall )

◆ NpcFacePlayer()

ApiStatus NpcFacePlayer ( Evt * script,
b32 isInitialCall )

◆ NpcFaceNpc()

ApiStatus NpcFaceNpc ( Evt * script,
b32 isInitialCall )

◆ SetNpcFlagBits()

ApiStatus SetNpcFlagBits ( Evt * script,
b32 isInitialCall )

◆ GetNpcPos()

ApiStatus GetNpcPos ( Evt * script,
b32 isInitialCall )

◆ SetNpcCollisionChannel()

ApiStatus SetNpcCollisionChannel ( Evt * script,
b32 isInitialCall )

◆ SetNpcSprite()

ApiStatus SetNpcSprite ( Evt * script,
b32 isInitialCall )

◆ EnableNpcShadow()

ApiStatus EnableNpcShadow ( Evt * script,
b32 isInitialCall )

◆ EnableNpcBlur()

ApiStatus EnableNpcBlur ( Evt * script,
b32 isInitialCall )

◆ ClearPartnerMoveHistory()

ApiStatus ClearPartnerMoveHistory ( Evt * script,
b32 isInitialCall )

◆ NpcSetHomePosToCurrent()

ApiStatus NpcSetHomePosToCurrent ( Evt * script,
b32 isInitialCall )

◆ GetPartnerPos()

ApiStatus GetPartnerPos ( Evt * script,
b32 isInitialCall )

◆ DisablePartnerAI()

ApiStatus DisablePartnerAI ( Evt * script,
b32 isInitialCall )

◆ EnablePartnerAI()

ApiStatus EnablePartnerAI ( Evt * script,
b32 isInitialCall )

◆ func_802CF54C()

ApiStatus func_802CF54C ( Evt * script,
b32 isInitialCall )

◆ func_802CF56C()

ApiStatus func_802CF56C ( Evt * script,
b32 isInitialCall )

◆ BringPartnerOut()

ApiStatus BringPartnerOut ( Evt * script,
b32 isInitialCall )

◆ PutPartnerAway()

ApiStatus PutPartnerAway ( Evt * script,
b32 isInitialCall )

◆ GetCurrentPartnerID()

ApiStatus GetCurrentPartnerID ( Evt * script,
b32 isInitialCall )

◆ PartnerCanUseAbility()

ApiStatus PartnerCanUseAbility ( Evt * script,
b32 isInitialCall )

◆ PartnerIsFlying()

ApiStatus PartnerIsFlying ( Evt * script,
b32 isInitialCall )

◆ SetNpcImgFXParams()

ApiStatus SetNpcImgFXParams ( Evt * script,
b32 isInitialCall )

◆ SetNpcImgFXFlags()

ApiStatus SetNpcImgFXFlags ( Evt * script,
b32 isInitialCall )

◆ SetNpcPaletteSwapMode()

ApiStatus SetNpcPaletteSwapMode ( Evt * script,
b32 isInitialCall )

◆ SetNpcPaletteSwapLower()

ApiStatus SetNpcPaletteSwapLower ( Evt * script,
b32 isInitialCall )

◆ SetNpcPaletteSwapping()

ApiStatus SetNpcPaletteSwapping ( Evt * script,
b32 isInitialCall )

◆ SetNpcDecoration()

ApiStatus SetNpcDecoration ( Evt * script,
b32 isInitialCall )

◆ PlaySoundAtNpc()

ApiStatus PlaySoundAtNpc ( Evt * script,
b32 isInitialCall )

◆ SetNpcRenderMode()

ApiStatus SetNpcRenderMode ( Evt * script,
b32 isInitialCall )

◆ SetEncounterStatusFlags()

ApiStatus SetEncounterStatusFlags ( Evt * script,
b32 isInitialCall )

◆ IsStartingConversation()

ApiStatus IsStartingConversation ( Evt * script,
b32 isInitialCall )

◆ LoadDemoBattle()

ApiStatus LoadDemoBattle ( Evt * script,
b32 isInitialCall )

◆ func_80044290()

ApiStatus func_80044290 ( Evt * script,
b32 isInitialCall )

◆ MakeNpcs()

ApiStatus MakeNpcs ( Evt * script,
b32 isInitialCall )

◆ RemoveNpc()

ApiStatus RemoveNpc ( Evt * script,
b32 isInitialCall )

◆ RemoveEncounter()

ApiStatus RemoveEncounter ( Evt * script,
b32 isInitialCall )

◆ GetBattleOutcome()

ApiStatus GetBattleOutcome ( Evt * script,
b32 isInitialCall )

◆ func_800445A8()

ApiStatus func_800445A8 ( Evt * script,
b32 isInitialCall )

◆ func_800445D4()

ApiStatus func_800445D4 ( Evt * script,
b32 isInitialCall )

◆ GetOwnerEncounterTrigger()

ApiStatus GetOwnerEncounterTrigger ( Evt * script,
b32 isInitialCall )

◆ DoNpcDefeat()

ApiStatus DoNpcDefeat ( Evt * script,
b32 isInitialCall )

◆ StartBattle()

ApiStatus StartBattle ( Evt * script,
b32 isInitialCall )

◆ StartBattleWith()

ApiStatus StartBattleWith ( Evt * script,
b32 isInitialCall )

◆ StartBossBattle()

ApiStatus StartBossBattle ( Evt * script,
b32 isInitialCall )

◆ SetBattleMusic()

ApiStatus SetBattleMusic ( Evt * script,
b32 isInitialCall )

◆ BindNpcAI()

ApiStatus BindNpcAI ( Evt * script,
b32 isInitialCall )

◆ BindNpcIdle()

ApiStatus BindNpcIdle ( Evt * script,
b32 isInitialCall )

◆ RestartNpcAI()

ApiStatus RestartNpcAI ( Evt * script,
b32 isInitialCall )

◆ EnableNpcAI()

ApiStatus EnableNpcAI ( Evt * script,
b32 isInitialCall )

◆ SetNpcAux()

ApiStatus SetNpcAux ( Evt * script,
b32 isInitialCall )

◆ BindNpcAux()

ApiStatus BindNpcAux ( Evt * script,
b32 isInitialCall )

◆ RestartNpcAux()

ApiStatus RestartNpcAux ( Evt * script,
b32 isInitialCall )

◆ EnableNpcAux()

ApiStatus EnableNpcAux ( Evt * script,
b32 isInitialCall )

◆ BindNpcInteract()

ApiStatus BindNpcInteract ( Evt * script,
b32 isInitialCall )

◆ BindNpcHit()

ApiStatus BindNpcHit ( Evt * script,
b32 isInitialCall )

◆ BindNpcDefeat()

ApiStatus BindNpcDefeat ( Evt * script,
b32 isInitialCall )

◆ SetSelfVar()

ApiStatus SetSelfVar ( Evt * script,
b32 isInitialCall )

◆ GetSelfVar()

ApiStatus GetSelfVar ( Evt * script,
b32 isInitialCall )

◆ SetNpcVar()

ApiStatus SetNpcVar ( Evt * script,
b32 isInitialCall )

◆ GetNpcVar()

ApiStatus GetNpcVar ( Evt * script,
b32 isInitialCall )

◆ SetSelfRotation()

ApiStatus SetSelfRotation ( Evt * script,
b32 isInitialCall )

◆ SetSelfEnemyFlags()

ApiStatus SetSelfEnemyFlags ( Evt * script,
b32 isInitialCall )

◆ SetSelfEnemyFlagBits()

ApiStatus SetSelfEnemyFlagBits ( Evt * script,
b32 isInitialCall )

◆ SelfEnemyOverrideSyncPos()

ApiStatus SelfEnemyOverrideSyncPos ( Evt * script,
b32 isInitialCall )

◆ GetSelfNpcID()

ApiStatus GetSelfNpcID ( Evt * script,
b32 isInitialCall )

◆ ClearDefeatedEnemies()

ApiStatus ClearDefeatedEnemies ( Evt * script,
b32 isInitialCall )

◆ SetEnemyFlagBits()

ApiStatus SetEnemyFlagBits ( Evt * script,
b32 isInitialCall )

◆ func_8004572C()

ApiStatus func_8004572C ( Evt * script,
b32 isInitialCall )

◆ GetSelfAnimationFromTable()

ApiStatus GetSelfAnimationFromTable ( Evt * script,
b32 isInitialCall )

◆ func_80045798()

ApiStatus func_80045798 ( Evt * script,
b32 isInitialCall )

◆ SetOwnerInstigatorValue()

ApiStatus SetOwnerInstigatorValue ( Evt * script,
b32 isInitialCall )

◆ SetBattleAsScripted()

ApiStatus SetBattleAsScripted ( Evt * script,
b32 isInitialCall )

◆ GetEncounterTriggerHitTier()

ApiStatus GetEncounterTriggerHitTier ( Evt * script,
b32 isInitialCall )

◆ func_80045838()

ApiStatus func_80045838 ( Evt * script,
b32 isInitialCall )

◆ func_800458CC()

ApiStatus func_800458CC ( Evt * script,
b32 isInitialCall )

◆ OnPlayerFled()

ApiStatus OnPlayerFled ( Evt * script,
b32 isInitialCall )

◆ SetTattleMessage()

ApiStatus SetTattleMessage ( Evt * script,
b32 isInitialCall )

◆ ShowMerleeCoinMessage()

ApiStatus ShowMerleeCoinMessage ( Evt * script,
b32 isInitialCall )

◆ ShowMerleeRanOutMessage()

ApiStatus ShowMerleeRanOutMessage ( Evt * script,
b32 isInitialCall )

◆ FadeInMerlee()

ApiStatus FadeInMerlee ( Evt * script,
b32 isInitialCall )

◆ FadeOutMerlee()

ApiStatus FadeOutMerlee ( Evt * script,
b32 isInitialCall )

◆ MerleeUpdateFX()

ApiStatus MerleeUpdateFX ( Evt * script,
b32 isInitialCall )

◆ MerleeStopFX()

ApiStatus MerleeStopFX ( Evt * script,
b32 isInitialCall )

◆ PlayMerleeGatherFX()

ApiStatus PlayMerleeGatherFX ( Evt * script,
b32 isInitialCall )

◆ PlayMerleeOrbFX()

ApiStatus PlayMerleeOrbFX ( Evt * script,
b32 isInitialCall )

◆ FadeBackgroundDarken()

ApiStatus FadeBackgroundDarken ( Evt * script,
b32 isInitialCall )

◆ FadeBackgroundLighten()

ApiStatus FadeBackgroundLighten ( Evt * script,
b32 isInitialCall )

◆ GetCamLookAtObjVector()

ApiStatus GetCamLookAtObjVector ( Evt * script,
b32 isInitialCall )

◆ HasMerleeCasts()

ApiStatus HasMerleeCasts ( Evt * script,
b32 isInitialCall )

◆ OnDefeatEnemy()

ApiStatus OnDefeatEnemy ( Evt * script,
b32 isInitialCall )

◆ OnFleeBattleDrops()

ApiStatus OnFleeBattleDrops ( Evt * script,
b32 isInitialCall )

◆ SpeakToPlayer()

ApiStatus SpeakToPlayer ( Evt * script,
b32 isInitialCall )

◆ EndSpeech()

ApiStatus EndSpeech ( Evt * script,
b32 isInitialCall )

◆ ContinueSpeech()

ApiStatus ContinueSpeech ( Evt * script,
b32 isInitialCall )

◆ SpeakToNpc()

ApiStatus SpeakToNpc ( Evt * script,
b32 isInitialCall )

◆ ShowMessageAtScreenPos()

ApiStatus ShowMessageAtScreenPos ( Evt * script,
b32 isInitialCall )

◆ ShowMessageAtWorldPos()

ApiStatus ShowMessageAtWorldPos ( Evt * script,
b32 isInitialCall )

◆ CloseMessage()

ApiStatus CloseMessage ( Evt * script,
b32 isInitialCall )

◆ SwitchMessage()

ApiStatus SwitchMessage ( Evt * script,
b32 isInitialCall )

◆ ShowChoice()

ApiStatus ShowChoice ( Evt * script,
b32 isInitialCall )

◆ CloseChoice()

ApiStatus CloseChoice ( Evt * script,
b32 isInitialCall )

◆ CancelMessage()

ApiStatus CancelMessage ( Evt * script,
b32 isInitialCall )

◆ SetMessageImages()

ApiStatus SetMessageImages ( Evt * script,
b32 isInitialCall )

◆ func_802D0C94()

ApiStatus func_802D0C94 ( Evt * script,
b32 isInitialCall )

◆ SetMessageText()

ApiStatus SetMessageText ( Evt * script,
b32 isInitialCall )

◆ SetMessageValue()

ApiStatus SetMessageValue ( Evt * script,
b32 isInitialCall )

◆ HidePlayerShadow()

ApiStatus HidePlayerShadow ( Evt * script,
b32 isInitialCall )

Hides the player's shadow if hide is TRUE, shows it if FALSE.

Parameters
hideWhether to hide the player's shadow.
See also
disable_player_shadow, enable_player_shadow

◆ DisablePlayerPhysics()

ApiStatus DisablePlayerPhysics ( Evt * script,
b32 isInitialCall )

Disables player physics if disable is TRUE, enables it if FALSE.

Parameters
disableWhether to disable player physics.
See also
disable_player_static_collisions, enable_player_static_collisions

◆ DisablePlayerInput()

ApiStatus DisablePlayerInput ( Evt * script,
b32 isInitialCall )

Disables player and partner input, and disables the status menu.

Parameters
disableWhether to disable player input.

◆ SetPlayerPos()

ApiStatus SetPlayerPos ( Evt * script,
b32 isInitialCall )

Sets the player position.

Parameters
x
y-1000 is used for hiding the player.
z
See also
GetPlayerPos

◆ SetPlayerCollisionSize()

ApiStatus SetPlayerCollisionSize ( Evt * script,
b32 isInitialCall )

Overrides the player collision size.

Parameters
height
diameter

◆ SetPlayerSpeed()

ApiStatus SetPlayerSpeed ( Evt * script,
b32 isInitialCall )

Sets the move speed of the player for subequent PlayerMoveTo calls.

Parameters
speedFloat multiplier.
See also
SetNpcSpeed

◆ SetPlayerJumpscale()

ApiStatus SetPlayerJumpscale ( Evt * script,
b32 isInitialCall )

◆ SetPlayerAnimation()

ApiStatus SetPlayerAnimation ( Evt * script,
b32 isInitialCall )

◆ SetPlayerActionState()

ApiStatus SetPlayerActionState ( Evt * script,
b32 isInitialCall )

◆ SetPlayerAnimationSpeed()

ApiStatus SetPlayerAnimationSpeed ( Evt * script,
b32 isInitialCall )

◆ PlayerMoveTo()

ApiStatus PlayerMoveTo ( Evt * script,
b32 isInitialCall )

◆ func_802D1270()

ApiStatus func_802D1270 ( Evt * script,
b32 isInitialCall )

◆ func_802D1380()

ApiStatus func_802D1380 ( Evt * script,
b32 isInitialCall )

◆ PlayerJump()

ApiStatus PlayerJump ( Evt * script,
b32 isInitialCall )

◆ PlayerJump1()

ApiStatus PlayerJump1 ( Evt * script,
b32 isInitialCall )

◆ PlayerJump2()

ApiStatus PlayerJump2 ( Evt * script,
b32 isInitialCall )

◆ InterpPlayerYaw()

ApiStatus InterpPlayerYaw ( Evt * script,
b32 isInitialCall )

◆ PlayerFaceNpc()

ApiStatus PlayerFaceNpc ( Evt * script,
b32 isInitialCall )

◆ GetPlayerTargetYaw()

ApiStatus GetPlayerTargetYaw ( Evt * script,
b32 isInitialCall )

◆ SetPlayerFlagBits()

ApiStatus SetPlayerFlagBits ( Evt * script,
b32 isInitialCall )

◆ GetPlayerActionState()

ApiStatus GetPlayerActionState ( Evt * script,
b32 isInitialCall )

◆ GetPlayerPos()

ApiStatus GetPlayerPos ( Evt * script,
b32 isInitialCall )

◆ GetPlayerAnimation()

ApiStatus GetPlayerAnimation ( Evt * script,
b32 isInitialCall )

◆ FullyRestoreHPandFP()

ApiStatus FullyRestoreHPandFP ( Evt * script,
b32 isInitialCall )

◆ FullyRestoreSP()

ApiStatus FullyRestoreSP ( Evt * script,
b32 isInitialCall )

◆ EnablePartner()

ApiStatus EnablePartner ( Evt * script,
b32 isInitialCall )

Enables switching to the given partner.

Parameters
partnerIDThe partner id to enable.
See also
DisablePartner

◆ DisablePartner()

ApiStatus DisablePartner ( Evt * script,
b32 isInitialCall )

Disables switching to the given partner.

Parameters
partnerIDThe partner id to disable.
See also
EnablePartner

◆ UseEntryHeading()

ApiStatus UseEntryHeading ( Evt * script,
b32 isInitialCall )

◆ func_802D2148()

ApiStatus func_802D2148 ( Evt * script,
b32 isInitialCall )

◆ UseExitHeading()

ApiStatus UseExitHeading ( Evt * script,
b32 isInitialCall )

◆ WaitForPlayerTouchingFloor()

ApiStatus WaitForPlayerTouchingFloor ( Evt * script,
b32 isInitialCall )

◆ func_802D2484()

ApiStatus func_802D2484 ( Evt * script,
b32 isInitialCall )

◆ IsPlayerOnValidFloor()

ApiStatus IsPlayerOnValidFloor ( Evt * script,
b32 isInitialCall )

◆ WaitForPlayerMoveToComplete()

ApiStatus WaitForPlayerMoveToComplete ( Evt * script,
b32 isInitialCall )

◆ WaitForPlayerInputEnabled()

ApiStatus WaitForPlayerInputEnabled ( Evt * script,
b32 isInitialCall )

◆ UpdatePlayerImgFX()

ApiStatus UpdatePlayerImgFX ( Evt * script,
b32 isInitialCall )

◆ SetPlayerImgFXFlags()

ApiStatus SetPlayerImgFXFlags ( Evt * script,
b32 isInitialCall )

◆ FacePlayerTowardPoint()

ApiStatus FacePlayerTowardPoint ( Evt * script,
b32 isInitialCall )

◆ DisablePulseStone()

ApiStatus DisablePulseStone ( Evt * script,
b32 isInitialCall )

◆ GetPartnerInUse()

ApiStatus GetPartnerInUse ( Evt * script,
b32 isInitialCall )

◆ ForceUsePartner()

ApiStatus ForceUsePartner ( Evt * script,
b32 isInitialCall )

◆ InterruptUsePartner()

ApiStatus InterruptUsePartner ( Evt * script,
b32 isInitialCall )

◆ Disable8bitMario()

ApiStatus Disable8bitMario ( Evt * script,
b32 isInitialCall )

Enables and disables the 8-bit Mario easter egg.

Parameters
disableDisable the easter egg if TRUE, enable it if FALSE.

Whilst active, the player uses a retro sprite, and the following actions are disabled:

  • Spin dash
  • Hammer
  • Spin jump and tornado jump
  • Menus
  • Partner usage and partner switching
See also
PA_FLAG_8BIT_MARIO

◆ func_802D2C14()

ApiStatus func_802D2C14 ( Evt * script,
b32 isInitialCall )

◆ SetPlayerPushVelocity()

ApiStatus SetPlayerPushVelocity ( Evt * script,
b32 isInitialCall )

◆ PlaySoundAtPlayer()

ApiStatus PlaySoundAtPlayer ( Evt * script,
b32 isInitialCall )

◆ MakeLerp()

ApiStatus MakeLerp ( Evt * script,
b32 isInitialCall )

◆ UpdateLerp()

ApiStatus UpdateLerp ( Evt * script,
b32 isInitialCall )

◆ RandInt()

ApiStatus RandInt ( Evt * script,
b32 isInitialCall )

◆ GetAngleBetweenNPCs()

ApiStatus GetAngleBetweenNPCs ( Evt * script,
b32 isInitialCall )

◆ GetAngleToNPC()

ApiStatus GetAngleToNPC ( Evt * script,
b32 isInitialCall )

◆ GetAngleToPlayer()

ApiStatus GetAngleToPlayer ( Evt * script,
b32 isInitialCall )

◆ AwaitPlayerApproach()

ApiStatus AwaitPlayerApproach ( Evt * script,
b32 isInitialCall )

◆ IsPlayerWithin()

ApiStatus IsPlayerWithin ( Evt * script,
b32 isInitialCall )

◆ AwaitPlayerLeave()

ApiStatus AwaitPlayerLeave ( Evt * script,
b32 isInitialCall )

◆ AddVectorPolar()

ApiStatus AddVectorPolar ( Evt * script,
b32 isInitialCall )

◆ func_802D4BDC()

ApiStatus func_802D4BDC ( Evt * script,
b32 isInitialCall )

◆ func_802D4C4C()

ApiStatus func_802D4C4C ( Evt * script,
b32 isInitialCall )

◆ func_802D4CC4()

ApiStatus func_802D4CC4 ( Evt * script,
b32 isInitialCall )

◆ func_802D4D14()

ApiStatus func_802D4D14 ( Evt * script,
b32 isInitialCall )

◆ func_802D4D88()

ApiStatus func_802D4D88 ( Evt * script,
b32 isInitialCall )

◆ LoadPath()

ApiStatus LoadPath ( Evt * script,
b32 isInitialCall )
See also
GetNextPathPos

Referenced by make_vine_interpolation().

◆ GetNextPathPos()

ApiStatus GetNextPathPos ( Evt * script,
b32 isInitialCall )
See also
LoadPath

Referenced by make_vine_interpolation().

◆ GetDist2D()

ApiStatus GetDist2D ( Evt * script,
b32 isInitialCall )

◆ SetTimeFreezeMode()

ApiStatus SetTimeFreezeMode ( Evt * script,
b32 isInitialCall )

◆ ModifyGlobalOverrideFlags()

ApiStatus ModifyGlobalOverrideFlags ( Evt * script,
b32 isInitialCall )

◆ SetValueByRef()

ApiStatus SetValueByRef ( Evt * script,
b32 isInitialCall )

◆ GetValueByRef()

ApiStatus GetValueByRef ( Evt * script,
b32 isInitialCall )

◆ SetGameMode()

ApiStatus SetGameMode ( Evt * script,
b32 isInitialCall )

◆ ClampAngleInt()

ApiStatus ClampAngleInt ( Evt * script,
b32 isInitialCall )

◆ ClampAngleFloat()

ApiStatus ClampAngleFloat ( Evt * script,
b32 isInitialCall )

◆ EnableWorldStatusBar()

ApiStatus EnableWorldStatusBar ( Evt * script,
b32 isInitialCall )

◆ ShowWorldStatusBar()

ApiStatus ShowWorldStatusBar ( Evt * script,
b32 isInitialCall )

◆ ShowCoinCounter()

ApiStatus ShowCoinCounter ( Evt * script,
b32 isInitialCall )

◆ PollMusicEvents()

ApiStatus PollMusicEvents ( Evt * script,
b32 isInitialCall )

◆ RegisterMusicEvents()

ApiStatus RegisterMusicEvents ( Evt * script,
b32 isInitialCall )

◆ FadeOutMusic()

ApiStatus FadeOutMusic ( Evt * script,
b32 isInitialCall )

◆ SetMusicTrack()

ApiStatus SetMusicTrack ( Evt * script,
b32 isInitialCall )

◆ FadeInMusic()

ApiStatus FadeInMusic ( Evt * script,
b32 isInitialCall )

◆ EnableMusicProximityMix()

ApiStatus EnableMusicProximityMix ( Evt * script,
b32 isInitialCall )

◆ AdjustMusicProximityMix()

ApiStatus AdjustMusicProximityMix ( Evt * script,
b32 isInitialCall )

◆ SetMusicTrackVolumes()

ApiStatus SetMusicTrackVolumes ( Evt * script,
b32 isInitialCall )

◆ PopSong()

ApiStatus PopSong ( Evt * script,
b32 isInitialCall )

◆ PushSong()

ApiStatus PushSong ( Evt * script,
b32 isInitialCall )

◆ PopBattleSong()

ApiStatus PopBattleSong ( Evt * script,
b32 isInitialCall )

◆ PushBattleSong()

ApiStatus PushBattleSong ( Evt * script,
b32 isInitialCall )

◆ SetBattleSong()

ApiStatus SetBattleSong ( Evt * script,
b32 isInitialCall )

◆ ClearAmbientSounds()

ApiStatus ClearAmbientSounds ( Evt * script,
b32 isInitialCall )

◆ PlayAmbientSounds()

ApiStatus PlayAmbientSounds ( Evt * script,
b32 isInitialCall )

◆ PlaySound()

ApiStatus PlaySound ( Evt * script,
b32 isInitialCall )

◆ PlaySoundWithVolume()

ApiStatus PlaySoundWithVolume ( Evt * script,
b32 isInitialCall )

◆ PlaySoundAt()

ApiStatus PlaySoundAt ( Evt * script,
b32 isInitialCall )

◆ StopSound()

ApiStatus StopSound ( Evt * script,
b32 isInitialCall )

◆ StopTrackingSoundPos()

ApiStatus StopTrackingSoundPos ( Evt * script,
b32 isInitialCall )

◆ UseDoorSounds()

ApiStatus UseDoorSounds ( Evt * script,
b32 isInitialCall )

◆ UseRoomDoorSounds()

ApiStatus UseRoomDoorSounds ( Evt * script,
b32 isInitialCall )

◆ PlaySoundAtF()

ApiStatus PlaySoundAtF ( Evt * script,
b32 isInitialCall )

◆ InitVirtualEntityList()

ApiStatus InitVirtualEntityList ( Evt * script,
b32 isInitialCall )

◆ CreateVirtualEntityAt()

ApiStatus CreateVirtualEntityAt ( Evt * script,
b32 isInitialCall )

◆ CreateVirtualEntity()

ApiStatus CreateVirtualEntity ( Evt * script,
b32 isInitialCall )

◆ CreateVirtualEntity_ALT()

ApiStatus CreateVirtualEntity_ALT ( Evt * script,
b32 isInitialCall )

◆ DeleteVirtualEntity()

ApiStatus DeleteVirtualEntity ( Evt * script,
b32 isInitialCall )

◆ SetVirtualEntityRenderCommands()

ApiStatus SetVirtualEntityRenderCommands ( Evt * script,
b32 isInitialCall )

◆ SetVirtualEntityPosition()

ApiStatus SetVirtualEntityPosition ( Evt * script,
b32 isInitialCall )

◆ GetVirtualEntityPosition()

ApiStatus GetVirtualEntityPosition ( Evt * script,
b32 isInitialCall )

◆ SetVirtualEntityRotation()

ApiStatus SetVirtualEntityRotation ( Evt * script,
b32 isInitialCall )

◆ SetVirtualEntityScale()

ApiStatus SetVirtualEntityScale ( Evt * script,
b32 isInitialCall )

◆ SetVirtualEntityMoveSpeed()

ApiStatus SetVirtualEntityMoveSpeed ( Evt * script,
b32 isInitialCall )

◆ SetVirtualEntityJumpGravity()

ApiStatus SetVirtualEntityJumpGravity ( Evt * script,
b32 isInitialCall )

◆ VirtualEntityMoveTo()

ApiStatus VirtualEntityMoveTo ( Evt * script,
b32 isInitialCall )

◆ VirtualEntityJumpTo()

ApiStatus VirtualEntityJumpTo ( Evt * script,
b32 isInitialCall )

◆ VirtualEntityLandJump()

ApiStatus VirtualEntityLandJump ( Evt * script,
b32 isInitialCall )

◆ SetVirtualEntityFlags()

ApiStatus SetVirtualEntityFlags ( Evt * script,
b32 isInitialCall )

◆ SetVirtualEntityFlagBits()

ApiStatus SetVirtualEntityFlagBits ( Evt * script,
b32 isInitialCall )

◆ SetVirtualEntityRenderMode()

ApiStatus SetVirtualEntityRenderMode ( Evt * script,
b32 isInitialCall )

◆ ShowKeyChoicePopup()

ApiStatus ShowKeyChoicePopup ( Evt * script,
b32 isInitialCall )

◆ ShowConsumableChoicePopup()

ApiStatus ShowConsumableChoicePopup ( Evt * script,
b32 isInitialCall )

◆ RemoveKeyItemAt()

ApiStatus RemoveKeyItemAt ( Evt * script,
b32 isInitialCall )

◆ RemoveItemAt()

ApiStatus RemoveItemAt ( Evt * script,
b32 isInitialCall )

◆ CloseChoicePopup()

ApiStatus CloseChoicePopup ( Evt * script,
b32 isInitialCall )

◆ HasItem()

ApiStatus HasItem ( Evt * script,
b32 isInitialCall )

◆ FindItem()

ApiStatus FindItem ( Evt * script,
b32 isInitialCall )

◆ AddItem()

ApiStatus AddItem ( Evt * script,
b32 isInitialCall )

◆ RemoveItem()

ApiStatus RemoveItem ( Evt * script,
b32 isInitialCall )

◆ MakeItemEntity()

ApiStatus MakeItemEntity ( Evt * script,
b32 isInitialCall )

◆ DropItemEntity()

ApiStatus DropItemEntity ( Evt * script,
b32 isInitialCall )

◆ DropResizableItemEntity()

ApiStatus DropResizableItemEntity ( Evt * script,
b32 isInitialCall )

◆ RemoveItemEntity()

ApiStatus RemoveItemEntity ( Evt * script,
b32 isInitialCall )

◆ SetItemPos()

ApiStatus SetItemPos ( Evt * script,
b32 isInitialCall )

◆ SetItemFlags()

ApiStatus SetItemFlags ( Evt * script,
b32 isInitialCall )

◆ SetItemAlpha()

ApiStatus SetItemAlpha ( Evt * script,
b32 isInitialCall )

◆ AddCoin()

ApiStatus AddCoin ( Evt * script,
b32 isInitialCall )

◆ AddStarPoints()

ApiStatus AddStarPoints ( Evt * script,
b32 isInitialCall )

◆ AddStarPieces()

ApiStatus AddStarPieces ( Evt * script,
b32 isInitialCall )

◆ GetItemPower()

ApiStatus GetItemPower ( Evt * script,
b32 isInitialCall )

◆ ShowGotItem()

ApiStatus ShowGotItem ( Evt * script,
b32 isInitialCall )

◆ ShowStartRecoveryShimmer()

ApiStatus ShowStartRecoveryShimmer ( Evt * script,
b32 isInitialCall )

◆ ShowRecoveryShimmer()

ApiStatus ShowRecoveryShimmer ( Evt * script,
b32 isInitialCall )

◆ func_802D7690()

ApiStatus func_802D7690 ( Evt * script,
b32 isInitialCall )

◆ ShowEmote()

ApiStatus ShowEmote ( Evt * script,
b32 isInitialCall )

◆ RemoveEffect()

ApiStatus RemoveEffect ( Evt * script,
b32 isInitialCall )

◆ DismissEffect()

ApiStatus DismissEffect ( Evt * script,
b32 isInitialCall )

◆ DismissItemOutline()

ApiStatus DismissItemOutline ( Evt * script,
b32 isInitialCall )

◆ func_802D7B74()

ApiStatus func_802D7B74 ( Evt * script,
b32 isInitialCall )

◆ InterpMotionBlurParams()

ApiStatus InterpMotionBlurParams ( Evt * script,
b32 isInitialCall )

◆ SetMotionBlurParams()

ApiStatus SetMotionBlurParams ( Evt * script,
b32 isInitialCall )

◆ ShowSweat()

ApiStatus ShowSweat ( Evt * script,
b32 isInitialCall )

◆ ShowSleepBubble()

ApiStatus ShowSleepBubble ( Evt * script,
b32 isInitialCall )

◆ SetSleepBubbleTimeLeft()

ApiStatus SetSleepBubbleTimeLeft ( Evt * script,
b32 isInitialCall )

◆ PlayEffect_impl()

ApiStatus PlayEffect_impl ( Evt * script,
b32 isInitialCall )
See also
PlayEffect

◆ MakeEntity()

ApiStatus MakeEntity ( Evt * script,
b32 isInitialCall )

Creates an entity.

Parameters
blueprintPointer to EntityBlueprint to use.
x
y
z
flagsEntityFlags
...Varargs.
MAKE_ENTITY_ENDTerminates the varargs.
[out ]LVar0 Created entity's ID.

◆ SetEntityCullMode()

ApiStatus SetEntityCullMode ( Evt * script,
b32 isInitialCall )

◆ UseDynamicShadow()

ApiStatus UseDynamicShadow ( Evt * script,
b32 isInitialCall )

◆ AssignScript()

ApiStatus AssignScript ( Evt * script,
b32 isInitialCall )

◆ AssignSwitchFlag()

ApiStatus AssignSwitchFlag ( Evt * script,
b32 isInitialCall )

◆ AssignBlockFlag()

ApiStatus AssignBlockFlag ( Evt * script,
b32 isInitialCall )

◆ AssignChestFlag()

ApiStatus AssignChestFlag ( Evt * script,
b32 isInitialCall )

◆ AssignPanelFlag()

ApiStatus AssignPanelFlag ( Evt * script,
b32 isInitialCall )

◆ AssignCrateFlag()

ApiStatus AssignCrateFlag ( Evt * script,
b32 isInitialCall )

◆ DeleteTrigger()

ApiStatus DeleteTrigger ( Evt * script,
b32 isInitialCall )

Removes a trigger previously bound with BindTrigger.

Parameters
triggerPtr

◆ SetSpriteShading()

ApiStatus SetSpriteShading ( Evt * script,
b32 isInitialCall )

◆ EnableSpriteShading()

ApiStatus EnableSpriteShading ( Evt * script,
b32 isInitialCall )

◆ GetDemoState()

ApiStatus GetDemoState ( Evt * script,
b32 isInitialCall )

◆ DemoPressButton()

ApiStatus DemoPressButton ( Evt * script,
b32 isInitialCall )

◆ DemoReleaseButton()

ApiStatus DemoReleaseButton ( Evt * script,
b32 isInitialCall )

◆ DemoSetButtons()

ApiStatus DemoSetButtons ( Evt * script,
b32 isInitialCall )

◆ DemoJoystickRadial()

ApiStatus DemoJoystickRadial ( Evt * script,
b32 isInitialCall )

◆ DemoJoystickXY()

ApiStatus DemoJoystickXY ( Evt * script,
b32 isInitialCall )

Variable Documentation

◆ EnemyNpcHit

EvtScript EnemyNpcHit
extern

Definition at line 131 of file encounter.c.

131 {
141 Thread
143 IfEq(LVar0, 0)
144 Set(LVarA, 0)
145 Loop(30)
146 Add(LVarA, 40)
148 Wait(1)
149 EndLoop
150 EndIf
154 Return
155 End
156};
@ ENEMY_ANIM_INDEX_HIT
Definition enums.h:3433
@ ENCOUNTER_TRIGGER_JUMP
Definition enums.h:269
@ ENCOUNTER_TRIGGER_HAMMER
Definition enums.h:271
@ ENCOUNTER_TRIGGER_NONE
Definition enums.h:268
@ ENCOUNTER_TRIGGER_PARTNER
Definition enums.h:273
@ ENCOUNTER_TRIGGER_SPIN
Definition enums.h:270
@ NPC_SELF
Definition enums.h:2526
ApiStatus SetNpcRotation(Evt *script, b32 isInitialCall)
ApiStatus GetSelfAnimationFromTable(Evt *script, b32 isInitialCall)
ApiStatus GetOwnerEncounterTrigger(Evt *script, b32 isInitialCall)
ApiStatus func_800458CC(Evt *script, b32 isInitialCall)
#define Switch(LVAR)
Marks the start of a switch statement.
Definition macros.h:311
#define Set(VAR, INT_VALUE)
Sets the given variable to a given value casted to an integer.
Definition macros.h:365
#define CaseEq(RVAR)
Marks the start of a switch case that executes only if LVAR == RVAR. It also marks the end of any pre...
Definition macros.h:319
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
Definition macros.h:213
#define Add(VAR, INT_VALUE)
Definition macros.h:376
#define EndLoop
Marks the end of a loop.
Definition macros.h:248
#define EndCaseGroup
Marks the end of a switch case group (CaseOrEq and/or CaseAndEq), stopping fallthrough.
Definition macros.h:352
#define CaseOrEq(RVAR)
Marks the start of a switch case that executes only if LVAR == RVAR.
Definition macros.h:341
#define EndIf
Marks the end of an if statement or an else block.
Definition macros.h:298
#define ExecWait(EVT_SOURCE)
Launches a new child thread.
Definition macros.h:475
#define Thread
Marks the start of a thread block.
Definition macros.h:544
#define EndThread
Marks the end of a thread block.
Definition macros.h:547
#define LVarA
Definition macros.h:158
#define Wait(NUM_FRAMES)
Blocks for the given number of frames.
Definition macros.h:254
#define EndSwitch
Marks the end of a switch statement and any case.
Definition macros.h:362
#define IfEq(LVAR, RVAR)
Marks the beginning of an if statement that only executes if LVAR == RVAR.
Definition macros.h:269
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
Definition macros.h:576
#define Loop(TIMES)
Marks the beginning of a loop.
Definition macros.h:245
#define LVar0
Definition macros.h:148
#define Return
Kills the current EVT thread.
Definition macros.h:217
EvtScript EVS_NpcHitRecoil
Definition 38F00.c:13

◆ EnemyNpcDefeat

EvtScript EnemyNpcDefeat
extern

Definition at line 158 of file encounter.c.

158 {
159 Call(SetNpcRotation, NPC_SELF, 0, 0, 0)
170 Return
171 End
172};
@ ENEMY_FLAG_FLED
Definition enums.h:4525
@ OUTCOME_ENEMY_FLED
Definition enums.h:1905
@ OUTCOME_PLAYER_WON
Definition enums.h:1902
@ OUTCOME_PLAYER_FLED
Definition enums.h:1904
ApiStatus SetEnemyFlagBits(Evt *script, b32 isInitialCall)
ApiStatus RemoveNpc(Evt *script, b32 isInitialCall)
ApiStatus DoNpcDefeat(Evt *script, b32 isInitialCall)
ApiStatus OnPlayerFled(Evt *script, b32 isInitialCall)
ApiStatus GetBattleOutcome(Evt *script, b32 isInitialCall)