Reformat compare + goto_if/call_if to single statements
This commit is contained in:
@@ -92,8 +92,7 @@ PetalburgWoods_EventScript_DevonResearcherPostBattle::
|
||||
waitmovement 0
|
||||
msgbox PetalburgWoods_Text_ThatWasAwfullyClose, MSGBOX_DEFAULT
|
||||
giveitem ITEM_GREAT_BALL
|
||||
compare VAR_RESULT, FALSE
|
||||
goto_if_eq PetalburgWoods_EventScript_BagFull
|
||||
goto_if_eq VAR_RESULT, FALSE, PetalburgWoods_EventScript_BagFull
|
||||
goto PetalburgWoods_EventScript_DevonResearcherFinish
|
||||
end
|
||||
|
||||
@@ -255,8 +254,7 @@ PetalburgWoods_EventScript_Girl::
|
||||
goto_if_set FLAG_RECEIVED_MIRACLE_SEED, PetalburgWoods_EventScript_ExplainMiracleSeed
|
||||
msgbox PetalburgWoods_Text_TryUsingThisItem, MSGBOX_DEFAULT
|
||||
giveitem ITEM_MIRACLE_SEED
|
||||
compare VAR_RESULT, FALSE
|
||||
goto_if_eq Common_EventScript_ShowBagIsFull
|
||||
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
|
||||
setflag FLAG_RECEIVED_MIRACLE_SEED
|
||||
release
|
||||
end
|
||||
@@ -282,12 +280,10 @@ PetalburgWoods_EventScript_Lyle::
|
||||
PetalburgWoods_EventScript_James::
|
||||
trainerbattle_single TRAINER_JAMES_1, PetalburgWoods_Text_InstantlyPopularWithBugPokemon, PetalburgWoods_Text_CantBePopularIfILose, PetalburgWoods_EventScript_TryRegisterJames
|
||||
specialvar VAR_RESULT, ShouldTryRematchBattle
|
||||
compare VAR_RESULT, TRUE
|
||||
goto_if_eq PetalburgWoods_EventScript_JamesRematch
|
||||
goto_if_eq VAR_RESULT, TRUE, PetalburgWoods_EventScript_JamesRematch
|
||||
setvar VAR_0x8004, TRAINER_JAMES_1
|
||||
specialvar VAR_RESULT, IsTrainerRegistered
|
||||
compare VAR_RESULT, FALSE
|
||||
goto_if_eq PetalburgWoods_EventScript_TryRegisterJames2
|
||||
goto_if_eq VAR_RESULT, FALSE, PetalburgWoods_EventScript_TryRegisterJames2
|
||||
msgbox PetalburgWoods_Text_PeopleRespectYou, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user