Finish Cinnabar Island scripts
This commit is contained in:
@@ -91,12 +91,12 @@ CinnabarIsland_Gym_EventScript_Avery:: @ 816DA96
|
||||
end
|
||||
|
||||
CinnabarIsland_Gym_EventScript_DefeatedAvery:: @ 816DAB1
|
||||
call_if_unset FLAG_CINNABAR_GYM_QUIZ_2, EventScript_16DABC
|
||||
call_if_unset FLAG_CINNABAR_GYM_QUIZ_2, CinnabarIsland_Gym_EventScript_Quiz2CompleteTrainer
|
||||
release
|
||||
end
|
||||
|
||||
EventScript_16DABC:: @ 816DABC
|
||||
call EventScript_16DD31
|
||||
CinnabarIsland_Gym_EventScript_Quiz2CompleteTrainer:: @ 816DABC
|
||||
call CinnabarIsland_Gym_EventScript_Quiz2Complete
|
||||
return
|
||||
|
||||
CinnabarIsland_Gym_EventScript_Derek:: @ 816DAC2
|
||||
@@ -106,25 +106,25 @@ CinnabarIsland_Gym_EventScript_Derek:: @ 816DAC2
|
||||
end
|
||||
|
||||
CinnabarIsland_Gym_EventScript_DefeatedDerek:: @ 816DAEA
|
||||
call_if_unset FLAG_CINNABAR_GYM_QUIZ_4, EventScript_16DAF5
|
||||
call_if_unset FLAG_CINNABAR_GYM_QUIZ_4, CinnabarIsland_Gym_EventScript_Quiz4CompleteTrainer
|
||||
release
|
||||
end
|
||||
|
||||
EventScript_16DAF5:: @ 816DAF5
|
||||
call EventScript_16DEE6
|
||||
CinnabarIsland_Gym_EventScript_Quiz4CompleteTrainer:: @ 816DAF5
|
||||
call CinnabarIsland_Gym_EventScript_Quiz4Complete
|
||||
return
|
||||
|
||||
CinnabarIsland_Gym_EventScript_Zac:: @ 816DAFB
|
||||
trainerbattle_single TRAINER_SUPER_NERD_ZAC, CinnabarIsland_Gym_Text_ZacIntro, CinnabarIsland_Gym_Text_ZacDefeat, EventScript_16DB16
|
||||
trainerbattle_single TRAINER_SUPER_NERD_ZAC, CinnabarIsland_Gym_Text_ZacIntro, CinnabarIsland_Gym_Text_ZacDefeat, CinnabarIsland_Gym_EventScript_DefeatedZac
|
||||
msgbox CinnabarIsland_Gym_Text_ZacPostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
EventScript_16DB16:: @ 816DB16
|
||||
call_if_unset FLAG_CINNABAR_GYM_QUIZ_6, EventScript_16DB21
|
||||
CinnabarIsland_Gym_EventScript_DefeatedZac:: @ 816DB16
|
||||
call_if_unset FLAG_CINNABAR_GYM_QUIZ_6, CinnabarIsland_Gym_EventScript_Quiz6CompleteTrainer
|
||||
release
|
||||
end
|
||||
|
||||
EventScript_16DB21:: @ 816DB21
|
||||
CinnabarIsland_Gym_EventScript_Quiz6CompleteTrainer:: @ 816DB21
|
||||
call CinnabarIsland_Gym_EventScript_Quiz6Complete
|
||||
return
|
||||
|
||||
@@ -134,11 +134,11 @@ CinnabarIsland_Gym_EventScript_Quinn:: @ 816DB27
|
||||
end
|
||||
|
||||
CinnabarIsland_Gym_EventScript_DefeatedQuinn:: @ 816DB42
|
||||
call_if_unset FLAG_CINNABAR_GYM_QUIZ_1, EventScript_16DB4D
|
||||
call_if_unset FLAG_CINNABAR_GYM_QUIZ_1, CinnabarIsland_Gym_EventScript_Quiz1CompleteTrainer
|
||||
release
|
||||
end
|
||||
|
||||
EventScript_16DB4D:: @ 816DB4D
|
||||
CinnabarIsland_Gym_EventScript_Quiz1CompleteTrainer:: @ 816DB4D
|
||||
call CinnabarIsland_Gym_EventScript_Quiz1Complete
|
||||
return
|
||||
|
||||
@@ -148,26 +148,26 @@ CinnabarIsland_Gym_EventScript_Ramon:: @ 816DB53
|
||||
end
|
||||
|
||||
CinnabarIsland_Gym_EventScript_DefeatedRamon:: @ 816DB6E
|
||||
call_if_unset FLAG_CINNABAR_GYM_QUIZ_3, EventScript_16DB79
|
||||
call_if_unset FLAG_CINNABAR_GYM_QUIZ_3, CinnabarIsland_Gym_EventScript_Quiz3CompleteTrainer
|
||||
release
|
||||
end
|
||||
|
||||
EventScript_16DB79:: @ 816DB79
|
||||
call EventScript_16DE0F
|
||||
CinnabarIsland_Gym_EventScript_Quiz3CompleteTrainer:: @ 816DB79
|
||||
call CinnabarIsland_Gym_EventScript_Quiz3Complete
|
||||
return
|
||||
|
||||
CinnabarIsland_Gym_EventScript_Dusty:: @ 816DB7F
|
||||
trainerbattle_single TRAINER_BURGLAR_DUSTY, CinnabarIsland_Gym_Text_DustyIntro, CinnabarIsland_Gym_Text_DustyDefeat, EventScript_16DB9A
|
||||
trainerbattle_single TRAINER_BURGLAR_DUSTY, CinnabarIsland_Gym_Text_DustyIntro, CinnabarIsland_Gym_Text_DustyDefeat, CinnabarIsland_Gym_EventScript_DefeatedDusty
|
||||
msgbox CinnabarIsland_Gym_Text_DustyPostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
EventScript_16DB9A:: @ 816DB9A
|
||||
call_if_unset FLAG_CINNABAR_GYM_QUIZ_5, EventScript_16DBA5
|
||||
CinnabarIsland_Gym_EventScript_DefeatedDusty:: @ 816DB9A
|
||||
call_if_unset FLAG_CINNABAR_GYM_QUIZ_5, CinnabarIsland_Gym_EventScript_Quiz5CompleteTrainer
|
||||
release
|
||||
end
|
||||
|
||||
EventScript_16DBA5:: @ 816DBA5
|
||||
call EventScript_16DFBD
|
||||
CinnabarIsland_Gym_EventScript_Quiz5CompleteTrainer:: @ 816DBA5
|
||||
call CinnabarIsland_Gym_EventScript_Quiz5Complete
|
||||
return
|
||||
|
||||
CinnabarIsland_Gym_EventScript_GymGuy:: @ 816DBAB
|
||||
@@ -257,9 +257,9 @@ CinnabarIsland_Gym_EventScript_Quiz1Incorrect:: @ 816DC6A
|
||||
|
||||
CinnabarIsland_Gym_EventScript_BattleQuinn:: @ 816DC7A
|
||||
compare VAR_TEMP_1, 0
|
||||
call_if_eq EventScript_16DCB4
|
||||
call_if_eq CinnabarIsland_Gym_EventScript_QuinnApproachLeft
|
||||
compare VAR_TEMP_1, 1
|
||||
call_if_eq EventScript_16DCC6
|
||||
call_if_eq CinnabarIsland_Gym_EventScript_QuinnApproachRight
|
||||
textcolor 0
|
||||
msgbox CinnabarIsland_Gym_Text_QuinnIntro
|
||||
trainerbattle_no_intro TRAINER_BURGLAR_QUINN, CinnabarIsland_Gym_Text_QuinnDefeat
|
||||
@@ -268,56 +268,56 @@ CinnabarIsland_Gym_EventScript_BattleQuinn:: @ 816DC7A
|
||||
releaseall
|
||||
end
|
||||
|
||||
EventScript_16DCB4:: @ 816DCB4
|
||||
CinnabarIsland_Gym_EventScript_QuinnApproachLeft:: @ 816DCB4
|
||||
applymovement OBJ_EVENT_ID_PLAYER, Movement_WalkInPlaceFastestRight
|
||||
applymovement 1, Movement_16DCD8
|
||||
applymovement 1, CinnabarIsland_Gym_Movement_QuinnApproachLeft
|
||||
waitmovement 0
|
||||
return
|
||||
|
||||
EventScript_16DCC6:: @ 816DCC6
|
||||
CinnabarIsland_Gym_EventScript_QuinnApproachRight:: @ 816DCC6
|
||||
applymovement OBJ_EVENT_ID_PLAYER, Movement_WalkInPlaceFastestRight
|
||||
applymovement 1, Movement_16DCDB
|
||||
applymovement 1, CinnabarIsland_Gym_Movement_QuinnApproachRight
|
||||
waitmovement 0
|
||||
return
|
||||
|
||||
Movement_16DCD8:: @ 816DCD8
|
||||
CinnabarIsland_Gym_Movement_QuinnApproachLeft:: @ 816DCD8
|
||||
walk_left
|
||||
walk_left
|
||||
step_end
|
||||
|
||||
Movement_16DCDB:: @ 816DCDB
|
||||
CinnabarIsland_Gym_Movement_QuinnApproachRight:: @ 816DCDB
|
||||
walk_left
|
||||
step_end
|
||||
|
||||
CinnabarIsland_Gym_EventScript_16DCDD:: @ 816DCDD
|
||||
CinnabarIsland_Gym_EventScript_Quiz2Left:: @ 816DCDD
|
||||
lockall
|
||||
setvar VAR_TEMP_1, 0
|
||||
goto EventScript_16DCF5
|
||||
goto CinnabarIsland_Gym_EventScript_Quiz2
|
||||
end
|
||||
|
||||
CinnabarIsland_Gym_EventScript_16DCE9:: @ 816DCE9
|
||||
CinnabarIsland_Gym_EventScript_Quiz2Right:: @ 816DCE9
|
||||
lockall
|
||||
setvar VAR_TEMP_1, 1
|
||||
goto EventScript_16DCF5
|
||||
goto CinnabarIsland_Gym_EventScript_Quiz2
|
||||
end
|
||||
|
||||
EventScript_16DCF5:: @ 816DCF5
|
||||
CinnabarIsland_Gym_EventScript_Quiz2:: @ 816DCF5
|
||||
msgbox CinnabarIsland_Gym_Text_PokemonQuizRules
|
||||
msgbox CinnabarIsland_Gym_Text_QuizQuestion2, MSGBOX_YESNO
|
||||
compare VAR_RESULT, YES
|
||||
goto_if_eq EventScript_16DD41
|
||||
goto_if_eq CinnabarIsland_Gym_EventScript_Quiz2Incorrect
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq EventScript_16DD1C
|
||||
goto_if_eq CinnabarIsland_Gym_EventScript_Quiz2Correct
|
||||
end
|
||||
|
||||
EventScript_16DD1C:: @ 816DD1C
|
||||
CinnabarIsland_Gym_EventScript_Quiz2Correct:: @ 816DD1C
|
||||
call CinnabarIsland_Gym_EventScript_CorrectAnswer
|
||||
goto_if_set FLAG_CINNABAR_GYM_QUIZ_2, CinnabarIsland_Gym_EventScript_DoorAlreadyOpen
|
||||
call EventScript_16DD31
|
||||
call CinnabarIsland_Gym_EventScript_Quiz2Complete
|
||||
releaseall
|
||||
end
|
||||
|
||||
EventScript_16DD31:: @ 816DD31
|
||||
CinnabarIsland_Gym_EventScript_Quiz2Complete:: @ 816DD31
|
||||
playse SE_KI_GASYAN
|
||||
waitse
|
||||
call CinnabarIsland_Gym_EventScript_OpenDoor2
|
||||
@@ -325,84 +325,84 @@ EventScript_16DD31:: @ 816DD31
|
||||
setflag FLAG_CINNABAR_GYM_QUIZ_2
|
||||
return
|
||||
|
||||
EventScript_16DD41:: @ 816DD41
|
||||
CinnabarIsland_Gym_EventScript_Quiz2Incorrect:: @ 816DD41
|
||||
call CinnabarIsland_Gym_EventScript_IncorrectAnswer
|
||||
goto_if_not_defeated TRAINER_SUPER_NERD_AVERY, EventScript_16DD51
|
||||
goto_if_not_defeated TRAINER_SUPER_NERD_AVERY, CinnabarIsland_Gym_EventScript_BattleAvery
|
||||
releaseall
|
||||
end
|
||||
|
||||
EventScript_16DD51:: @ 816DD51
|
||||
CinnabarIsland_Gym_EventScript_BattleAvery:: @ 816DD51
|
||||
compare VAR_TEMP_1, 0
|
||||
call_if_eq EventScript_16DD8B
|
||||
call_if_eq CinnabarIsland_Gym_EventScript_AveryApproachLeft
|
||||
compare VAR_TEMP_1, 1
|
||||
call_if_eq EventScript_16DD9D
|
||||
call_if_eq CinnabarIsland_Gym_EventScript_AveryApproachRight
|
||||
textcolor 0
|
||||
msgbox CinnabarIsland_Gym_Text_AveryIntro
|
||||
trainerbattle_no_intro TRAINER_SUPER_NERD_AVERY, CinnabarIsland_Gym_Text_AveryDefeat
|
||||
goto_if_set FLAG_CINNABAR_GYM_QUIZ_2, CinnabarIsland_Gym_EventScript_DoorAlreadyOpen
|
||||
call EventScript_16DD31
|
||||
call CinnabarIsland_Gym_EventScript_Quiz2Complete
|
||||
releaseall
|
||||
end
|
||||
|
||||
EventScript_16DD8B:: @ 816DD8B
|
||||
applymovement OBJ_EVENT_ID_PLAYER, Movement_16DDB7
|
||||
applymovement 3, Movement_16DDAF
|
||||
CinnabarIsland_Gym_EventScript_AveryApproachLeft:: @ 816DD8B
|
||||
applymovement OBJ_EVENT_ID_PLAYER, CinnabarIsland_Gym_Movement_PlayerFaceAvery
|
||||
applymovement 3, CinnabarIsland_Gym_Movement_AveryApproachLeft
|
||||
waitmovement 0
|
||||
return
|
||||
|
||||
EventScript_16DD9D:: @ 816DD9D
|
||||
applymovement OBJ_EVENT_ID_PLAYER, Movement_16DDB7
|
||||
applymovement 3, Movement_16DDB3
|
||||
CinnabarIsland_Gym_EventScript_AveryApproachRight:: @ 816DD9D
|
||||
applymovement OBJ_EVENT_ID_PLAYER, CinnabarIsland_Gym_Movement_PlayerFaceAvery
|
||||
applymovement 3, CinnabarIsland_Gym_Movement_AveryApproachRight
|
||||
waitmovement 0
|
||||
return
|
||||
|
||||
Movement_16DDAF:: @ 816DDAF
|
||||
CinnabarIsland_Gym_Movement_AveryApproachLeft:: @ 816DDAF
|
||||
walk_up
|
||||
walk_up
|
||||
walk_left
|
||||
step_end
|
||||
|
||||
Movement_16DDB3:: @ 816DDB3
|
||||
CinnabarIsland_Gym_Movement_AveryApproachRight:: @ 816DDB3
|
||||
walk_up
|
||||
walk_up
|
||||
walk_in_place_fastest_left
|
||||
step_end
|
||||
|
||||
Movement_16DDB7:: @ 816DDB7
|
||||
CinnabarIsland_Gym_Movement_PlayerFaceAvery:: @ 816DDB7
|
||||
delay_16
|
||||
delay_16
|
||||
walk_in_place_fastest_right
|
||||
step_end
|
||||
|
||||
CinnabarIsland_Gym_EventScript_16DDBB:: @ 816DDBB
|
||||
CinnabarIsland_Gym_EventScript_Quiz3Left:: @ 816DDBB
|
||||
lockall
|
||||
setvar VAR_TEMP_1, 0
|
||||
goto EventScript_16DDD3
|
||||
goto CinnabarIsland_Gym_EventScript_Quiz3
|
||||
end
|
||||
|
||||
CinnabarIsland_Gym_EventScript_16DDC7:: @ 816DDC7
|
||||
CinnabarIsland_Gym_EventScript_Quiz3Right:: @ 816DDC7
|
||||
lockall
|
||||
setvar VAR_TEMP_1, 1
|
||||
goto EventScript_16DDD3
|
||||
goto CinnabarIsland_Gym_EventScript_Quiz3
|
||||
end
|
||||
|
||||
EventScript_16DDD3:: @ 816DDD3
|
||||
CinnabarIsland_Gym_EventScript_Quiz3:: @ 816DDD3
|
||||
msgbox CinnabarIsland_Gym_Text_PokemonQuizRules
|
||||
msgbox CinnabarIsland_Gym_Text_QuizQuestion3, MSGBOX_YESNO
|
||||
compare VAR_RESULT, YES
|
||||
goto_if_eq EventScript_16DE1F
|
||||
goto_if_eq CinnabarIsland_Gym_EventScript_Quiz3Incorrect
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq EventScript_16DDFA
|
||||
goto_if_eq CinnabarIsland_Gym_EventScript_Quiz3Correct
|
||||
end
|
||||
|
||||
EventScript_16DDFA:: @ 816DDFA
|
||||
CinnabarIsland_Gym_EventScript_Quiz3Correct:: @ 816DDFA
|
||||
call CinnabarIsland_Gym_EventScript_CorrectAnswer
|
||||
goto_if_set FLAG_CINNABAR_GYM_QUIZ_3, CinnabarIsland_Gym_EventScript_DoorAlreadyOpen
|
||||
call EventScript_16DE0F
|
||||
call CinnabarIsland_Gym_EventScript_Quiz3Complete
|
||||
releaseall
|
||||
end
|
||||
|
||||
EventScript_16DE0F:: @ 816DE0F
|
||||
CinnabarIsland_Gym_EventScript_Quiz3Complete:: @ 816DE0F
|
||||
playse SE_KI_GASYAN
|
||||
waitse
|
||||
call CinnabarIsland_Gym_EventScript_OpenDoor3
|
||||
@@ -410,75 +410,75 @@ EventScript_16DE0F:: @ 816DE0F
|
||||
setflag FLAG_CINNABAR_GYM_QUIZ_3
|
||||
return
|
||||
|
||||
EventScript_16DE1F:: @ 816DE1F
|
||||
CinnabarIsland_Gym_EventScript_Quiz3Incorrect:: @ 816DE1F
|
||||
call CinnabarIsland_Gym_EventScript_IncorrectAnswer
|
||||
goto_if_not_defeated TRAINER_BURGLAR_RAMON, EventScript_16DE2F
|
||||
goto_if_not_defeated TRAINER_BURGLAR_RAMON, CinnabarIsland_Gym_EventScript_BattleRamon
|
||||
releaseall
|
||||
end
|
||||
|
||||
EventScript_16DE2F:: @ 816DE2F
|
||||
CinnabarIsland_Gym_EventScript_BattleRamon:: @ 816DE2F
|
||||
compare VAR_TEMP_1, 0
|
||||
call_if_eq EventScript_16DE69
|
||||
call_if_eq CinnabarIsland_Gym_EventScript_RamonApproachLeft
|
||||
compare VAR_TEMP_1, 1
|
||||
call_if_eq EventScript_16DE7B
|
||||
call_if_eq CinnabarIsland_Gym_EventScript_RamonApproachRight
|
||||
textcolor 0
|
||||
msgbox CinnabarIsland_Gym_Text_RamonIntro
|
||||
trainerbattle_no_intro TRAINER_BURGLAR_RAMON, CinnabarIsland_Gym_Text_RamonDefeat
|
||||
goto_if_set FLAG_CINNABAR_GYM_QUIZ_3, CinnabarIsland_Gym_EventScript_DoorAlreadyOpen
|
||||
call EventScript_16DE0F
|
||||
call CinnabarIsland_Gym_EventScript_Quiz3Complete
|
||||
releaseall
|
||||
end
|
||||
|
||||
EventScript_16DE69:: @ 816DE69
|
||||
CinnabarIsland_Gym_EventScript_RamonApproachLeft:: @ 816DE69
|
||||
applymovement OBJ_EVENT_ID_PLAYER, Movement_WalkInPlaceFastestRight
|
||||
applymovement 4, Movement_16DE8D
|
||||
applymovement 4, CinnabarIsland_Gym_Movement_RamonApproachLeft
|
||||
waitmovement 0
|
||||
return
|
||||
|
||||
EventScript_16DE7B:: @ 816DE7B
|
||||
CinnabarIsland_Gym_EventScript_RamonApproachRight:: @ 816DE7B
|
||||
applymovement OBJ_EVENT_ID_PLAYER, Movement_WalkInPlaceFastestRight
|
||||
applymovement 4, Movement_16DE90
|
||||
applymovement 4, CinnabarIsland_Gym_Movement_RamonApproachRight
|
||||
waitmovement 0
|
||||
return
|
||||
|
||||
Movement_16DE8D:: @ 816DE8D
|
||||
CinnabarIsland_Gym_Movement_RamonApproachLeft:: @ 816DE8D
|
||||
walk_left
|
||||
walk_left
|
||||
step_end
|
||||
|
||||
Movement_16DE90:: @ 816DE90
|
||||
CinnabarIsland_Gym_Movement_RamonApproachRight:: @ 816DE90
|
||||
walk_left
|
||||
step_end
|
||||
|
||||
CinnabarIsland_Gym_EventScript_16DE92:: @ 816DE92
|
||||
CinnabarIsland_Gym_EventScript_Quiz4Left:: @ 816DE92
|
||||
lockall
|
||||
setvar VAR_TEMP_1, 0
|
||||
goto EventScript_16DEAA
|
||||
goto CinnabarIsland_Gym_EventScript_Quiz4
|
||||
end
|
||||
|
||||
CinnabarIsland_Gym_EventScript_16DE9E:: @ 816DE9E
|
||||
CinnabarIsland_Gym_EventScript_Quiz4Right:: @ 816DE9E
|
||||
lockall
|
||||
setvar VAR_TEMP_1, 1
|
||||
goto EventScript_16DEAA
|
||||
goto CinnabarIsland_Gym_EventScript_Quiz4
|
||||
end
|
||||
|
||||
EventScript_16DEAA:: @ 816DEAA
|
||||
CinnabarIsland_Gym_EventScript_Quiz4:: @ 816DEAA
|
||||
msgbox CinnabarIsland_Gym_Text_PokemonQuizRules
|
||||
msgbox CinnabarIsland_Gym_Text_QuizQuestion4, MSGBOX_YESNO
|
||||
compare VAR_RESULT, YES
|
||||
goto_if_eq EventScript_16DEF6
|
||||
goto_if_eq CinnabarIsland_Gym_EventScript_Quiz4Incorrect
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq EventScript_16DED1
|
||||
goto_if_eq CinnabarIsland_Gym_EventScript_Quiz4Correct
|
||||
end
|
||||
|
||||
EventScript_16DED1:: @ 816DED1
|
||||
CinnabarIsland_Gym_EventScript_Quiz4Correct:: @ 816DED1
|
||||
call CinnabarIsland_Gym_EventScript_CorrectAnswer
|
||||
goto_if_set FLAG_CINNABAR_GYM_QUIZ_4, CinnabarIsland_Gym_EventScript_DoorAlreadyOpen
|
||||
call EventScript_16DEE6
|
||||
call CinnabarIsland_Gym_EventScript_Quiz4Complete
|
||||
releaseall
|
||||
end
|
||||
|
||||
EventScript_16DEE6:: @ 816DEE6
|
||||
CinnabarIsland_Gym_EventScript_Quiz4Complete:: @ 816DEE6
|
||||
playse SE_KI_GASYAN
|
||||
waitse
|
||||
call CinnabarIsland_Gym_EventScript_OpenDoor4
|
||||
@@ -486,75 +486,75 @@ EventScript_16DEE6:: @ 816DEE6
|
||||
setflag FLAG_CINNABAR_GYM_QUIZ_4
|
||||
return
|
||||
|
||||
EventScript_16DEF6:: @ 816DEF6
|
||||
CinnabarIsland_Gym_EventScript_Quiz4Incorrect:: @ 816DEF6
|
||||
call CinnabarIsland_Gym_EventScript_IncorrectAnswer
|
||||
goto_if_not_defeated TRAINER_SUPER_NERD_DEREK, EventScript_16DF06
|
||||
goto_if_not_defeated TRAINER_SUPER_NERD_DEREK, CinnabarIsland_Gym_EventScript_BattleDerek
|
||||
releaseall
|
||||
end
|
||||
|
||||
EventScript_16DF06:: @ 816DF06
|
||||
CinnabarIsland_Gym_EventScript_BattleDerek:: @ 816DF06
|
||||
compare VAR_TEMP_1, 0
|
||||
call_if_eq EventScript_16DF40
|
||||
call_if_eq CinnabarIsland_Gym_EventScript_DerekApproachLeft
|
||||
compare VAR_TEMP_1, 1
|
||||
call_if_eq EventScript_16DF52
|
||||
call_if_eq CinnabarIsland_Gym_EventScript_DerekApproachRight
|
||||
textcolor 0
|
||||
msgbox CinnabarIsland_Gym_Text_DerekIntro
|
||||
trainerbattle_no_intro TRAINER_SUPER_NERD_DEREK, CinnabarIsland_Gym_Text_DerekDefeat
|
||||
goto_if_set FLAG_CINNABAR_GYM_QUIZ_4, CinnabarIsland_Gym_EventScript_DoorAlreadyOpen
|
||||
call EventScript_16DEE6
|
||||
call CinnabarIsland_Gym_EventScript_Quiz4Complete
|
||||
releaseall
|
||||
end
|
||||
|
||||
EventScript_16DF40:: @ 816DF40
|
||||
CinnabarIsland_Gym_EventScript_DerekApproachLeft:: @ 816DF40
|
||||
applymovement OBJ_EVENT_ID_PLAYER, Movement_WalkInPlaceFastestRight
|
||||
applymovement 5, Movement_16DF64
|
||||
applymovement 5, CinnabarIsland_Gym_Movement_DerekApproachLeft
|
||||
waitmovement 0
|
||||
return
|
||||
|
||||
EventScript_16DF52:: @ 816DF52
|
||||
CinnabarIsland_Gym_EventScript_DerekApproachRight:: @ 816DF52
|
||||
applymovement OBJ_EVENT_ID_PLAYER, Movement_WalkInPlaceFastestRight
|
||||
applymovement 5, Movement_16DF67
|
||||
applymovement 5, CinnabarIsland_Gym_Movement_DerekApproachRight
|
||||
waitmovement 0
|
||||
return
|
||||
|
||||
Movement_16DF64:: @ 816DF64
|
||||
CinnabarIsland_Gym_Movement_DerekApproachLeft:: @ 816DF64
|
||||
walk_left
|
||||
walk_left
|
||||
step_end
|
||||
|
||||
Movement_16DF67:: @ 816DF67
|
||||
CinnabarIsland_Gym_Movement_DerekApproachRight:: @ 816DF67
|
||||
walk_left
|
||||
step_end
|
||||
|
||||
CinnabarIsland_Gym_EventScript_16DF69:: @ 816DF69
|
||||
CinnabarIsland_Gym_EventScript_Quiz5Left:: @ 816DF69
|
||||
lockall
|
||||
setvar VAR_TEMP_1, 0
|
||||
goto EventScript_16DF81
|
||||
goto CinnabarIsland_Gym_EventScript_Quiz5
|
||||
end
|
||||
|
||||
CinnabarIsland_Gym_EventScript_16DF75:: @ 816DF75
|
||||
CinnabarIsland_Gym_EventScript_Quiz5Right:: @ 816DF75
|
||||
lockall
|
||||
setvar VAR_TEMP_1, 1
|
||||
goto EventScript_16DF81
|
||||
goto CinnabarIsland_Gym_EventScript_Quiz5
|
||||
end
|
||||
|
||||
EventScript_16DF81:: @ 816DF81
|
||||
CinnabarIsland_Gym_EventScript_Quiz5:: @ 816DF81
|
||||
msgbox CinnabarIsland_Gym_Text_PokemonQuizRules
|
||||
msgbox CinnabarIsland_Gym_Text_QuizQuestion5, MSGBOX_YESNO
|
||||
compare VAR_RESULT, YES
|
||||
goto_if_eq EventScript_16DFA8
|
||||
goto_if_eq CinnabarIsland_Gym_EventScript_Quiz5Correct
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq EventScript_16DFCD
|
||||
goto_if_eq CinnabarIsland_Gym_EventScript_Quiz5Incorrect
|
||||
end
|
||||
|
||||
EventScript_16DFA8:: @ 816DFA8
|
||||
CinnabarIsland_Gym_EventScript_Quiz5Correct:: @ 816DFA8
|
||||
call CinnabarIsland_Gym_EventScript_CorrectAnswer
|
||||
goto_if_set FLAG_CINNABAR_GYM_QUIZ_5, CinnabarIsland_Gym_EventScript_DoorAlreadyOpen
|
||||
call EventScript_16DFBD
|
||||
call CinnabarIsland_Gym_EventScript_Quiz5Complete
|
||||
releaseall
|
||||
end
|
||||
|
||||
EventScript_16DFBD:: @ 816DFBD
|
||||
CinnabarIsland_Gym_EventScript_Quiz5Complete:: @ 816DFBD
|
||||
playse SE_KI_GASYAN
|
||||
waitse
|
||||
call CinnabarIsland_Gym_EventScript_OpenDoor5
|
||||
@@ -562,68 +562,68 @@ EventScript_16DFBD:: @ 816DFBD
|
||||
setflag FLAG_CINNABAR_GYM_QUIZ_5
|
||||
return
|
||||
|
||||
EventScript_16DFCD:: @ 816DFCD
|
||||
CinnabarIsland_Gym_EventScript_Quiz5Incorrect:: @ 816DFCD
|
||||
call CinnabarIsland_Gym_EventScript_IncorrectAnswer
|
||||
goto_if_not_defeated TRAINER_BURGLAR_DUSTY, EventScript_16DFDD
|
||||
goto_if_not_defeated TRAINER_BURGLAR_DUSTY, CinnabarIsland_Gym_EventScript_BattleDusty
|
||||
releaseall
|
||||
end
|
||||
|
||||
EventScript_16DFDD:: @ 816DFDD
|
||||
CinnabarIsland_Gym_EventScript_BattleDusty:: @ 816DFDD
|
||||
compare VAR_TEMP_1, 0
|
||||
call_if_eq EventScript_16E017
|
||||
call_if_eq CinnabarIsland_Gym_EventScript_DustyApproachLeft
|
||||
compare VAR_TEMP_1, 1
|
||||
call_if_eq EventScript_16E029
|
||||
call_if_eq CinnabarIsland_Gym_EventScript_DustyApproachRight
|
||||
textcolor 0
|
||||
msgbox CinnabarIsland_Gym_Text_DustyIntro
|
||||
trainerbattle_no_intro TRAINER_BURGLAR_DUSTY, CinnabarIsland_Gym_Text_DustyDefeat
|
||||
goto_if_set FLAG_CINNABAR_GYM_QUIZ_5, CinnabarIsland_Gym_EventScript_DoorAlreadyOpen
|
||||
call EventScript_16DFBD
|
||||
call CinnabarIsland_Gym_EventScript_Quiz5Complete
|
||||
releaseall
|
||||
end
|
||||
|
||||
EventScript_16E017:: @ 816E017
|
||||
CinnabarIsland_Gym_EventScript_DustyApproachLeft:: @ 816E017
|
||||
applymovement OBJ_EVENT_ID_PLAYER, Movement_WalkInPlaceFastestRight
|
||||
applymovement 6, Movement_16E03B
|
||||
applymovement 6, CinnabarIsland_Gym_Movement_DustyApproachLeft
|
||||
waitmovement 0
|
||||
return
|
||||
|
||||
EventScript_16E029:: @ 816E029
|
||||
CinnabarIsland_Gym_EventScript_DustyApproachRight:: @ 816E029
|
||||
applymovement OBJ_EVENT_ID_PLAYER, Movement_WalkInPlaceFastestRight
|
||||
applymovement 6, Movement_16E03E
|
||||
applymovement 6, CinnabarIsland_Gym_Movement_DustyApproachRight
|
||||
waitmovement 0
|
||||
return
|
||||
|
||||
Movement_16E03B:: @ 816E03B
|
||||
CinnabarIsland_Gym_Movement_DustyApproachLeft:: @ 816E03B
|
||||
walk_left
|
||||
walk_left
|
||||
step_end
|
||||
|
||||
Movement_16E03E:: @ 816E03E
|
||||
CinnabarIsland_Gym_Movement_DustyApproachRight:: @ 816E03E
|
||||
walk_left
|
||||
step_end
|
||||
|
||||
CinnabarIsland_Gym_EventScript_16E040:: @ 816E040
|
||||
CinnabarIsland_Gym_EventScript_Quiz6Left:: @ 816E040
|
||||
lockall
|
||||
setvar VAR_TEMP_1, 0
|
||||
goto EventScript_16E058
|
||||
goto CinnabarIsland_Gym_EventScript_Quiz6
|
||||
end
|
||||
|
||||
CinnabarIsland_Gym_EventScript_16E04C:: @ 816E04C
|
||||
CinnabarIsland_Gym_EventScript_Quiz6Right:: @ 816E04C
|
||||
lockall
|
||||
setvar VAR_TEMP_1, 1
|
||||
goto EventScript_16E058
|
||||
goto CinnabarIsland_Gym_EventScript_Quiz6
|
||||
end
|
||||
|
||||
EventScript_16E058:: @ 816E058
|
||||
CinnabarIsland_Gym_EventScript_Quiz6:: @ 816E058
|
||||
msgbox CinnabarIsland_Gym_Text_PokemonQuizRules
|
||||
msgbox CinnabarIsland_Gym_Text_QuizQuestion6, MSGBOX_YESNO
|
||||
compare VAR_RESULT, YES
|
||||
goto_if_eq EventScript_16E0A4
|
||||
goto_if_eq CinnabarIsland_Gym_EventScript_Quiz6Incorrect
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq EventScript_16E07F
|
||||
goto_if_eq CinnabarIsland_Gym_EventScript_Quiz6Correct
|
||||
end
|
||||
|
||||
EventScript_16E07F:: @ 816E07F
|
||||
CinnabarIsland_Gym_EventScript_Quiz6Correct:: @ 816E07F
|
||||
call CinnabarIsland_Gym_EventScript_CorrectAnswer
|
||||
goto_if_set FLAG_CINNABAR_GYM_QUIZ_6, CinnabarIsland_Gym_EventScript_DoorAlreadyOpen
|
||||
call CinnabarIsland_Gym_EventScript_Quiz6Complete
|
||||
@@ -638,17 +638,17 @@ CinnabarIsland_Gym_EventScript_Quiz6Complete:: @ 816E094
|
||||
setflag FLAG_CINNABAR_GYM_QUIZ_6
|
||||
return
|
||||
|
||||
EventScript_16E0A4:: @ 816E0A4
|
||||
CinnabarIsland_Gym_EventScript_Quiz6Incorrect:: @ 816E0A4
|
||||
call CinnabarIsland_Gym_EventScript_IncorrectAnswer
|
||||
goto_if_not_defeated TRAINER_SUPER_NERD_ZAC, EventScript_16E0B4
|
||||
goto_if_not_defeated TRAINER_SUPER_NERD_ZAC, CinnabarIsland_Gym_EventScript_BattleZac
|
||||
releaseall
|
||||
end
|
||||
|
||||
EventScript_16E0B4:: @ 816E0B4
|
||||
CinnabarIsland_Gym_EventScript_BattleZac:: @ 816E0B4
|
||||
compare VAR_TEMP_1, 0
|
||||
call_if_eq EventScript_16E0EE
|
||||
call_if_eq CinnabarIsland_Gym_EventScript_ZacApproachLeft
|
||||
compare VAR_TEMP_1, 1
|
||||
call_if_eq EventScript_16E100
|
||||
call_if_eq CinnabarIsland_Gym_EventScript_ZacApproachRight
|
||||
textcolor 0
|
||||
msgbox CinnabarIsland_Gym_Text_ZacIntro
|
||||
trainerbattle_no_intro TRAINER_SUPER_NERD_ZAC, CinnabarIsland_Gym_Text_ZacDefeat
|
||||
@@ -657,79 +657,79 @@ EventScript_16E0B4:: @ 816E0B4
|
||||
releaseall
|
||||
end
|
||||
|
||||
EventScript_16E0EE:: @ 816E0EE
|
||||
CinnabarIsland_Gym_EventScript_ZacApproachLeft:: @ 816E0EE
|
||||
applymovement OBJ_EVENT_ID_PLAYER, Movement_WalkInPlaceFastestRight
|
||||
applymovement 7, Movement_16E112
|
||||
applymovement 7, CinnabarIsland_Gym_Movement_ZacApproachLeft
|
||||
waitmovement 0
|
||||
return
|
||||
|
||||
EventScript_16E100:: @ 816E100
|
||||
CinnabarIsland_Gym_EventScript_ZacApproachRight:: @ 816E100
|
||||
applymovement OBJ_EVENT_ID_PLAYER, Movement_WalkInPlaceFastestRight
|
||||
applymovement 7, Movement_16E115
|
||||
applymovement 7, CinnabarIsland_Gym_Movement_ZacApproachRight
|
||||
waitmovement 0
|
||||
return
|
||||
|
||||
Movement_16E112:: @ 816E112
|
||||
CinnabarIsland_Gym_Movement_ZacApproachLeft:: @ 816E112
|
||||
walk_left
|
||||
walk_left
|
||||
step_end
|
||||
|
||||
Movement_16E115:: @ 816E115
|
||||
CinnabarIsland_Gym_Movement_ZacApproachRight:: @ 816E115
|
||||
walk_left
|
||||
step_end
|
||||
|
||||
CinnabarIsland_Gym_EventScript_OpenDoor1:: @ 816E117
|
||||
setmetatile 26, 8, 711, 0
|
||||
setmetatile 27, 8, 710, 0
|
||||
setmetatile 26, 9, 719, 0
|
||||
setmetatile 27, 9, 718, 0
|
||||
setmetatile 26, 10, 649, 0
|
||||
setmetatile 27, 10, 641, 0
|
||||
setmetatile 28, 10, 642, 0
|
||||
setmetatile 26, 8, METATILE_CinnabarGym_Floor_WallLeftCorner, 0
|
||||
setmetatile 27, 8, METATILE_CinnabarGym_Floor_WallRightCorner, 0
|
||||
setmetatile 26, 9, METATILE_CinnabarGym_Floor_WallLeftEdge, 0
|
||||
setmetatile 27, 9, METATILE_CinnabarGym_Floor_WallRightEdge, 0
|
||||
setmetatile 26, 10, METATILE_CinnabarGym_Floor_ShadeFull, 0
|
||||
setmetatile 27, 10, METATILE_CinnabarGym_Floor, 0
|
||||
setmetatile 28, 10, METATILE_CinnabarGym_Floor_ShadeDiagonal, 0
|
||||
return
|
||||
|
||||
CinnabarIsland_Gym_EventScript_OpenDoor2:: @ 816E157
|
||||
setmetatile 17, 8, 711, 0
|
||||
setmetatile 18, 8, 710, 0
|
||||
setmetatile 17, 9, 719, 0
|
||||
setmetatile 18, 9, 718, 0
|
||||
setmetatile 17, 10, 649, 0
|
||||
setmetatile 18, 10, 641, 0
|
||||
setmetatile 19, 10, 642, 0
|
||||
setmetatile 17, 8, METATILE_CinnabarGym_Floor_WallLeftCorner, 0
|
||||
setmetatile 18, 8, METATILE_CinnabarGym_Floor_WallRightCorner, 0
|
||||
setmetatile 17, 9, METATILE_CinnabarGym_Floor_WallLeftEdge, 0
|
||||
setmetatile 18, 9, METATILE_CinnabarGym_Floor_WallRightEdge, 0
|
||||
setmetatile 17, 10, METATILE_CinnabarGym_Floor_ShadeFull, 0
|
||||
setmetatile 18, 10, METATILE_CinnabarGym_Floor, 0
|
||||
setmetatile 19, 10, METATILE_CinnabarGym_Floor_ShadeDiagonal, 0
|
||||
return
|
||||
|
||||
CinnabarIsland_Gym_EventScript_OpenDoor3:: @ 816E197
|
||||
setmetatile 17, 15, 711, 0
|
||||
setmetatile 18, 15, 710, 0
|
||||
setmetatile 17, 16, 719, 0
|
||||
setmetatile 18, 16, 718, 0
|
||||
setmetatile 17, 17, 649, 0
|
||||
setmetatile 18, 17, 641, 0
|
||||
setmetatile 19, 17, 642, 0
|
||||
setmetatile 17, 15, METATILE_CinnabarGym_Floor_WallLeftCorner, 0
|
||||
setmetatile 18, 15, METATILE_CinnabarGym_Floor_WallRightCorner, 0
|
||||
setmetatile 17, 16, METATILE_CinnabarGym_Floor_WallLeftEdge, 0
|
||||
setmetatile 18, 16, METATILE_CinnabarGym_Floor_WallRightEdge, 0
|
||||
setmetatile 17, 17, METATILE_CinnabarGym_Floor_ShadeFull, 0
|
||||
setmetatile 18, 17, METATILE_CinnabarGym_Floor, 0
|
||||
setmetatile 19, 17, METATILE_CinnabarGym_Floor_ShadeDiagonal, 0
|
||||
return
|
||||
|
||||
CinnabarIsland_Gym_EventScript_OpenDoor4:: @ 816E1D7
|
||||
setmetatile 11, 21, 721, 1
|
||||
setmetatile 11, 22, 649, 0
|
||||
setmetatile 11, 23, 641, 0
|
||||
setmetatile 11, 21, METATILE_CinnabarGym_Wall_RetractedBarrier, 1
|
||||
setmetatile 11, 22, METATILE_CinnabarGym_Floor_ShadeFull, 0
|
||||
setmetatile 11, 23, METATILE_CinnabarGym_Floor, 0
|
||||
return
|
||||
|
||||
CinnabarIsland_Gym_EventScript_OpenDoor5:: @ 816E1F3
|
||||
setmetatile 5, 16, 711, 0
|
||||
setmetatile 6, 16, 710, 0
|
||||
setmetatile 5, 17, 719, 0
|
||||
setmetatile 6, 17, 718, 0
|
||||
setmetatile 5, 18, 649, 0
|
||||
setmetatile 6, 18, 641, 0
|
||||
setmetatile 7, 18, 642, 0
|
||||
setmetatile 5, 16, METATILE_CinnabarGym_Floor_WallLeftCorner, 0
|
||||
setmetatile 6, 16, METATILE_CinnabarGym_Floor_WallRightCorner, 0
|
||||
setmetatile 5, 17, METATILE_CinnabarGym_Floor_WallLeftEdge, 0
|
||||
setmetatile 6, 17, METATILE_CinnabarGym_Floor_WallRightEdge, 0
|
||||
setmetatile 5, 18, METATILE_CinnabarGym_Floor_ShadeFull, 0
|
||||
setmetatile 6, 18, METATILE_CinnabarGym_Floor, 0
|
||||
setmetatile 7, 18, METATILE_CinnabarGym_Floor_ShadeDiagonal, 0
|
||||
return
|
||||
|
||||
CinnabarIsland_Gym_EventScript_OpenDoor6:: @ 816E233
|
||||
setmetatile 5, 8, 711, 0
|
||||
setmetatile 6, 8, 710, 0
|
||||
setmetatile 5, 9, 719, 0
|
||||
setmetatile 6, 9, 718, 0
|
||||
setmetatile 5, 10, 649, 0
|
||||
setmetatile 6, 10, 641, 0
|
||||
setmetatile 7, 10, 642, 0
|
||||
setmetatile 5, 8, METATILE_CinnabarGym_Floor_WallLeftCorner, 0
|
||||
setmetatile 6, 8, METATILE_CinnabarGym_Floor_WallRightCorner, 0
|
||||
setmetatile 5, 9, METATILE_CinnabarGym_Floor_WallLeftEdge, 0
|
||||
setmetatile 6, 9, METATILE_CinnabarGym_Floor_WallRightEdge, 0
|
||||
setmetatile 5, 10, METATILE_CinnabarGym_Floor_ShadeFull, 0
|
||||
setmetatile 6, 10, METATILE_CinnabarGym_Floor, 0
|
||||
setmetatile 7, 10, METATILE_CinnabarGym_Floor_ShadeDiagonal, 0
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user