Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion asm/macros/event.inc
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
.set ALLOCATE_SCRIPT_CMD_TABLE, 0
.include "data/script_cmd_table.inc"

.set ALLOCATE_SPECIAL_TABLE, 0
.include "data/specials.inc"

.set _last_implicit_waitstate, -1

@ Does nothing.
.macro nop
.byte SCR_OP_NOP
Expand Down Expand Up @@ -272,6 +277,9 @@
.macro special function:req
.byte SCR_OP_SPECIAL
.2byte SPECIAL_\function
.if SPECIAL_WAITSTATE_\function
waitstate implicit=1
.endif
.endm

@ Calls a function listed in the table in data/specials.inc.
Expand All @@ -280,12 +288,25 @@
.byte SCR_OP_SPECIALVAR
.2byte \output
.2byte SPECIAL_\function
.if SPECIAL_WAITSTATE_\function
waitstate implicit=1
.endif
.endm

@ Blocks script execution until a command or C code manually unblocks it. Generally used with specific
@ commands and specials. Calling ScriptContext_Enable for instance will allow execution to continue.
.macro waitstate
@
@ implicit is set when a waitstate is generated as part of another command (e.g. special)
@ if an implicit waitstate is immediately followed by another waitstate, a warning is raised
.macro waitstate, implicit=0
.if _last_implicit_waitstate == .
.warning "explicit waitstate follows implicit waitstate, ignoring"
.else
.byte SCR_OP_WAITSTATE
.endif
.if \implicit
.set _last_implicit_waitstate, .
.endif
.endm

@ Blocks script execution for frames. (Pokemon Emerald runs at just shy of 60 frames per second.)
Expand Down
4 changes: 2 additions & 2 deletions data/event_scripts.s
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ gSpecialVars::
.4byte gSpecialVar_Unused_0x8014
.4byte gTrainerBattleOpponent_A

.purgem def_special
.set ALLOCATE_SPECIAL_TABLE, 1
.include "data/specials.inc"

gStdScripts::
Expand Down Expand Up @@ -729,7 +731,6 @@ EventScript_RegionMap::
msgbox Common_Text_LookCloserAtMap, MSGBOX_DEFAULT
fadescreen FADE_TO_BLACK
special FieldShowRegionMap
waitstate
releaseall
end

Expand Down Expand Up @@ -812,7 +813,6 @@ Common_EventScript_FerryDepartIsland::
Common_EventScript_NameReceivedPartyMon::
fadescreen FADE_TO_BLACK
special ChangePokemonNickname
waitstate
return

