You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Meaningful scene constant names
(Two common patterns: 0=default event and 1=nothing; and 0=nothing and 1=some event)
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
|
||||
RuinsOfAlphResearchCenter_MapScripts:
|
||||
db 2 ; scene scripts
|
||||
scene_script .DummyScene0 ; SCENE_RUINSOFALPHRESEARCHCENTER_0
|
||||
scene_script .GetUnownDex ; SCENE_RUINSOFALPHRESEARCHCENTER_1
|
||||
scene_script .DummyScene0 ; SCENE_RUINSOFALPHRESEARCHCENTER_NOTHING
|
||||
scene_script .GetUnownDex ; SCENE_RUINSOFALPHRESEARCHCENTER_GET_UNOWN_DEX
|
||||
|
||||
db 1 ; callbacks
|
||||
callback MAPCALLBACK_OBJECTS, .ScientistCallback
|
||||
@@ -20,7 +20,7 @@ RuinsOfAlphResearchCenter_MapScripts:
|
||||
|
||||
.ScientistCallback:
|
||||
checkscene
|
||||
if_equal SCENE_RUINSOFALPHRESEARCHCENTER_1, .ShowScientist
|
||||
if_equal SCENE_RUINSOFALPHRESEARCHCENTER_GET_UNOWN_DEX, .ShowScientist
|
||||
return
|
||||
|
||||
.ShowScientist:
|
||||
@@ -53,7 +53,7 @@ RuinsOfAlphResearchCenter_MapScripts:
|
||||
waitbutton
|
||||
closetext
|
||||
applymovement RUINSOFALPHRESEARCHCENTER_SCIENTIST3, MovementData_0x59276
|
||||
setscene SCENE_RUINSOFALPHRESEARCHCENTER_0
|
||||
setscene SCENE_RUINSOFALPHRESEARCHCENTER_NOTHING
|
||||
special RestartMapMusic
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user