You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-12-11 05:02:16 -08:00
Multiplayer engine: player mocking and player turn rotation stuff [Commit 3] (#40)
This commit is contained in:
@@ -237,6 +237,7 @@ ScriptCommandTable:
|
||||
dw Script_exitoverworld ; aa
|
||||
dw Script_reloadmapafterviewmapmode ; ab
|
||||
dw Script_talkerscript ; ac
|
||||
dw Script_reloadmaptonextplayer ; ad
|
||||
assert_table_length NUM_EVENT_COMMANDS
|
||||
|
||||
StartScript:
|
||||
@@ -1227,8 +1228,6 @@ Script_reloadmapafterbattle:
|
||||
jp Script_reloadmap
|
||||
|
||||
Script_reloadmapafterviewmapmode:
|
||||
xor a
|
||||
ld [wBattleScriptFlags], a
|
||||
ld a, MAPSETUP_EXITVIEWMAP
|
||||
ldh [hMapEntryMethod], a
|
||||
ld a, SPAWN_FROM_RAM
|
||||
@@ -1269,6 +1268,16 @@ Script_reloadmapafterviewmapmode:
|
||||
call StopScript
|
||||
ret
|
||||
|
||||
Script_reloadmaptonextplayer:
|
||||
ld a, MAPSETUP_NEXTPLAYER
|
||||
ldh [hMapEntryMethod], a
|
||||
ld a, SPAWN_FROM_RAM
|
||||
ld [wDefaultSpawnpoint], a
|
||||
ld a, MAPSTATUS_ENTER
|
||||
call LoadMapStatus
|
||||
call StopScript
|
||||
ret
|
||||
|
||||
Script_reloadmap:
|
||||
xor a
|
||||
ld [wBattleScriptFlags], a
|
||||
@@ -2185,6 +2194,7 @@ Script_warpfacing:
|
||||
; fallthrough
|
||||
|
||||
Script_warp:
|
||||
call GetScriptByte
|
||||
ld [wMapGroup], a
|
||||
call GetScriptByte
|
||||
ld [wMapNumber], a
|
||||
|
||||
Reference in New Issue
Block a user