Common_EventScript_PlayerHandedOverTheItem::
Expand Down
1 change: 0 additions & 1 deletion data/maps/AncientTomb/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ AncientTomb_EventScript_Registeel::
setwildbattle SPECIES_REGISTEEL, 40
setflag FLAG_SYS_CTRL_OBJ_DELETE
special StartRegiBattle
waitstate
clearflag FLAG_SYS_CTRL_OBJ_DELETE
specialvar VAR_RESULT, GetBattleOutcome
goto_if_eq VAR_RESULT, B_OUTCOME_WON, AncientTomb_EventScript_DefeatedRegisteel
Expand Down
1 change: 0 additions & 1 deletion data/maps/BattleFrontier_BattleArenaBattleRoom/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,6 @@ BattleFrontier_BattleArenaBattleRoom_EventScript_DoArenaBattle::
setvar VAR_0x8004, SPECIAL_BATTLE_ARENA
setvar VAR_0x8005, 0
special DoSpecialTrainerBattle
waitstate
frontier_restorehelditems
special HealPlayerParty
frontier_resetsketch
Expand Down
1 change: 0 additions & 1 deletion data/maps/BattleFrontier_BattleArenaLobby/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ BattleFrontier_BattleArenaLobby_EventScript_TryEnterChallenge::
copyvar VAR_0x8004, VAR_RESULT
setvar VAR_0x8005, FRONTIER_PARTY_SIZE
special ChoosePartyForBattleFrontier
waitstate
goto_if_eq VAR_RESULT, 0, BattleFrontier_BattleArenaLobby_EventScript_LoadPartyAndCancelChallenge
msgbox BattleFrontier_BattleArenaLobby_Text_OkayToSave, MSGBOX_YESNO
switch VAR_RESULT
Expand Down
1 change: 0 additions & 1 deletion data/maps/BattleFrontier_BattleDomeBattleRoom/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,6 @@ BattleFrontier_BattleDomeBattleRoom_EventScript_DoDomeBattle::
setvar VAR_0x8005, 0
setvar VAR_TEMP_9, 1
special DoSpecialTrainerBattle
waitstate
setvar VAR_TEMP_9, 0
dome_restorehelditems
special HealPlayerParty
Expand Down
1 change: 0 additions & 1 deletion data/maps/BattleFrontier_BattleDomeLobby/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ BattleFrontier_BattleDomeLobby_EventScript_TryEnterChallenge::
copyvar VAR_0x8004, VAR_RESULT
setvar VAR_0x8005, FRONTIER_PARTY_SIZE
special ChoosePartyForBattleFrontier
waitstate
goto_if_eq VAR_RESULT, 0, BattleFrontier_BattleDomeLobby_EventScript_LoadPartyCancelChallenge
msgbox BattleFrontier_BattleDomeLobby_Text_OkayToSaveBeforeChallenge, MSGBOX_YESNO
switch VAR_RESULT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ BattleFrontier_BattleDomePreBattleRoom_EventScript_ContinueChallenge::
copyvar VAR_0x8004, VAR_RESULT
setvar VAR_0x8005, DOME_BATTLE_PARTY_SIZE @ 2 of the 3 party mons are selected for battle
special ChoosePartyForBattleFrontier
waitstate
frontier_resetsketch
goto_if_eq VAR_RESULT, 0, BattleFrontier_BattleDomePreBattleRoom_EventScript_AskReadyForNextRound
dome_set DOME_DATA_SELECTED_MONS
Expand Down
2 changes: 0 additions & 2 deletions data/maps/BattleFrontier_BattleFactoryBattleRoom/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ BattleFrontier_BattleFactoryBattleRoom_EventScript_BattleOpponent::
setvar VAR_0x8004, SPECIAL_BATTLE_FACTORY
setvar VAR_0x8005, 0
special DoSpecialTrainerBattle
waitstate
switch VAR_RESULT
case 1, BattleFrontier_BattleFactoryBattleRoom_EventScript_DefeatedOpponent
BattleFrontier_BattleFactoryBattleRoom_EventScript_WarpToLobbyLost::
Expand Down Expand Up @@ -174,7 +173,6 @@ BattleFrontier_BattleFactoryBattleRoom_EventScript_DoNolandBattle::
setvar VAR_0x8004, SPECIAL_BATTLE_FACTORY
setvar VAR_0x8005, 0
special DoSpecialTrainerBattle
waitstate
return

BattleFrontier_BattleFactoryBattleRoom_EventScript_DefeatedNoland::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,6 @@ BattleFrontier_BattlePalaceBattleRoom_EventScript_DoPalaceBattle::
setvar VAR_0x8004, SPECIAL_BATTLE_PALACE
setvar VAR_0x8005, 0
special DoSpecialTrainerBattle
waitstate
frontier_restorehelditems
special HealPlayerParty
frontier_resetsketch
Expand Down
1 change: 0 additions & 1 deletion data/maps/BattleFrontier_BattlePalaceLobby/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ BattleFrontier_BattlePalaceLobby_EventScript_TryEnterChallenge::
copyvar VAR_0x8004, VAR_RESULT
setvar VAR_0x8005, FRONTIER_PARTY_SIZE
special ChoosePartyForBattleFrontier
waitstate
goto_if_eq VAR_RESULT, 0, BattleFrontier_BattlePalaceLobby_EventScript_LoadPartyAndCancelChallenge
msgbox BattleFrontier_BattlePalaceLobby_Text_MustSaveBeforeChallenge2, MSGBOX_YESNO
switch VAR_RESULT
Expand Down
2 changes: 0 additions & 2 deletions data/maps/BattleFrontier_BattlePikeLobby/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ BattleFrontier_BattlePikeLobby_EventScript_TryEnterChallenge::
copyvar VAR_0x8004, VAR_RESULT
setvar VAR_0x8005, FRONTIER_PARTY_SIZE
special ChoosePartyForBattleFrontier
waitstate
goto_if_eq VAR_RESULT, 0, BattleFrontier_BattlePikeLobby_EventScript_LoadPartyAndCancelChallenge
msgbox BattleFrontier_BattlePikeLobby_Text_SaveBeforeChallenge, MSGBOX_YESNO
switch VAR_RESULT
Expand Down Expand Up @@ -261,7 +260,6 @@ BattleFrontier_BattlePikeLobby_EventScript_ExitRules::
BattleFrontier_BattlePike_EventScript_CloseCurtain::
playse SE_PIKE_CURTAIN_CLOSE
special CloseBattlePikeCurtain
waitstate
waitse
return

