Reformat compare + goto_if/call_if to single statements
This commit is contained in:
@@ -23,8 +23,7 @@ Route124_EventScript_Roland::
|
||||
Route124_EventScript_Jenny::
|
||||
trainerbattle_single TRAINER_JENNY_1, Route124_Text_JennyIntro, Route124_Text_JennyDefeat, Route124_EventScript_RegisterJenny
|
||||
specialvar VAR_RESULT, ShouldTryRematchBattle
|
||||
compare VAR_RESULT, TRUE
|
||||
goto_if_eq Route124_EventScript_RematchJenny
|
||||
goto_if_eq VAR_RESULT, TRUE, Route124_EventScript_RematchJenny
|
||||
msgbox Route124_Text_JennyPostBattle, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
@@ -55,8 +54,7 @@ Route124_EventScript_Chad::
|
||||
Route124_EventScript_Lila::
|
||||
trainerbattle_double TRAINER_LILA_AND_ROY_1, Route124_Text_LilaIntro, Route124_Text_LilaDefeat, Route124_Text_LilaNotEnoughMons, Route124_EventScript_RegisterLila
|
||||
specialvar VAR_RESULT, ShouldTryRematchBattle
|
||||
compare VAR_RESULT, TRUE
|
||||
goto_if_eq Route124_EventScript_RematchLila
|
||||
goto_if_eq VAR_RESULT, TRUE, Route124_EventScript_RematchLila
|
||||
msgbox Route124_Text_LilaPostBattle, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
@@ -75,8 +73,7 @@ Route124_EventScript_RematchLila::
|
||||
Route124_EventScript_Roy::
|
||||
trainerbattle_double TRAINER_LILA_AND_ROY_1, Route124_Text_RoyIntro, Route124_Text_RoyDefeat, Route124_Text_RoyNotEnoughMons, Route124_EventScript_RegisterRoy
|
||||
specialvar VAR_RESULT, ShouldTryRematchBattle
|
||||
compare VAR_RESULT, TRUE
|
||||
goto_if_eq Route124_EventScript_RematchRoy
|
||||
goto_if_eq VAR_RESULT, TRUE, Route124_EventScript_RematchRoy
|
||||
msgbox Route124_Text_RoyPostBattle, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user