2020-06-21 07:56:57 +02:00
|
|
|
.equ LOCALID_JACE, 1
|
|
|
|
.equ LOCALID_KEEGAN, 2
|
|
|
|
.equ LOCALID_JEFF, 3
|
|
|
|
.equ LOCALID_ELI, 4
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LavaridgeTown_Gym_B1F_MapScripts::
|
2019-04-22 22:31:51 +02:00
|
|
|
map_script MAP_SCRIPT_ON_TRANSITION, LavaridgeTown_Gym_B1F_OnTransition
|
2017-11-10 02:21:31 +01:00
|
|
|
.byte 0
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LavaridgeTown_Gym_B1F_OnTransition:
|
2019-10-11 23:25:07 +02:00
|
|
|
call LavaridgeTown_Gym_B1F_EventScript_SetTrainerTempVars
|
2021-02-14 20:25:23 +01:00
|
|
|
call LavaridgeTown_Gym_B1F_EventScript_CheckBuryTrainers
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-10-11 23:25:07 +02:00
|
|
|
@ Unclear where/if these temp vars are getting checked
|
2021-07-20 21:18:31 +02:00
|
|
|
LavaridgeTown_Gym_B1F_EventScript_SetTrainerTempVars::
|
2018-05-19 18:02:43 +02:00
|
|
|
setvar VAR_TEMP_7, 0
|
|
|
|
setvar VAR_TEMP_8, 0
|
|
|
|
setvar VAR_TEMP_9, 0
|
|
|
|
setvar VAR_TEMP_A, 0
|
2020-01-11 18:02:58 +01:00
|
|
|
goto_if_defeated TRAINER_KEEGAN, LavaridgeTown_Gym_B1F_EventScript_SetJaceTempVar
|
2018-05-19 18:02:43 +02:00
|
|
|
setvar VAR_TEMP_7, 1
|
2021-07-20 21:18:31 +02:00
|
|
|
LavaridgeTown_Gym_B1F_EventScript_SetJaceTempVar::
|
2020-01-11 18:02:58 +01:00
|
|
|
goto_if_defeated TRAINER_JACE, LavaridgeTown_Gym_B1F_EventScript_SetJeffTempVar
|
2018-05-19 18:02:43 +02:00
|
|
|
setvar VAR_TEMP_8, 1
|
2021-07-20 21:18:31 +02:00
|
|
|
LavaridgeTown_Gym_B1F_EventScript_SetJeffTempVar::
|
2020-01-11 18:02:58 +01:00
|
|
|
goto_if_defeated TRAINER_JEFF, LavaridgeTown_Gym_B1F_EventScript_SetEliTempVar
|
2018-05-19 18:02:43 +02:00
|
|
|
setvar VAR_TEMP_9, 1
|
2021-07-20 21:18:31 +02:00
|
|
|
LavaridgeTown_Gym_B1F_EventScript_SetEliTempVar::
|
2020-01-11 18:02:58 +01:00
|
|
|
goto_if_defeated TRAINER_ELI, LavaridgeTown_Gym_B1F_EventScript_EndSetTrainerTempVars
|
2018-05-19 18:02:43 +02:00
|
|
|
setvar VAR_TEMP_A, 1
|
2021-07-20 21:18:31 +02:00
|
|
|
LavaridgeTown_Gym_B1F_EventScript_EndSetTrainerTempVars::
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LavaridgeTown_Gym_B1F_EventScript_CheckBuryTrainers::
|
2021-02-14 20:25:23 +01:00
|
|
|
goto_if_defeated TRAINER_KEEGAN, LavaridgeTown_Gym_B1F_EventScript_CheckBuryJace
|
|
|
|
setobjectmovementtype LOCALID_KEEGAN, MOVEMENT_TYPE_BURIED
|
2021-07-20 21:18:31 +02:00
|
|
|
LavaridgeTown_Gym_B1F_EventScript_CheckBuryJace::
|
2021-02-14 20:25:23 +01:00
|
|
|
goto_if_defeated TRAINER_JACE, LavaridgeTown_Gym_B1F_EventScript_CheckBuryJeff
|
|
|
|
setobjectmovementtype LOCALID_JACE, MOVEMENT_TYPE_BURIED
|
2021-07-20 21:18:31 +02:00
|
|
|
LavaridgeTown_Gym_B1F_EventScript_CheckBuryJeff::
|
2021-02-14 20:25:23 +01:00
|
|
|
goto_if_defeated TRAINER_JEFF, LavaridgeTown_Gym_B1F_EventScript_CheckBuryEli
|
|
|
|
setobjectmovementtype LOCALID_JEFF, MOVEMENT_TYPE_BURIED
|
2021-07-20 21:18:31 +02:00
|
|
|
LavaridgeTown_Gym_B1F_EventScript_CheckBuryEli::
|
2021-02-14 20:25:23 +01:00
|
|
|
goto_if_defeated TRAINER_ELI, LavaridgeTown_Gym_B1F_EventScript_EndCheckBuryTrainers
|
|
|
|
setobjectmovementtype LOCALID_ELI, MOVEMENT_TYPE_BURIED
|
2021-07-20 21:18:31 +02:00
|
|
|
LavaridgeTown_Gym_B1F_EventScript_EndCheckBuryTrainers::
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|