Reformat compare + goto_if/call_if to single statements
This commit is contained in:
@@ -14,38 +14,30 @@ BattleFrontier_ExchangeServiceCorner_EventScript_ClerkGoodbye::
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_TryPurchasePrize::
|
||||
specialvar VAR_TEMP_1, GetFrontierBattlePoints
|
||||
compare VAR_TEMP_1, VAR_0x8008
|
||||
goto_if_ge BattleFrontier_ExchangeServiceCorner_EventScript_TryGivePrize
|
||||
goto_if_ge VAR_TEMP_1, VAR_0x8008, BattleFrontier_ExchangeServiceCorner_EventScript_TryGivePrize
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_DontHaveEnoughPoints, MSGBOX_DEFAULT
|
||||
compare VAR_TEMP_2, EXCHANGE_CORNER_DECOR1_CLERK
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor1
|
||||
compare VAR_TEMP_2, EXCHANGE_CORNER_DECOR2_CLERK
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor2
|
||||
compare VAR_TEMP_2, EXCHANGE_CORNER_VITAMIN_CLERK
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseVitamin
|
||||
goto_if_eq VAR_TEMP_2, EXCHANGE_CORNER_DECOR1_CLERK, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor1
|
||||
goto_if_eq VAR_TEMP_2, EXCHANGE_CORNER_DECOR2_CLERK, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor2
|
||||
goto_if_eq VAR_TEMP_2, EXCHANGE_CORNER_VITAMIN_CLERK, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseVitamin
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_ChooseHoldItem
|
||||
end
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_TryGivePrize::
|
||||
compare VAR_TEMP_2, EXCHANGE_CORNER_DECOR1_CLERK
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_TryGiveDecor
|
||||
compare VAR_TEMP_2, EXCHANGE_CORNER_DECOR2_CLERK
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_TryGiveDecor
|
||||
goto_if_eq VAR_TEMP_2, EXCHANGE_CORNER_DECOR1_CLERK, BattleFrontier_ExchangeServiceCorner_EventScript_TryGiveDecor
|
||||
goto_if_eq VAR_TEMP_2, EXCHANGE_CORNER_DECOR2_CLERK, BattleFrontier_ExchangeServiceCorner_EventScript_TryGiveDecor
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_TryGiveItem
|
||||
end
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_TryGiveDecor::
|
||||
checkdecorspace VAR_0x8009
|
||||
compare VAR_RESULT, FALSE
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_NoRoomForDecor
|
||||
goto_if_eq VAR_RESULT, FALSE, BattleFrontier_ExchangeServiceCorner_EventScript_NoRoomForDecor
|
||||
copyvar VAR_0x8004, VAR_0x8008
|
||||
special TakeFrontierBattlePoints
|
||||
adddecoration VAR_0x8009
|
||||
special UpdateBattlePointsWindow
|
||||
playse SE_SHOP
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_WellSendItToPC, MSGBOX_DEFAULT
|
||||
compare VAR_TEMP_2, EXCHANGE_CORNER_DECOR1_CLERK
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor1
|
||||
goto_if_eq VAR_TEMP_2, EXCHANGE_CORNER_DECOR1_CLERK, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor1
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor2
|
||||
end
|
||||
|
||||
@@ -57,16 +49,14 @@ BattleFrontier_ExchangeServiceCorner_EventScript_NoRoomForDecor::
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_TryGiveItem::
|
||||
checkitemspace VAR_0x8009
|
||||
compare VAR_RESULT, FALSE
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_BagFull
|
||||
goto_if_eq VAR_RESULT, FALSE, BattleFrontier_ExchangeServiceCorner_EventScript_BagFull
|
||||
copyvar VAR_0x8004, VAR_0x8008
|
||||
special TakeFrontierBattlePoints
|
||||
additem VAR_0x8009
|
||||
special UpdateBattlePointsWindow
|
||||
playse SE_SHOP
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_HereIsYourPrize, MSGBOX_DEFAULT
|
||||
compare VAR_TEMP_2, EXCHANGE_CORNER_VITAMIN_CLERK
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseVitamin
|
||||
goto_if_eq VAR_TEMP_2, EXCHANGE_CORNER_VITAMIN_CLERK, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseVitamin
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_ChooseHoldItem
|
||||
end
|
||||
|
||||
@@ -107,8 +97,7 @@ BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor1::
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_KissPoster::
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_ConfirmKissPoster, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor1
|
||||
goto_if_eq VAR_RESULT, NO, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor1
|
||||
setvar VAR_0x8008, 16
|
||||
setvar VAR_0x8009, DECOR_KISS_POSTER
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_TryPurchasePrize
|
||||
@@ -116,8 +105,7 @@ BattleFrontier_ExchangeServiceCorner_EventScript_KissPoster::
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_KissCushion::
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_ConfirmKissCushion, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor1
|
||||
goto_if_eq VAR_RESULT, NO, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor1
|
||||
setvar VAR_0x8008, 32
|
||||
setvar VAR_0x8009, DECOR_KISS_CUSHION
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_TryPurchasePrize
|
||||
@@ -125,8 +113,7 @@ BattleFrontier_ExchangeServiceCorner_EventScript_KissCushion::
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_SmoochumDoll::
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_ConfirmSmoochumDoll, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor1
|
||||
goto_if_eq VAR_RESULT, NO, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor1
|
||||
setvar VAR_0x8008, 32
|
||||
setvar VAR_0x8009, DECOR_SMOOCHUM_DOLL
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_TryPurchasePrize
|
||||
@@ -134,8 +121,7 @@ BattleFrontier_ExchangeServiceCorner_EventScript_SmoochumDoll::
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_TogepiDoll::
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_ConfirmTogepiDoll, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor1
|
||||
goto_if_eq VAR_RESULT, NO, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor1
|
||||
setvar VAR_0x8008, 48
|
||||
setvar VAR_0x8009, DECOR_TOGEPI_DOLL
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_TryPurchasePrize
|
||||
@@ -143,8 +129,7 @@ BattleFrontier_ExchangeServiceCorner_EventScript_TogepiDoll::
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_MeowthDoll::
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_ConfirmMeowthDoll, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor1
|
||||
goto_if_eq VAR_RESULT, NO, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor1
|
||||
setvar VAR_0x8008, 48
|
||||
setvar VAR_0x8009, DECOR_MEOWTH_DOLL
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_TryPurchasePrize
|
||||
@@ -152,8 +137,7 @@ BattleFrontier_ExchangeServiceCorner_EventScript_MeowthDoll::
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_ClefairyDoll::
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_ConfirmClefairyDoll, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor1
|
||||
goto_if_eq VAR_RESULT, NO, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor1
|
||||
setvar VAR_0x8008, 48
|
||||
setvar VAR_0x8009, DECOR_CLEFAIRY_DOLL
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_TryPurchasePrize
|
||||
@@ -161,8 +145,7 @@ BattleFrontier_ExchangeServiceCorner_EventScript_ClefairyDoll::
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_DittoDoll::
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_ConfirmDittoDoll, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor1
|
||||
goto_if_eq VAR_RESULT, NO, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor1
|
||||
setvar VAR_0x8008, 48
|
||||
setvar VAR_0x8009, DECOR_DITTO_DOLL
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_TryPurchasePrize
|
||||
@@ -170,8 +153,7 @@ BattleFrontier_ExchangeServiceCorner_EventScript_DittoDoll::
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_CyndaquilDoll::
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_ConfirmCyndaquilDoll, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor1
|
||||
goto_if_eq VAR_RESULT, NO, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor1
|
||||
setvar VAR_0x8008, 80
|
||||
setvar VAR_0x8009, DECOR_CYNDAQUIL_DOLL
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_TryPurchasePrize
|
||||
@@ -179,8 +161,7 @@ BattleFrontier_ExchangeServiceCorner_EventScript_CyndaquilDoll::
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_ChikoritaDoll::
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_ConfirmChikoritaDoll, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor1
|
||||
goto_if_eq VAR_RESULT, NO, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor1
|
||||
setvar VAR_0x8008, 80
|
||||
setvar VAR_0x8009, DECOR_CHIKORITA_DOLL
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_TryPurchasePrize
|
||||
@@ -188,8 +169,7 @@ BattleFrontier_ExchangeServiceCorner_EventScript_ChikoritaDoll::
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_TotodileDoll::
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_ConfirmTotodileDoll, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor1
|
||||
goto_if_eq VAR_RESULT, NO, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor1
|
||||
setvar VAR_0x8008, 80
|
||||
setvar VAR_0x8009, DECOR_TOTODILE_DOLL
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_TryPurchasePrize
|
||||
@@ -221,8 +201,7 @@ BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor2::
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_LaprasDoll::
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_ConfirmLaprasDoll, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor2
|
||||
goto_if_eq VAR_RESULT, NO, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor2
|
||||
setvar VAR_0x8008, 128
|
||||
setvar VAR_0x8009, DECOR_LAPRAS_DOLL
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_TryPurchasePrize
|
||||
@@ -230,8 +209,7 @@ BattleFrontier_ExchangeServiceCorner_EventScript_LaprasDoll::
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_SnorlaxDoll::
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_ConfirmSnorlaxDoll, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor2
|
||||
goto_if_eq VAR_RESULT, NO, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor2
|
||||
setvar VAR_0x8008, 128
|
||||
setvar VAR_0x8009, DECOR_SNORLAX_DOLL
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_TryPurchasePrize
|
||||
@@ -239,8 +217,7 @@ BattleFrontier_ExchangeServiceCorner_EventScript_SnorlaxDoll::
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_VenusaurDoll::
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_ConfirmVenusaurDoll, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor2
|
||||
goto_if_eq VAR_RESULT, NO, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor2
|
||||
setvar VAR_0x8008, 256
|
||||
setvar VAR_0x8009, DECOR_VENUSAUR_DOLL
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_TryPurchasePrize
|
||||
@@ -248,8 +225,7 @@ BattleFrontier_ExchangeServiceCorner_EventScript_VenusaurDoll::
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_CharizardDoll::
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_ConfirmCharizardDoll, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor2
|
||||
goto_if_eq VAR_RESULT, NO, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor2
|
||||
setvar VAR_0x8008, 256
|
||||
setvar VAR_0x8009, DECOR_CHARIZARD_DOLL
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_TryPurchasePrize
|
||||
@@ -257,8 +233,7 @@ BattleFrontier_ExchangeServiceCorner_EventScript_CharizardDoll::
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_BlastoiseDoll::
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_ConfirmBlastoiseDoll, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor2
|
||||
goto_if_eq VAR_RESULT, NO, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor2
|
||||
setvar VAR_0x8008, 256
|
||||
setvar VAR_0x8009, DECOR_BLASTOISE_DOLL
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_TryPurchasePrize
|
||||
@@ -291,8 +266,7 @@ BattleFrontier_ExchangeServiceCorner_EventScript_ChooseVitamin::
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_Protein::
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_ConfirmProtein, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseVitamin
|
||||
goto_if_eq VAR_RESULT, NO, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseVitamin
|
||||
setvar VAR_0x8008, 1
|
||||
setvar VAR_0x8009, ITEM_PROTEIN
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_TryPurchasePrize
|
||||
@@ -300,8 +274,7 @@ BattleFrontier_ExchangeServiceCorner_EventScript_Protein::
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_Calcium::
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_ConfirmCalcium, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseVitamin
|
||||
goto_if_eq VAR_RESULT, NO, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseVitamin
|
||||
setvar VAR_0x8008, 1
|
||||
setvar VAR_0x8009, ITEM_CALCIUM
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_TryPurchasePrize
|
||||
@@ -309,8 +282,7 @@ BattleFrontier_ExchangeServiceCorner_EventScript_Calcium::
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_Iron::
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_ConfirmIron, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseVitamin
|
||||
goto_if_eq VAR_RESULT, NO, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseVitamin
|
||||
setvar VAR_0x8008, 1
|
||||
setvar VAR_0x8009, ITEM_IRON
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_TryPurchasePrize
|
||||
@@ -318,8 +290,7 @@ BattleFrontier_ExchangeServiceCorner_EventScript_Iron::
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_Zinc::
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_ConfirmZinc, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseVitamin
|
||||
goto_if_eq VAR_RESULT, NO, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseVitamin
|
||||
setvar VAR_0x8008, 1
|
||||
setvar VAR_0x8009, ITEM_ZINC
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_TryPurchasePrize
|
||||
@@ -327,8 +298,7 @@ BattleFrontier_ExchangeServiceCorner_EventScript_Zinc::
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_Carbos::
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_ConfirmCarbos, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseVitamin
|
||||
goto_if_eq VAR_RESULT, NO, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseVitamin
|
||||
setvar VAR_0x8008, 1
|
||||
setvar VAR_0x8009, ITEM_CARBOS
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_TryPurchasePrize
|
||||
@@ -336,8 +306,7 @@ BattleFrontier_ExchangeServiceCorner_EventScript_Carbos::
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_HPUp::
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_ConfirmHPUp, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseVitamin
|
||||
goto_if_eq VAR_RESULT, NO, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseVitamin
|
||||
setvar VAR_0x8008, 1
|
||||
setvar VAR_0x8009, ITEM_HP_UP
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_TryPurchasePrize
|
||||
@@ -373,8 +342,7 @@ BattleFrontier_ExchangeServiceCorner_EventScript_ChooseHoldItem::
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_Leftovers::
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_ConfirmLeftovers, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseHoldItem
|
||||
goto_if_eq VAR_RESULT, NO, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseHoldItem
|
||||
setvar VAR_0x8008, 48
|
||||
setvar VAR_0x8009, ITEM_LEFTOVERS
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_TryPurchasePrize
|
||||
@@ -382,8 +350,7 @@ BattleFrontier_ExchangeServiceCorner_EventScript_Leftovers::
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_WhiteHerb::
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_ConfirmWhiteHerb, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseHoldItem
|
||||
goto_if_eq VAR_RESULT, NO, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseHoldItem
|
||||
setvar VAR_0x8008, 48
|
||||
setvar VAR_0x8009, ITEM_WHITE_HERB
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_TryPurchasePrize
|
||||
@@ -391,8 +358,7 @@ BattleFrontier_ExchangeServiceCorner_EventScript_WhiteHerb::
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_QuickClaw::
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_ConfirmQuickClaw, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseHoldItem
|
||||
goto_if_eq VAR_RESULT, NO, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseHoldItem
|
||||
setvar VAR_0x8008, 48
|
||||
setvar VAR_0x8009, ITEM_QUICK_CLAW
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_TryPurchasePrize
|
||||
@@ -400,8 +366,7 @@ BattleFrontier_ExchangeServiceCorner_EventScript_QuickClaw::
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_MentalHerb::
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_ConfirmMentalHerb, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseHoldItem
|
||||
goto_if_eq VAR_RESULT, NO, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseHoldItem
|
||||
setvar VAR_0x8008, 48
|
||||
setvar VAR_0x8009, ITEM_MENTAL_HERB
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_TryPurchasePrize
|
||||
@@ -409,8 +374,7 @@ BattleFrontier_ExchangeServiceCorner_EventScript_MentalHerb::
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_Brightpowder::
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_ConfirmBrightpowder, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseHoldItem
|
||||
goto_if_eq VAR_RESULT, NO, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseHoldItem
|
||||
setvar VAR_0x8008, 64
|
||||
setvar VAR_0x8009, ITEM_BRIGHT_POWDER
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_TryPurchasePrize
|
||||
@@ -418,8 +382,7 @@ BattleFrontier_ExchangeServiceCorner_EventScript_Brightpowder::
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_ChoiceBand::
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_ConfirmChoiceBand, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseHoldItem
|
||||
goto_if_eq VAR_RESULT, NO, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseHoldItem
|
||||
setvar VAR_0x8008, 64
|
||||
setvar VAR_0x8009, ITEM_CHOICE_BAND
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_TryPurchasePrize
|
||||
@@ -427,8 +390,7 @@ BattleFrontier_ExchangeServiceCorner_EventScript_ChoiceBand::
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_KingsRock::
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_ConfirmKingsRock, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseHoldItem
|
||||
goto_if_eq VAR_RESULT, NO, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseHoldItem
|
||||
setvar VAR_0x8008, 64
|
||||
setvar VAR_0x8009, ITEM_KINGS_ROCK
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_TryPurchasePrize
|
||||
@@ -436,8 +398,7 @@ BattleFrontier_ExchangeServiceCorner_EventScript_KingsRock::
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_FocusBand::
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_ConfirmFocusBand, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseHoldItem
|
||||
goto_if_eq VAR_RESULT, NO, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseHoldItem
|
||||
setvar VAR_0x8008, 64
|
||||
setvar VAR_0x8009, ITEM_FOCUS_BAND
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_TryPurchasePrize
|
||||
@@ -445,8 +406,7 @@ BattleFrontier_ExchangeServiceCorner_EventScript_FocusBand::
|
||||
|
||||
BattleFrontier_ExchangeServiceCorner_EventScript_ScopeLens::
|
||||
msgbox BattleFrontier_ExchangeServiceCorner_Text_ConfirmScopeLens, MSGBOX_YESNO
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq BattleFrontier_ExchangeServiceCorner_EventScript_ChooseHoldItem
|
||||
goto_if_eq VAR_RESULT, NO, BattleFrontier_ExchangeServiceCorner_EventScript_ChooseHoldItem
|
||||
setvar VAR_0x8008, 64
|
||||
setvar VAR_0x8009, ITEM_SCOPE_LENS
|
||||
goto BattleFrontier_ExchangeServiceCorner_EventScript_TryPurchasePrize
|
||||
|
||||
Reference in New Issue
Block a user