Expand Down
4 changes: 0 additions & 4 deletions data/maps/BattleFrontier_BattlePikeRoomNormal/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ BattleFrontier_BattlePikeRoomNormal_EventScript_EnterSingleBattleRoom::
setvar VAR_0x8004, SPECIAL_BATTLE_PIKE_SINGLE
setvar VAR_0x8005, 0
special DoSpecialTrainerBattle
waitstate
switch VAR_RESULT
case 1, BattleFrontier_BattlePikeRoomNormal_EventScript_WonSingleBattle
BattleFrontier_BattlePikeRoomNormal_EventScript_WarpToLobbyLost::
Expand Down Expand Up @@ -64,7 +63,6 @@ BattleFrontier_BattlePikeRoomNormal_EventScript_EnterHardBattleRoom::
setvar VAR_0x8004, SPECIAL_BATTLE_PIKE_SINGLE
setvar VAR_0x8005, 0
special DoSpecialTrainerBattle
waitstate
switch VAR_RESULT
case 1, BattleFrontier_BattlePikeRoomNormal_EventScript_WonHardBattle
goto BattleFrontier_BattlePikeRoomNormal_EventScript_WarpToLobbyLost
Expand Down Expand Up @@ -255,7 +253,6 @@ BattleFrontier_BattlePikeRoomNormal_EventScript_EnterDoubleBattleRoom::
setvar VAR_0x8004, SPECIAL_BATTLE_PIKE_DOUBLE
setvar VAR_0x8005, 0
special DoSpecialTrainerBattle
waitstate
switch VAR_RESULT
case 1, BattleFrontier_BattlePikeRoomNormal_EventScript_WonDoubleBattle
goto BattleFrontier_BattlePikeRoomNormal_EventScript_WarpToLobbyLost
Expand Down Expand Up @@ -383,7 +380,6 @@ BattleFrontier_BattlePikeRoomNormal_EventScript_DoPikeQueenBattle::
setvar VAR_0x8004, SPECIAL_BATTLE_PIKE_SINGLE
setvar VAR_0x8005, 0
special DoSpecialTrainerBattle
waitstate
return

BattleFrontier_BattlePikeRoomNormal_Movement_ApproachPlayer:
Expand Down
3 changes: 0 additions & 3 deletions data/maps/BattleFrontier_BattlePyramidLobby/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ BattleFrontier_BattlePyramidLobby_EventScript_TryEnterChallenge::
copyvar VAR_0x8004, VAR_RESULT
setvar VAR_0x8005, FRONTIER_PARTY_SIZE
special ChoosePartyForBattleFrontier
waitstate
goto_if_eq VAR_RESULT, 0, BattleFrontier_BattlePyramidLobby_EventScript_LoadPartyAndCancelChallenge
msgbox BattleFrontier_BattlePyramidLobby_Text_OkayToSaveBeforeChallenge, MSGBOX_YESNO
switch VAR_RESULT
Expand Down Expand Up @@ -444,15 +443,13 @@ BattleFrontier_BattlePyramidLobby_EventScript_PickItemsToKeep::

