Merge branch 'master' of https://github.com/pret/pokeemerald into doc-confetti
This commit is contained in:
@@ -786,19 +786,19 @@ BattleFrontier_BattleTowerLobby_EventScript_TryCableLink:: @ 823F2C5
|
||||
setvar VAR_0x8005, 0
|
||||
special TryBattleLinkup
|
||||
waitstate
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, LINKUP_SUCCESS
|
||||
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_CableLinkSuccessful
|
||||
compare VAR_RESULT, 2
|
||||
compare VAR_RESULT, LINKUP_SOMEONE_NOT_READY
|
||||
goto_if_eq CableClub_EventScript_AbortLinkSomeoneNotReady
|
||||
compare VAR_RESULT, 3
|
||||
compare VAR_RESULT, LINKUP_DIFF_SELECTIONS
|
||||
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_AbortLinkDifferentSelections
|
||||
compare VAR_RESULT, 4
|
||||
compare VAR_RESULT, LINKUP_WRONG_NUM_PLAYERS
|
||||
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_AbortLinkIncorrectNumberOfPlayers
|
||||
compare VAR_RESULT, 5
|
||||
compare VAR_RESULT, LINKUP_FAILED
|
||||
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_CancelChallenge
|
||||
compare VAR_RESULT, 6
|
||||
compare VAR_RESULT, LINKUP_CONNECTION_ERROR
|
||||
goto_if_eq CableClub_EventScript_AbortLinkConnectionError
|
||||
compare VAR_RESULT, 11
|
||||
compare VAR_RESULT, LINKUP_FAILED_BATTLE_TOWER
|
||||
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_AbortLink
|
||||
end
|
||||
|
||||
@@ -853,7 +853,7 @@ BattleFrontier_BattleTowerLobby_EventScript_CableLinkSuccessful:: @ 823F3AF
|
||||
message BattleFrontier_BattleTowerLobby_Text_SaveGameBeforeShowingIn
|
||||
waitmessage
|
||||
tower_save CHALLENGE_STATUS_SAVING
|
||||
special sub_80A08CC
|
||||
special SaveForBattleTowerLink
|
||||
waitstate
|
||||
playse SE_SAVE
|
||||
waitse
|
||||
@@ -884,26 +884,26 @@ BattleFrontier_BattleTowerLobby_EventScript_ChooseLeader:: @ 823F3F3
|
||||
|
||||
BattleFrontier_BattleTowerLobby_EventScript_TryBecomeLeader:: @ 823F430
|
||||
call CableClub_EventScript_TryBecomeLinkLeader
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, LINKUP_SUCCESS
|
||||
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_WirelessLinkSuccessful
|
||||
compare VAR_RESULT, 5
|
||||
compare VAR_RESULT, LINKUP_FAILED
|
||||
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_ChooseLeader
|
||||
compare VAR_RESULT, 8
|
||||
compare VAR_RESULT, LINKUP_RETRY_ROLE_ASSIGN
|
||||
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_TryBecomeLeader
|
||||
compare VAR_RESULT, 11
|
||||
compare VAR_RESULT, LINKUP_FAILED_BATTLE_TOWER
|
||||
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_AbortLink
|
||||
release
|
||||
return
|
||||
|
||||
BattleFrontier_BattleTowerLobby_EventScript_TryJoinGroup:: @ 823F463
|
||||
call CableClub_EventScript_TryJoinLinkGroup
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, LINKUP_SUCCESS
|
||||
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_WirelessLinkSuccessful
|
||||
compare VAR_RESULT, 5
|
||||
compare VAR_RESULT, LINKUP_FAILED
|
||||
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_ChooseLeader
|
||||
compare VAR_RESULT, 8
|
||||
compare VAR_RESULT, LINKUP_RETRY_ROLE_ASSIGN
|
||||
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_TryJoinGroup
|
||||
compare VAR_RESULT, 11
|
||||
compare VAR_RESULT, LINKUP_FAILED_BATTLE_TOWER
|
||||
goto_if_eq BattleFrontier_BattleTowerLobby_EventScript_AbortLink
|
||||
release
|
||||
return
|
||||
@@ -914,7 +914,7 @@ BattleFrontier_BattleTowerLobby_EventScript_WirelessLinkSuccessful:: @ 823F496
|
||||
message BattleFrontier_BattleTowerLobby_Text_SaveGameBeforeShowingIn
|
||||
waitmessage
|
||||
tower_save CHALLENGE_STATUS_SAVING
|
||||
special sub_80A08CC
|
||||
special SaveForBattleTowerLink
|
||||
waitstate
|
||||
playse SE_SAVE
|
||||
waitse
|
||||
|
||||
@@ -767,15 +767,15 @@ LilycoveCity_ContestLobby_EventScript_TrySetUpLinkContest:: @ 821AA15
|
||||
call_if_eq LilycoveCity_ContestLobby_EventScript_TryLinkGMode
|
||||
compare VAR_TEMP_C, 2
|
||||
goto_if_ge LilycoveCity_ContestLobby_EventScript_CancelLinkContest
|
||||
compare VAR_RESULT, 4
|
||||
compare VAR_RESULT, LINKUP_WRONG_NUM_PLAYERS
|
||||
goto_if_eq LilycoveCity_ContestLobby_EventScript_CancelLinkDifferentChoices
|
||||
compare VAR_RESULT, 3
|
||||
compare VAR_RESULT, LINKUP_DIFF_SELECTIONS
|
||||
goto_if_eq LilycoveCity_ContestLobby_EventScript_CancelLinkDifferentChoices
|
||||
compare VAR_RESULT, 5
|
||||
compare VAR_RESULT, LINKUP_FAILED
|
||||
goto_if_eq LilycoveCity_ContestLobby_EventScript_CancelLinkContest
|
||||
compare VAR_RESULT, 6
|
||||
compare VAR_RESULT, LINKUP_CONNECTION_ERROR
|
||||
goto_if_eq LilycoveCity_ContestLobby_EventScript_CancelLinkError
|
||||
compare VAR_RESULT, 10
|
||||
compare VAR_RESULT, LINKUP_FAILED_CONTEST_GMODE
|
||||
goto_if_eq LilycoveCity_ContestLobby_EventScript_CancelLinkModeDifference
|
||||
message3 LilycoveCity_ContestLobby_Text_Transmitting
|
||||
contestlinktransfer
|
||||
@@ -889,22 +889,22 @@ LilycoveCity_ContestLobby_EventScript_DecideLinkLeader:: @ 821ABA6
|
||||
|
||||
LilycoveCity_ContestLobby_EventScript_TryLeadGroup:: @ 821ABE3
|
||||
call LilycoveCity_ContestLobby_EventScript_TryBecomeLinkLeader
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, LINKUP_SUCCESS
|
||||
goto_if_eq LilycoveCity_ContestLobby_EventScript_LinkLeaderDecided
|
||||
compare VAR_RESULT, 5
|
||||
compare VAR_RESULT, LINKUP_FAILED
|
||||
goto_if_eq LilycoveCity_ContestLobby_EventScript_DecideLinkLeader
|
||||
compare VAR_RESULT, 8
|
||||
compare VAR_RESULT, LINKUP_RETRY_ROLE_ASSIGN
|
||||
goto_if_eq LilycoveCity_ContestLobby_EventScript_TryLeadGroup
|
||||
release
|
||||
end
|
||||
|
||||
LilycoveCity_ContestLobby_EventScript_TryJoinGroup:: @ 821AC0B
|
||||
call LilycoveCity_ContestLobby_EventScript_TryJoinLinkGroup
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, LINKUP_SUCCESS
|
||||
goto_if_eq LilycoveCity_ContestLobby_EventScript_LinkLeaderDecided
|
||||
compare VAR_RESULT, 5
|
||||
compare VAR_RESULT, LINKUP_FAILED
|
||||
goto_if_eq LilycoveCity_ContestLobby_EventScript_DecideLinkLeader
|
||||
compare VAR_RESULT, 8
|
||||
compare VAR_RESULT, LINKUP_RETRY_ROLE_ASSIGN
|
||||
goto_if_eq LilycoveCity_ContestLobby_EventScript_TryJoinGroup
|
||||
release
|
||||
end
|
||||
|
||||
@@ -20,7 +20,7 @@ UnionRoom_OnResume: @ 823D1B1
|
||||
removeobject 5
|
||||
removeobject 4
|
||||
removeobject 3
|
||||
special UnionRoomSpecial
|
||||
special RunUnionRoom
|
||||
end
|
||||
|
||||
UnionRoom_OnTransition: @ 823D1E5
|
||||
@@ -29,7 +29,7 @@ UnionRoom_OnTransition: @ 823D1E5
|
||||
UnionRoom_EventScript_Player1:: @ 823D1E6
|
||||
lock
|
||||
faceplayer
|
||||
setvar VAR_RESULT, 1
|
||||
setvar VAR_RESULT, UR_INTERACT_PLAYER_1
|
||||
waitstate
|
||||
release
|
||||
end
|
||||
@@ -37,7 +37,7 @@ UnionRoom_EventScript_Player1:: @ 823D1E6
|
||||
UnionRoom_EventScript_Player2:: @ 823D1F0
|
||||
lock
|
||||
faceplayer
|
||||
setvar VAR_RESULT, 2
|
||||
setvar VAR_RESULT, UR_INTERACT_PLAYER_2
|
||||
waitstate
|
||||
release
|
||||
end
|
||||
@@ -45,7 +45,7 @@ UnionRoom_EventScript_Player2:: @ 823D1F0
|
||||
UnionRoom_EventScript_Player3:: @ 823D1FA
|
||||
lock
|
||||
faceplayer
|
||||
setvar VAR_RESULT, 3
|
||||
setvar VAR_RESULT, UR_INTERACT_PLAYER_3
|
||||
waitstate
|
||||
release
|
||||
end
|
||||
@@ -53,7 +53,7 @@ UnionRoom_EventScript_Player3:: @ 823D1FA
|
||||
UnionRoom_EventScript_Player4:: @ 823D204
|
||||
lock
|
||||
faceplayer
|
||||
setvar VAR_RESULT, 4
|
||||
setvar VAR_RESULT, UR_INTERACT_PLAYER_4
|
||||
waitstate
|
||||
release
|
||||
end
|
||||
@@ -61,7 +61,7 @@ UnionRoom_EventScript_Player4:: @ 823D204
|
||||
UnionRoom_EventScript_Player5:: @ 823D20E
|
||||
lock
|
||||
faceplayer
|
||||
setvar VAR_RESULT, 5
|
||||
setvar VAR_RESULT, UR_INTERACT_PLAYER_5
|
||||
waitstate
|
||||
release
|
||||
end
|
||||
@@ -69,7 +69,7 @@ UnionRoom_EventScript_Player5:: @ 823D20E
|
||||
UnionRoom_EventScript_Player6:: @ 823D218
|
||||
lock
|
||||
faceplayer
|
||||
setvar VAR_RESULT, 6
|
||||
setvar VAR_RESULT, UR_INTERACT_PLAYER_6
|
||||
waitstate
|
||||
release
|
||||
end
|
||||
@@ -77,7 +77,7 @@ UnionRoom_EventScript_Player6:: @ 823D218
|
||||
UnionRoom_EventScript_Player7:: @ 823D222
|
||||
lock
|
||||
faceplayer
|
||||
setvar VAR_RESULT, 7
|
||||
setvar VAR_RESULT, UR_INTERACT_PLAYER_7
|
||||
waitstate
|
||||
release
|
||||
end
|
||||
@@ -85,7 +85,7 @@ UnionRoom_EventScript_Player7:: @ 823D222
|
||||
UnionRoom_EventScript_Player8:: @ 823D22C
|
||||
lock
|
||||
faceplayer
|
||||
setvar VAR_RESULT, 8
|
||||
setvar VAR_RESULT, UR_INTERACT_PLAYER_8
|
||||
waitstate
|
||||
release
|
||||
end
|
||||
@@ -93,14 +93,14 @@ UnionRoom_EventScript_Player8:: @ 823D22C
|
||||
UnionRoom_EventScript_Attendant:: @ 823D236
|
||||
lock
|
||||
faceplayer
|
||||
setvar VAR_RESULT, 9
|
||||
setvar VAR_RESULT, UR_INTERACT_ATTENDANT
|
||||
waitstate
|
||||
release
|
||||
end
|
||||
|
||||
UnionRoom_EventScript_Unused:: @ 823D240
|
||||
lockall
|
||||
setvar VAR_RESULT, 10
|
||||
setvar VAR_RESULT, UR_INTERACT_UNUSED
|
||||
waitstate
|
||||
releaseall
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user