Use 'goto_if_eq VAR, value, Script' syntax
This commit is contained in:
@@ -18,10 +18,8 @@ PokedexRating_EventScript_ShowRatingMsg::
|
||||
copyvar VAR_0x8004, VAR_0x8009
|
||||
special GetProfOaksRatingMessage
|
||||
waitmessage
|
||||
compare VAR_RESULT, FALSE
|
||||
call_if_eq PokedexRating_EventScript_NormalFanfare
|
||||
compare VAR_RESULT, TRUE
|
||||
call_if_eq PokedexRating_EventScript_DexCompleteFanfare
|
||||
call_if_eq VAR_RESULT, FALSE, PokedexRating_EventScript_NormalFanfare
|
||||
call_if_eq VAR_RESULT, TRUE, PokedexRating_EventScript_DexCompleteFanfare
|
||||
waitfanfare
|
||||
waitbuttonpress
|
||||
return
|
||||
@@ -48,8 +46,7 @@ PokedexRating_EventScript_Rate::
|
||||
msgbox PokedexRating_Text_SeenXOwnedY
|
||||
call_if_unset FLAG_OAKS_RATING_IS_VIA_PC, PokedexRating_EventScript_SetTextColor
|
||||
call PokedexRating_EventScript_ShowRatingMsg
|
||||
compare VAR_0x800A, FALSE
|
||||
goto_if_eq PokedexRating_EventScript_EndRating @ National Dex not enabled
|
||||
goto_if_eq VAR_0x800A, FALSE, PokedexRating_EventScript_EndRating @ National Dex not enabled
|
||||
setvar VAR_0x8004, 1
|
||||
specialvar VAR_RESULT, GetPokedexCount
|
||||
copyvar VAR_0x8008, VAR_0x8005
|
||||
@@ -58,10 +55,8 @@ PokedexRating_EventScript_Rate::
|
||||
buffernumberstring STR_VAR_2, VAR_0x8009 @ Num National Caught
|
||||
msgbox PokedexRating_Text_NationalDexSeenXOwnedY
|
||||
specialvar VAR_RESULT, HasAllMons
|
||||
compare VAR_RESULT, FALSE
|
||||
goto_if_eq PokedexRating_EventScript_DexIncomplete
|
||||
compare VAR_RESULT, TRUE
|
||||
goto_if_eq PokedexRating_EventScript_DexComplete
|
||||
goto_if_eq VAR_RESULT, FALSE, PokedexRating_EventScript_DexIncomplete
|
||||
goto_if_eq VAR_RESULT, TRUE, PokedexRating_EventScript_DexComplete
|
||||
end
|
||||
|
||||
PokedexRating_EventScript_SetTextColor::
|
||||
|
||||
Reference in New Issue
Block a user