BattleFrontier_BattlePyramidLobby_EventScript_PickItemsFromBag::
special ChooseItemsToTossFromPyramidBag
waitstate
message BattleFrontier_BattlePyramidLobby_Text_PickItemsToKeep
waitmessage
goto BattleFrontier_BattlePyramidLobby_EventScript_PickItemsToKeep
end

BattleFrontier_BattlePyramidLobby_EventScript_PickItemsFromParty::
special BattlePyramidChooseMonHeldItems
waitstate
message BattleFrontier_BattlePyramidLobby_Text_PickItemsToKeep
waitmessage
goto BattleFrontier_BattlePyramidLobby_EventScript_PickItemsToKeep
Expand Down
1 change: 0 additions & 1 deletion data/maps/BattleFrontier_BattlePyramidTop/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ BattleFrontier_BattlePyramidTop_EventScript_DoBrandonBattle::
setvar VAR_0x8004, SPECIAL_BATTLE_PYRAMID
setvar VAR_0x8005, 0
special DoSpecialTrainerBattle
waitstate
return

BattleFrontier_BattlePyramidTop_Movement_AttendantMoveAside:
Expand Down
1 change: 0 additions & 1 deletion data/maps/BattleFrontier_BattleTowerBattleRoom/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,6 @@ BattleFrontier_BattleTowerBattleRoom_EventScript_DoTowerBattle::
setvar VAR_0x8004, SPECIAL_BATTLE_TOWER
setvar VAR_0x8005, 0
special DoSpecialTrainerBattle
waitstate
copyvar VAR_0x8004, VAR_FRONTIER_BATTLE_MODE
goto_if_eq VAR_0x8004, FRONTIER_MODE_LINK_MULTIS, BattleFrontier_BattleTowerBattleRoom_EventScript_EndTowerBattle
frontier_restorehelditems
Expand Down
1 change: 0 additions & 1 deletion data/maps/BattleFrontier_BattleTowerElevator/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ BattleFrontier_BattleTowerElevator_EventScript_EnterElevator::
special BufferBattleTowerElevatorFloors
waitse
special MoveElevator
waitstate
delay 48
applymovement LOCALID_TOWER_ELEVATOR_ATTENDANT, BattleFrontier_BattleTowerElevator_Movement_AttendantExit
applymovement LOCALID_PLAYER, BattleFrontier_BattleTowerElevator_Movement_PlayerExit
Expand Down
7 changes: 0 additions & 7 deletions data/maps/BattleFrontier_BattleTowerLobby/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ BattleFrontier_BattleTowerLobby_EventScript_TryEnterSinglesChallenge::
copyvar VAR_0x8004, VAR_RESULT
setvar VAR_0x8005, FRONTIER_PARTY_SIZE
special ChoosePartyForBattleFrontier
waitstate
goto_if_eq VAR_RESULT, 0, BattleFrontier_BattleTowerLobby_EventScript_LoadPartyCancelChallenge
msgbox BattleFrontier_BattleTowerLobby_Text_OkayToSaveBeforeEntering, MSGBOX_YESNO
switch VAR_RESULT
Expand Down Expand Up @@ -260,7 +259,6 @@ BattleFrontier_BattleTowerLobby_EventScript_TryEnterDoublesChallenge::
copyvar VAR_0x8004, VAR_RESULT
setvar VAR_0x8005, FRONTIER_DOUBLES_PARTY_SIZE
special ChoosePartyForBattleFrontier
waitstate
goto_if_eq VAR_RESULT, 0, BattleFrontier_BattleTowerLobby_EventScript_LoadPartyCancelChallenge
msgbox BattleFrontier_BattleTowerLobby_Text_OkayToSaveBeforeEntering, MSGBOX_YESNO
switch VAR_RESULT
Expand Down Expand Up @@ -324,7 +322,6 @@ BattleFrontier_BattleTowerLobby_EventScript_TryEnterMultisChallenge::
copyvar VAR_0x8004, VAR_RESULT
setvar VAR_0x8005, FRONTIER_MULTI_PARTY_SIZE
special ChoosePartyForBattleFrontier
waitstate
goto_if_eq VAR_RESULT, 0, BattleFrontier_BattleTowerLobby_EventScript_LoadPartyCancelChallenge
msgbox BattleFrontier_BattleTowerLobby_Text_OkayToSaveBeforeEntering, MSGBOX_YESNO
switch VAR_RESULT
Expand Down Expand Up @@ -387,7 +384,6 @@ BattleFrontier_BattleTowerLobby_EventScript_TryEnterLinkMultisChallenge::
copyvar VAR_0x8004, VAR_RESULT
setvar VAR_0x8005, FRONTIER_MULTI_PARTY_SIZE
special ChoosePartyForBattleFrontier
waitstate
goto_if_eq VAR_RESULT, 0, BattleFrontier_BattleTowerLobby_EventScript_LoadPartyCancelChallenge
msgbox BattleFrontier_BattleTowerLobby_Text_OkayToSaveBeforeEntering, MSGBOX_YESNO
switch VAR_RESULT
Expand Down Expand Up @@ -754,7 +750,6 @@ BattleFrontier_BattleTowerLobby_EventScript_TryCableLink::
waitmessage
setvar VAR_0x8005, 0
special TryBattleLinkup
waitstate
goto_if_eq VAR_RESULT, LINKUP_SUCCESS, BattleFrontier_BattleTowerLobby_EventScript_CableLinkSuccessful
goto_if_eq VAR_RESULT, LINKUP_SOMEONE_NOT_READY, CableClub_EventScript_AbortLinkSomeoneNotReady
goto_if_eq VAR_RESULT, LINKUP_DIFF_SELECTIONS, BattleFrontier_BattleTowerLobby_EventScript_AbortLinkDifferentSelections
Expand Down Expand Up @@ -812,7 +807,6 @@ BattleFrontier_BattleTowerLobby_EventScript_CableLinkSuccessful::
waitmessage
tower_save CHALLENGE_STATUS_SAVING
special SaveForBattleTowerLink
waitstate
playse SE_SAVE
waitse
special TrySetBattleTowerLinkType
Expand Down Expand Up @@ -865,7 +859,6 @@ BattleFrontier_BattleTowerLobby_EventScript_WirelessLinkSuccessful::
waitmessage
tower_save CHALLENGE_STATUS_SAVING
special SaveForBattleTowerLink
waitstate
playse SE_SAVE
waitse
goto BattleFrontier_BattleTowerLobby_EventScript_EnterElevator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,6 @@ BattleFrontier_BattleTowerMultiBattleRoom_EventScript_ContinueChallengeLink::
message gText_LinkStandby3
waitmessage
special LinkRetireStatusWithBattleTowerPartner
waitstate
goto_if_ne VAR_RESULT, BATTLE_TOWER_LINKSTAT_CONTINUE, BattleFrontier_BattleTowerMultiBattleRoom_EventScript_WarpToLobbyLost
goto BattleFrontier_BattleTowerMultiBattleRoom_EventScript_LinkDelayForMsg
end
Expand Down Expand Up @@ -362,7 +361,6 @@ BattleFrontier_BattleTowerMultiBattleRoom_EventScript_RetireChallengeLink::
message gText_LinkStandby3
waitmessage
special LinkRetireStatusWithBattleTowerPartner
waitstate
goto BattleFrontier_BattleTowerMultiBattleRoom_EventScript_WarpToLobbyLost
end

