mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-08-14 13:11:45 -05:00
80 lines
2.4 KiB
ArmAsm
80 lines
2.4 KiB
ArmAsm
#include "macros/scrcmd.inc"
|
|
#include "res/text/bank/acuity_lakefront.h"
|
|
#include "res/field/events/events_acuity_lakefront.h"
|
|
|
|
|
|
ScriptEntry AcuityLakefront_OnTransition
|
|
ScriptEntry AcuityLakefront_OnLoad
|
|
ScriptEntry AcuityLakefront_ArrowSignpostLakeAcuity
|
|
ScriptEntry AcuityLakefront_CoordEvent_Rival
|
|
ScriptEntryEnd
|
|
|
|
AcuityLakefront_OnLoad:
|
|
GoToIfUnset FLAG_TEAM_GALACTIC_LEFT_LAKE_VERITY, AcuityLakefront_RemoveWarpsLakeAcuityNormal
|
|
GoToIfSet FLAG_TEAM_GALACTIC_LEFT_LAKE_VERITY, AcuityLakefront_RemoveWarpsLakeAcuityLowWater
|
|
End
|
|
|
|
AcuityLakefront_RemoveWarpsLakeAcuityNormal:
|
|
SetWarpEventPos 2, 305, 229
|
|
SetWarpEventPos 3, 306, 229
|
|
End
|
|
|
|
AcuityLakefront_RemoveWarpsLakeAcuityLowWater:
|
|
SetWarpEventPos 0, 305, 229
|
|
SetWarpEventPos 1, 306, 229
|
|
End
|
|
|
|
AcuityLakefront_OnTransition:
|
|
CheckBadgeAcquired BADGE_ID_ICICLE, VAR_MAP_LOCAL_0
|
|
CallIfEq VAR_MAP_LOCAL_0, TRUE, AcuityLakefront_SetVeilstoneGymMaylene
|
|
GoToIfUnset FLAG_TEAM_GALACTIC_LEFT_LAKE_VERITY, AcuityLakefront_RemoveWarpsLakeAcuityNormal
|
|
GoToIfSet FLAG_TEAM_GALACTIC_LEFT_LAKE_VERITY, AcuityLakefront_RemoveWarpsLakeAcuityLowWater
|
|
End
|
|
|
|
AcuityLakefront_SetVeilstoneGymMaylene:
|
|
SetFlag FLAG_HIDE_SNOWPOINT_CITY_POKECENTER_1F_MAYLENE
|
|
ClearFlag FLAG_HIDE_VEILSTONE_CITY_GYM_MAYLENE
|
|
Return
|
|
|
|
AcuityLakefront_ArrowSignpostLakeAcuity:
|
|
ShowArrowSign AcuityLakefront_Text_SignLakeAcuityAhead
|
|
End
|
|
|
|
AcuityLakefront_CoordEvent_Rival:
|
|
LockAll
|
|
GetPlayerMapPos VAR_0x8004, VAR_0x8005
|
|
AddFreeCamera VAR_0x8004, VAR_0x8005
|
|
ApplyFreeCameraMovement AcuityLakefront_Movement_CameraMoveNorth
|
|
WaitMovement
|
|
WaitTime 15, VAR_RESULT
|
|
BufferRivalName 0
|
|
BufferPlayerName 1
|
|
Message AcuityLakefront_Text_CantClimbWithoutBadge
|
|
CloseMessage
|
|
ApplyMovement LOCALID_RIVAL, AcuityLakefront_Movement_RivalLeave
|
|
WaitMovement
|
|
RemoveObject LOCALID_RIVAL
|
|
ApplyFreeCameraMovement AcuityLakefront_Movement_CameraMoveSouth
|
|
WaitMovement
|
|
RestoreCamera
|
|
SetVar VAR_ACUITY_LAKEFRONT_STATE, 1
|
|
ReleaseAll
|
|
End
|
|
|
|
.balign 4, 0
|
|
AcuityLakefront_Movement_CameraMoveNorth:
|
|
WalkNormalNorth 6
|
|
EndMovement
|
|
|
|
.balign 4, 0
|
|
AcuityLakefront_Movement_CameraMoveSouth:
|
|
WalkNormalSouth 6
|
|
EndMovement
|
|
|
|
.balign 4, 0
|
|
AcuityLakefront_Movement_RivalLeave:
|
|
WalkNormalNorth 3
|
|
WalkNormalWest
|
|
WalkNormalNorth 4
|
|
EndMovement
|