Expand Down
4 changes: 0 additions & 4 deletions data/maps/BattleFrontier_ExchangeServiceCorner/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor1::
setvar VAR_0x8004, SCROLL_MULTI_BF_EXCHANGE_CORNER_DECOR_VENDOR_1
special ShowFrontierExchangeCornerItemIconWindow
special ShowScrollableMultichoice
waitstate
special CloseFrontierExchangeCornerItemIconWindow
switch VAR_RESULT
case 0, BattleFrontier_ExchangeServiceCorner_EventScript_KissPoster
Expand Down Expand Up @@ -187,7 +186,6 @@ BattleFrontier_ExchangeServiceCorner_EventScript_ChooseDecor2::
setvar VAR_0x8004, SCROLL_MULTI_BF_EXCHANGE_CORNER_DECOR_VENDOR_2
special ShowFrontierExchangeCornerItemIconWindow
special ShowScrollableMultichoice
waitstate
special CloseFrontierExchangeCornerItemIconWindow
switch VAR_RESULT
case 0, BattleFrontier_ExchangeServiceCorner_EventScript_LaprasDoll
Expand Down Expand Up @@ -251,7 +249,6 @@ BattleFrontier_ExchangeServiceCorner_EventScript_ChooseVitamin::
setvar VAR_0x8004, SCROLL_MULTI_BF_EXCHANGE_CORNER_VITAMIN_VENDOR
special ShowFrontierExchangeCornerItemIconWindow
special ShowScrollableMultichoice
waitstate
special CloseFrontierExchangeCornerItemIconWindow
switch VAR_RESULT
case 0, BattleFrontier_ExchangeServiceCorner_EventScript_Protein
Expand Down Expand Up @@ -324,7 +321,6 @@ BattleFrontier_ExchangeServiceCorner_EventScript_ChooseHoldItem::
setvar VAR_0x8004, SCROLL_MULTI_BF_EXCHANGE_CORNER_HOLD_ITEM_VENDOR
special ShowFrontierExchangeCornerItemIconWindow
special ShowScrollableMultichoice
waitstate
special CloseFrontierExchangeCornerItemIconWindow
switch VAR_RESULT
case 0, BattleFrontier_ExchangeServiceCorner_EventScript_Leftovers
Expand Down
1 change: 0 additions & 1 deletion data/maps/BattleFrontier_Lounge1/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ BattleFrontier_Lounge1_EventScript_Breeder::

BattleFrontier_Lounge1_EventScript_ChooseMonToShowBreeder::
special ChoosePartyMon
waitstate
goto_if_ne VAR_0x8004, PARTY_NOTHING_CHOSEN, BattleFrontier_Lounge1_EventScript_ShowMonToBreeder
goto_if_eq VAR_0x8004, PARTY_NOTHING_CHOSEN, BattleFrontier_Lounge1_EventScript_CancelMonSelect
end
Expand Down
1 change: 0 additions & 1 deletion data/maps/BattleFrontier_Lounge5/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ BattleFrontier_Lounge5_EventScript_NatureGirl::
msgbox BattleFrontier_Lounge5_Text_NatureGirlGreeting, MSGBOX_YESNO
goto_if_eq VAR_RESULT, NO, BattleFrontier_Lounge5_EventScript_NatureGirlNoneShown
special ChoosePartyMon
waitstate
lock
faceplayer
goto_if_eq VAR_0x8004, PARTY_NOTHING_CHOSEN, BattleFrontier_Lounge5_EventScript_NatureGirlNoneShown
Expand Down
2 changes: 0 additions & 2 deletions data/maps/BattleFrontier_Lounge6/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ BattleFrontier_Lounge6_EventScript_Trader::
msgbox BattleFrontier_Lounge6_Text_WouldYouLikeToTrade, MSGBOX_YESNO
goto_if_eq VAR_RESULT, NO, BattleFrontier_Lounge6_EventScript_DeclineTrade
special ChoosePartyMon
waitstate
copyvar VAR_0x800A, VAR_0x8004
goto_if_eq VAR_0x8004, PARTY_NOTHING_CHOSEN, BattleFrontier_Lounge6_EventScript_DeclineTrade
copyvar VAR_0x8005, VAR_0x800A
Expand All @@ -23,7 +22,6 @@ BattleFrontier_Lounge6_EventScript_Trader::
copyvar VAR_0x8005, VAR_0x800A
special CreateInGameTradePokemon
special DoInGameTradeScene
waitstate
msgbox BattleFrontier_Lounge6_Text_PromiseIllBeGoodToIt, MSGBOX_DEFAULT
setflag FLAG_BATTLE_FRONTIER_TRADE_DONE
release
Expand Down
Loading