mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
return → endcallback, reloadandreturn → reloadend
This commit is contained in:
parent
2e8b4836b0
commit
ef452ccbc7
@ -479,13 +479,13 @@ If <code><i>item_id</i></code> = `USE_SCRIPT_VAR`, then it uses `[wScriptVar]` i
|
||||
## `$8F`: <code>stopandsjump <i>script</i></code>
|
||||
|
||||
|
||||
## `$90`: `return`
|
||||
## `$90`: `endcallback`
|
||||
|
||||
|
||||
## `$91`: `end`
|
||||
|
||||
|
||||
## `$92`: <code>reloadandreturn <i>which_method</i></code>
|
||||
## `$92`: <code>reloadend <i>which_method</i></code>
|
||||
|
||||
|
||||
## `$93`: `endall`
|
||||
|
@ -68,7 +68,7 @@
|
||||
|
||||
.Boulders:
|
||||
writecmdqueue .BoulderCmdQueue
|
||||
return
|
||||
endcallback
|
||||
|
||||
.BoulderCmdQueue:
|
||||
cmdqueue CMDQUEUE_STONETABLE, .BoulderTable
|
||||
|
@ -115,7 +115,7 @@ DoPoisonStep::
|
||||
end
|
||||
|
||||
.whiteout
|
||||
farsjump Script_OverworldWhiteout
|
||||
farsjump OverworldWhiteoutScript
|
||||
|
||||
.CheckWhitedOut:
|
||||
xor a
|
||||
|
@ -614,7 +614,7 @@ InitializeEventsScript:
|
||||
setevent EVENT_SAFFRON_TRAIN_STATION_POPULATION
|
||||
setevent EVENT_INDIGO_PLATEAU_POKECENTER_RIVAL
|
||||
setevent EVENT_INITIALIZED_EVENTS
|
||||
return
|
||||
endcallback
|
||||
|
||||
AskNumber1MScript:
|
||||
special RandomPhoneMon
|
||||
|
@ -2,7 +2,7 @@ Script_BattleWhiteout::
|
||||
callasm BattleBGMap
|
||||
sjump Script_Whiteout
|
||||
|
||||
Script_OverworldWhiteout::
|
||||
OverworldWhiteoutScript::
|
||||
refreshscreen
|
||||
callasm OverworldBGMap
|
||||
|
||||
|
@ -982,7 +982,7 @@ PlayerEventScriptPointers:
|
||||
dba EdgeWarpScript ; PLAYEREVENT_CONNECTION
|
||||
dba WarpToNewMapScript ; PLAYEREVENT_WARP
|
||||
dba FallIntoMapScript ; PLAYEREVENT_FALL
|
||||
dba Script_OverworldWhiteout ; PLAYEREVENT_WHITEOUT
|
||||
dba OverworldWhiteoutScript ; PLAYEREVENT_WHITEOUT
|
||||
dba HatchEggScript ; PLAYEREVENT_HATCH
|
||||
dba ChangeDirectionScript ; PLAYEREVENT_JOYCHANGEFACING
|
||||
dba Invalid_0x96c2d ; (NUM_PLAYER_EVENTS)
|
||||
@ -1019,7 +1019,7 @@ LandAfterPitfallScript:
|
||||
end
|
||||
|
||||
EdgeWarpScript: ; 4
|
||||
reloadandreturn MAPSETUP_CONNECTION
|
||||
reloadend MAPSETUP_CONNECTION
|
||||
|
||||
ChangeDirectionScript: ; 9
|
||||
deactivatefacing 3
|
||||
|
@ -207,9 +207,9 @@ ScriptCommandTable:
|
||||
dw Script_prioritysjump ; 8d
|
||||
dw Script_warpcheck ; 8e
|
||||
dw Script_stopandsjump ; 8f
|
||||
dw Script_return ; 90
|
||||
dw Script_endcallback ; 90
|
||||
dw Script_end ; 91
|
||||
dw Script_reloadandreturn ; 92
|
||||
dw Script_reloadend ; 92
|
||||
dw Script_endall ; 93
|
||||
dw Script_pokemart ; 94
|
||||
dw Script_elevator ; 95
|
||||
@ -2186,7 +2186,7 @@ Script_newloadmap:
|
||||
call StopScript
|
||||
ret
|
||||
|
||||
Script_reloadandreturn:
|
||||
Script_reloadend:
|
||||
call Script_newloadmap
|
||||
jp Script_end
|
||||
|
||||
@ -2265,7 +2265,7 @@ Script_end:
|
||||
call StopScript
|
||||
ret
|
||||
|
||||
Script_return:
|
||||
Script_endcallback:
|
||||
call ExitScriptSubroutine
|
||||
jr c, .dummy
|
||||
.dummy
|
||||
|
@ -380,11 +380,11 @@ Function90199:
|
||||
|
||||
LoadPhoneScriptBank:
|
||||
memcall wPhoneScriptBank
|
||||
return
|
||||
endcallback
|
||||
|
||||
LoadOutOfAreaScript:
|
||||
scall PhoneOutOfAreaScript
|
||||
return
|
||||
endcallback
|
||||
|
||||
LoadCallerScript:
|
||||
nop
|
||||
|
@ -113,6 +113,8 @@ if_not_equal EQUS "ifnotequal"
|
||||
if_greater_than EQUS "ifgreater"
|
||||
if_less_than EQUS "ifless"
|
||||
end_all EQUS "endall"
|
||||
return EQUS "endcallback"
|
||||
reloadandreturn EQUS "reloadend"
|
||||
|
||||
checkmaptriggers EQUS "checkmapscene"
|
||||
domaptrigger EQUS "setmapscene"
|
||||
|
@ -900,9 +900,9 @@ stopandsjump: MACRO
|
||||
dw \1 ; pointer
|
||||
ENDM
|
||||
|
||||
const return_command ; $90
|
||||
return: MACRO
|
||||
db return_command
|
||||
const endcallback_command ; $90
|
||||
endcallback: MACRO
|
||||
db endcallback_command
|
||||
ENDM
|
||||
|
||||
const end_command ; $91
|
||||
@ -910,9 +910,9 @@ end: MACRO
|
||||
db end_command
|
||||
ENDM
|
||||
|
||||
const reloadandreturn_command ; $92
|
||||
reloadandreturn: MACRO
|
||||
db reloadandreturn_command
|
||||
const reloadend_command ; $92
|
||||
reloadend: MACRO
|
||||
db reloadend_command
|
||||
db \1 ; which_method
|
||||
ENDM
|
||||
|
||||
|
@ -32,7 +32,7 @@ AzaleaTown_MapScripts:
|
||||
|
||||
.Flypoint:
|
||||
setflag ENGINE_FLYPOINT_AZALEA
|
||||
return
|
||||
endcallback
|
||||
|
||||
AzaleaTownRivalBattleScene1:
|
||||
moveobject AZALEATOWN_SILVER, 11, 11
|
||||
|
@ -12,11 +12,11 @@ BattleTowerOutside_MapScripts:
|
||||
callback MAPCALLBACK_OBJECTS, .Callback2
|
||||
|
||||
.Callback1:
|
||||
return
|
||||
endcallback
|
||||
|
||||
.Callback2:
|
||||
clearevent EVENT_BATTLE_TOWER_OUTSIDE_SAILOR
|
||||
return
|
||||
endcallback
|
||||
|
||||
BattleTowerOutsideYoungsterScript:
|
||||
jumptextfaceplayer BattleTowerOutsideYoungsterText
|
||||
|
@ -18,17 +18,17 @@ BlackthornCity_MapScripts:
|
||||
|
||||
.FlyPoint:
|
||||
setflag ENGINE_FLYPOINT_BLACKTHORN
|
||||
return
|
||||
endcallback
|
||||
|
||||
.Santos:
|
||||
readvar VAR_WEEKDAY
|
||||
ifequal SATURDAY, .SantosAppears
|
||||
disappear BLACKTHORNCITY_SANTOS
|
||||
return
|
||||
endcallback
|
||||
|
||||
.SantosAppears:
|
||||
appear BLACKTHORNCITY_SANTOS
|
||||
return
|
||||
endcallback
|
||||
|
||||
BlackthornSuperNerdScript:
|
||||
faceplayer
|
||||
|
@ -24,7 +24,7 @@ BlackthornGym1F_MapScripts:
|
||||
iffalse .skip3
|
||||
changeblock 8, 6, $3b ; fallen boulder 2
|
||||
.skip3
|
||||
return
|
||||
endcallback
|
||||
|
||||
BlackthornGymClairScript:
|
||||
faceplayer
|
||||
|
@ -16,7 +16,7 @@ BlackthornGym2F_MapScripts:
|
||||
|
||||
.SetUpStoneTable:
|
||||
writecmdqueue .CommandQueue
|
||||
return
|
||||
endcallback
|
||||
|
||||
.CommandQueue:
|
||||
cmdqueue CMDQUEUE_STONETABLE, .StoneTable ; check if any stones are sitting on a warp
|
||||
|
@ -25,7 +25,7 @@ BrunosRoom_MapScripts:
|
||||
iffalse .KeepExitClosed
|
||||
changeblock 4, 2, $16 ; open door
|
||||
.KeepExitClosed:
|
||||
return
|
||||
endcallback
|
||||
|
||||
.BrunosDoorLocksBehindYou:
|
||||
applymovement PLAYER, BrunosRoom_EnterMovement
|
||||
|
@ -33,7 +33,7 @@ BurnedTower1F_MapScripts:
|
||||
iftrue .HideBasement
|
||||
changeblock 6, 14, $09 ; ladder
|
||||
.HideBasement:
|
||||
return
|
||||
endcallback
|
||||
|
||||
.MeetEusine:
|
||||
turnobject BURNEDTOWER1F_EUSINE, DOWN
|
||||
|
@ -28,7 +28,7 @@ BurnedTowerB1F_MapScripts:
|
||||
iftrue .HideLadder
|
||||
changeblock 6, 14, $02 ; floor
|
||||
.HideLadder:
|
||||
return
|
||||
endcallback
|
||||
|
||||
ReleaseTheBeasts:
|
||||
playmusic MUSIC_NONE
|
||||
|
@ -17,7 +17,7 @@ CeladonCity_MapScripts:
|
||||
|
||||
.FlyPoint:
|
||||
setflag ENGINE_FLYPOINT_CELADON
|
||||
return
|
||||
endcallback
|
||||
|
||||
CeladonCityFisherScript:
|
||||
jumptextfaceplayer CeladonCityFisherText
|
||||
|
@ -14,7 +14,7 @@ CeladonDeptStore6F_MapScripts:
|
||||
|
||||
.HideRooftopStairs:
|
||||
changeblock 12, 0, $03 ; wall
|
||||
return
|
||||
endcallback
|
||||
|
||||
CeladonDeptStore6FSuperNerdScript:
|
||||
jumptextfaceplayer CeladonDeptStore6FSuperNerdText
|
||||
|
@ -14,7 +14,7 @@ CeruleanCity_MapScripts:
|
||||
|
||||
.FlyPoint:
|
||||
setflag ENGINE_FLYPOINT_CERULEAN
|
||||
return
|
||||
endcallback
|
||||
|
||||
CeruleanCityCooltrainerMScript:
|
||||
faceplayer
|
||||
|
@ -21,7 +21,7 @@ CherrygroveCity_MapScripts:
|
||||
|
||||
.FlyPoint:
|
||||
setflag ENGINE_FLYPOINT_CHERRYGROVE
|
||||
return
|
||||
endcallback
|
||||
|
||||
CherrygroveCityGuideGent:
|
||||
faceplayer
|
||||
|
@ -33,7 +33,7 @@ CianwoodCity_MapScripts:
|
||||
iffalse .Done
|
||||
disappear CIANWOODCITY_EUSINE
|
||||
.Done:
|
||||
return
|
||||
endcallback
|
||||
|
||||
CianwoodCitySuicuneAndEusine:
|
||||
turnobject PLAYER, UP
|
||||
|
@ -9,7 +9,7 @@ CinnabarIsland_MapScripts:
|
||||
|
||||
.FlyPoint:
|
||||
setflag ENGINE_FLYPOINT_CINNABAR
|
||||
return
|
||||
endcallback
|
||||
|
||||
CinnabarIslandBlue:
|
||||
faceplayer
|
||||
|
@ -27,16 +27,16 @@ Colosseum_MapScripts:
|
||||
iffalse .Chris2
|
||||
disappear COLOSSEUM_CHRIS2
|
||||
appear COLOSSEUM_CHRIS1
|
||||
return
|
||||
endcallback
|
||||
|
||||
.Chris2:
|
||||
disappear COLOSSEUM_CHRIS1
|
||||
appear COLOSSEUM_CHRIS2
|
||||
return
|
||||
endcallback
|
||||
|
||||
.PreparePokecenter2F:
|
||||
setmapscene POKECENTER_2F, SCENE_POKECENTER2F_LEAVE_COLOSSEUM
|
||||
return
|
||||
endcallback
|
||||
|
||||
.InitializeAndPreparePokecenter2F:
|
||||
setscene SCENE_FINISHED
|
||||
|
@ -22,7 +22,7 @@ CopycatsHouse2F_MapScripts:
|
||||
disappear COPYCATSHOUSE2F_COPYCAT1
|
||||
appear COPYCATSHOUSE2F_COPYCAT2
|
||||
.Done:
|
||||
return
|
||||
endcallback
|
||||
|
||||
Copycat:
|
||||
faceplayer
|
||||
|
@ -13,12 +13,12 @@ DayCare_MapScripts:
|
||||
iftrue .PutDayCareManOutside
|
||||
clearevent EVENT_DAY_CARE_MAN_IN_DAY_CARE
|
||||
setevent EVENT_DAY_CARE_MAN_ON_ROUTE_34
|
||||
return
|
||||
endcallback
|
||||
|
||||
.PutDayCareManOutside:
|
||||
setevent EVENT_DAY_CARE_MAN_IN_DAY_CARE
|
||||
clearevent EVENT_DAY_CARE_MAN_ON_ROUTE_34
|
||||
return
|
||||
endcallback
|
||||
|
||||
DayCareManScript_Inside:
|
||||
faceplayer
|
||||
|
@ -27,18 +27,18 @@ DragonsDenB1F_MapScripts:
|
||||
checkevent EVENT_BEAT_RIVAL_IN_MT_MOON
|
||||
iftrue .CheckDay
|
||||
disappear DRAGONSDENB1F_SILVER
|
||||
return
|
||||
endcallback
|
||||
|
||||
.CheckDay:
|
||||
readvar VAR_WEEKDAY
|
||||
ifequal TUESDAY, .AppearSilver
|
||||
ifequal THURSDAY, .AppearSilver
|
||||
disappear DRAGONSDENB1F_SILVER
|
||||
return
|
||||
endcallback
|
||||
|
||||
.AppearSilver:
|
||||
appear DRAGONSDENB1F_SILVER
|
||||
return
|
||||
endcallback
|
||||
|
||||
DragonsDenB1F_ClairScene:
|
||||
appear DRAGONSDENB1F_CLAIR
|
||||
|
@ -15,7 +15,7 @@ EcruteakCity_MapScripts:
|
||||
|
||||
.FlyPoint:
|
||||
setflag ENGINE_FLYPOINT_ECRUTEAK
|
||||
return
|
||||
endcallback
|
||||
|
||||
EcruteakCityGramps1Script:
|
||||
jumptextfaceplayer EcruteakCityGramps1Text
|
||||
|
@ -25,7 +25,7 @@ EcruteakTinTowerEntrance_MapScripts:
|
||||
iftrue .DontBlockTower
|
||||
checkevent EVENT_CLEARED_RADIO_TOWER
|
||||
iftrue .BlockTower
|
||||
return
|
||||
endcallback
|
||||
|
||||
.BlockTower:
|
||||
clearevent EVENT_RANG_CLEAR_BELL_1
|
||||
@ -35,11 +35,11 @@ EcruteakTinTowerEntrance_MapScripts:
|
||||
iftrue .NoClearBell
|
||||
setscene SCENE_DEFAULT
|
||||
.NoClearBell:
|
||||
return
|
||||
endcallback
|
||||
|
||||
.DontBlockTower:
|
||||
clearevent EVENT_ECRUTEAK_TIN_TOWER_ENTRANCE_WANDERING_SAGE
|
||||
return
|
||||
endcallback
|
||||
|
||||
EcruteakTinTowerEntrance_CoordEvent1:
|
||||
checkevent EVENT_RANG_CLEAR_BELL_2
|
||||
|
@ -42,7 +42,7 @@ ElmsLab_MapScripts:
|
||||
iftrue .Skip ; not SCENE_DEFAULT
|
||||
moveobject ELMSLAB_ELM, 3, 4
|
||||
.Skip:
|
||||
return
|
||||
endcallback
|
||||
|
||||
.WalkUpToElm:
|
||||
applymovement PLAYER, ElmsLab_WalkUpToElmMovement
|
||||
|
@ -12,7 +12,7 @@ FuchsiaCity_MapScripts:
|
||||
|
||||
.FlyPoint:
|
||||
setflag ENGINE_FLYPOINT_FUCHSIA
|
||||
return
|
||||
endcallback
|
||||
|
||||
FuchsiaCityYoungster:
|
||||
jumptextfaceplayer FuchsiaCityYoungsterText
|
||||
|
@ -29,7 +29,7 @@ GoldenrodCity_MapScripts:
|
||||
iftrue .FloriaDone
|
||||
clearevent EVENT_FLORIA_AT_SUDOWOODO
|
||||
.FloriaDone:
|
||||
return
|
||||
endcallback
|
||||
|
||||
.MoveTutor:
|
||||
checkevent EVENT_BEAT_ELITE_FOUR
|
||||
@ -41,14 +41,14 @@ GoldenrodCity_MapScripts:
|
||||
ifequal SATURDAY, .MoveTutorAppear
|
||||
.MoveTutorDisappear:
|
||||
disappear GOLDENRODCITY_MOVETUTOR
|
||||
return
|
||||
endcallback
|
||||
|
||||
.MoveTutorAppear:
|
||||
checkflag ENGINE_DAILY_MOVE_TUTOR
|
||||
iftrue .MoveTutorDone
|
||||
appear GOLDENRODCITY_MOVETUTOR
|
||||
.MoveTutorDone:
|
||||
return
|
||||
endcallback
|
||||
|
||||
MoveTutorScript:
|
||||
faceplayer
|
||||
|
@ -16,11 +16,11 @@ GoldenrodDeptStore5F_MapScripts:
|
||||
readvar VAR_WEEKDAY
|
||||
ifequal SUNDAY, .yes
|
||||
disappear GOLDENRODDEPTSTORE5F_RECEPTIONIST
|
||||
return
|
||||
endcallback
|
||||
|
||||
.yes
|
||||
appear GOLDENRODDEPTSTORE5F_RECEPTIONIST
|
||||
return
|
||||
endcallback
|
||||
|
||||
GoldenrodDeptStore5FClerkScript:
|
||||
faceplayer
|
||||
|
@ -30,19 +30,19 @@ GoldenrodDeptStoreB1F_MapScripts:
|
||||
checkevent EVENT_GOLDENROD_DEPT_STORE_B1F_LAYOUT_3
|
||||
iftrue .Layout3
|
||||
changeblock 10, 8, $0d ; floor
|
||||
return
|
||||
endcallback
|
||||
|
||||
.Layout2:
|
||||
changeblock 4, 10, $0d ; floor
|
||||
return
|
||||
endcallback
|
||||
|
||||
.Layout3:
|
||||
changeblock 10, 12, $0d ; floor
|
||||
return
|
||||
endcallback
|
||||
|
||||
.Unblock:
|
||||
clearevent EVENT_GOLDENROD_UNDERGROUND_WAREHOUSE_BLOCKED_OFF
|
||||
return
|
||||
endcallback
|
||||
|
||||
GoldenrodDeptStoreB1FBlackBelt1Script:
|
||||
jumptextfaceplayer GoldenrodDeptStoreB1FBlackBelt1Text
|
||||
|
@ -18,24 +18,24 @@ GoldenrodDeptStoreRoof_MapScripts:
|
||||
.CheckSaleChangeBlock:
|
||||
checkflag ENGINE_GOLDENROD_DEPT_STORE_SALE_IS_ON
|
||||
iftrue .SaleIsOn
|
||||
return
|
||||
endcallback
|
||||
|
||||
.SaleIsOn:
|
||||
changeblock 0, 2, $3f ; cardboard boxes
|
||||
changeblock 0, 4, $0f ; vendor booth
|
||||
return
|
||||
endcallback
|
||||
|
||||
.CheckSaleChangeClerk:
|
||||
checkflag ENGINE_GOLDENROD_DEPT_STORE_SALE_IS_ON
|
||||
iftrue .ChangeClerk
|
||||
setevent EVENT_GOLDENROD_SALE_OFF
|
||||
clearevent EVENT_GOLDENROD_SALE_ON
|
||||
return
|
||||
endcallback
|
||||
|
||||
.ChangeClerk:
|
||||
clearevent EVENT_GOLDENROD_SALE_OFF
|
||||
setevent EVENT_GOLDENROD_SALE_ON
|
||||
return
|
||||
endcallback
|
||||
|
||||
GoldenrodDeptStoreRoofClerkScript:
|
||||
opentext
|
||||
|
@ -35,14 +35,14 @@ GoldenrodGameCorner_MapScripts:
|
||||
ifequal SATURDAY, .move_tutor_outside
|
||||
.move_tutor_inside
|
||||
appear GOLDENRODGAMECORNER_MOVETUTOR
|
||||
return
|
||||
endcallback
|
||||
|
||||
.move_tutor_outside
|
||||
checkflag ENGINE_DAILY_MOVE_TUTOR
|
||||
iftrue .finish
|
||||
disappear GOLDENRODGAMECORNER_MOVETUTOR
|
||||
.finish
|
||||
return
|
||||
endcallback
|
||||
|
||||
MoveTutorInsideScript:
|
||||
faceplayer
|
||||
|
@ -38,16 +38,16 @@ GoldenrodUnderground_MapScripts:
|
||||
clearevent EVENT_SWITCH_14
|
||||
setval 0
|
||||
writemem wUndergroundSwitchPositions
|
||||
return
|
||||
endcallback
|
||||
|
||||
.CheckBasementKey:
|
||||
checkevent EVENT_USED_BASEMENT_KEY
|
||||
iffalse .LockBasementDoor
|
||||
return
|
||||
endcallback
|
||||
|
||||
.LockBasementDoor:
|
||||
changeblock 18, 6, $3d ; locked door
|
||||
return
|
||||
endcallback
|
||||
|
||||
.CheckDayOfWeek:
|
||||
readvar VAR_WEEKDAY
|
||||
@ -63,7 +63,7 @@ GoldenrodUnderground_MapScripts:
|
||||
disappear GOLDENRODUNDERGROUND_OLDER_HAIRCUT_BROTHER
|
||||
appear GOLDENRODUNDERGROUND_YOUNGER_HAIRCUT_BROTHER
|
||||
appear GOLDENRODUNDERGROUND_GRANNY
|
||||
return
|
||||
endcallback
|
||||
|
||||
.Monday:
|
||||
disappear GOLDENRODUNDERGROUND_GRAMPS
|
||||
@ -74,42 +74,42 @@ GoldenrodUnderground_MapScripts:
|
||||
disappear GOLDENRODUNDERGROUND_OLDER_HAIRCUT_BROTHER
|
||||
disappear GOLDENRODUNDERGROUND_YOUNGER_HAIRCUT_BROTHER
|
||||
disappear GOLDENRODUNDERGROUND_GRANNY
|
||||
return
|
||||
endcallback
|
||||
|
||||
.Tuesday:
|
||||
disappear GOLDENRODUNDERGROUND_GRAMPS
|
||||
appear GOLDENRODUNDERGROUND_OLDER_HAIRCUT_BROTHER
|
||||
disappear GOLDENRODUNDERGROUND_YOUNGER_HAIRCUT_BROTHER
|
||||
disappear GOLDENRODUNDERGROUND_GRANNY
|
||||
return
|
||||
endcallback
|
||||
|
||||
.Wednesday:
|
||||
disappear GOLDENRODUNDERGROUND_GRAMPS
|
||||
disappear GOLDENRODUNDERGROUND_OLDER_HAIRCUT_BROTHER
|
||||
appear GOLDENRODUNDERGROUND_YOUNGER_HAIRCUT_BROTHER
|
||||
disappear GOLDENRODUNDERGROUND_GRANNY
|
||||
return
|
||||
endcallback
|
||||
|
||||
.Thursday:
|
||||
disappear GOLDENRODUNDERGROUND_GRAMPS
|
||||
appear GOLDENRODUNDERGROUND_OLDER_HAIRCUT_BROTHER
|
||||
disappear GOLDENRODUNDERGROUND_YOUNGER_HAIRCUT_BROTHER
|
||||
disappear GOLDENRODUNDERGROUND_GRANNY
|
||||
return
|
||||
endcallback
|
||||
|
||||
.Friday:
|
||||
disappear GOLDENRODUNDERGROUND_GRAMPS
|
||||
disappear GOLDENRODUNDERGROUND_OLDER_HAIRCUT_BROTHER
|
||||
appear GOLDENRODUNDERGROUND_YOUNGER_HAIRCUT_BROTHER
|
||||
disappear GOLDENRODUNDERGROUND_GRANNY
|
||||
return
|
||||
endcallback
|
||||
|
||||
.Saturday:
|
||||
disappear GOLDENRODUNDERGROUND_GRAMPS
|
||||
appear GOLDENRODUNDERGROUND_OLDER_HAIRCUT_BROTHER
|
||||
disappear GOLDENRODUNDERGROUND_YOUNGER_HAIRCUT_BROTHER
|
||||
appear GOLDENRODUNDERGROUND_GRANNY
|
||||
return
|
||||
endcallback
|
||||
|
||||
TrainerSupernerdEric:
|
||||
trainer SUPER_NERD, ERIC, EVENT_BEAT_SUPER_NERD_ERIC, SupernerdEricSeenText, SupernerdEricBeatenText, 0, .Script
|
||||
|
@ -108,7 +108,7 @@ GoldenrodUndergroundSwitchRoomEntrances_MapScripts:
|
||||
doorstate 15, CLOSED1
|
||||
doorstate 16, OPEN1
|
||||
.false14
|
||||
return
|
||||
endcallback
|
||||
|
||||
GoldenrodUndergroundSwitchRoomEntrancesSuperNerdScript:
|
||||
jumptextfaceplayer GoldenrodUndergroundSwitchRoomEntrances_SuperNerdText
|
||||
|
@ -31,7 +31,7 @@ GoldenrodUndergroundWarehouse_MapScripts:
|
||||
clearevent EVENT_SWITCH_14
|
||||
setval 0
|
||||
writemem wUndergroundSwitchPositions
|
||||
return
|
||||
endcallback
|
||||
|
||||
TrainerGruntM24:
|
||||
trainer GRUNTM, GRUNTM_24, EVENT_BEAT_ROCKET_GRUNTM_24, GruntM24SeenText, GruntM24BeatenText, 0, .Script
|
||||
|
@ -13,7 +13,7 @@ IcePathB1F_MapScripts:
|
||||
|
||||
.SetUpStoneTable:
|
||||
writecmdqueue .CommandQueue
|
||||
return
|
||||
endcallback
|
||||
|
||||
.CommandQueue:
|
||||
cmdqueue CMDQUEUE_STONETABLE, .StoneTable ; check if any stones are sitting on a warp
|
||||
|
@ -32,57 +32,57 @@ IlexForest_MapScripts:
|
||||
ifequal 9, .PositionNine
|
||||
ifequal 10, .PositionTen
|
||||
.Static:
|
||||
return
|
||||
endcallback
|
||||
|
||||
.PositionOne:
|
||||
moveobject ILEXFOREST_FARFETCHD, 14, 31
|
||||
appear ILEXFOREST_FARFETCHD
|
||||
return
|
||||
endcallback
|
||||
|
||||
.PositionTwo:
|
||||
moveobject ILEXFOREST_FARFETCHD, 15, 25
|
||||
appear ILEXFOREST_FARFETCHD
|
||||
return
|
||||
endcallback
|
||||
|
||||
.PositionThree:
|
||||
moveobject ILEXFOREST_FARFETCHD, 20, 24
|
||||
appear ILEXFOREST_FARFETCHD
|
||||
return
|
||||
endcallback
|
||||
|
||||
.PositionFour:
|
||||
moveobject ILEXFOREST_FARFETCHD, 29, 22
|
||||
appear ILEXFOREST_FARFETCHD
|
||||
return
|
||||
endcallback
|
||||
|
||||
.PositionFive:
|
||||
moveobject ILEXFOREST_FARFETCHD, 28, 31
|
||||
appear ILEXFOREST_FARFETCHD
|
||||
return
|
||||
endcallback
|
||||
|
||||
.PositionSix:
|
||||
moveobject ILEXFOREST_FARFETCHD, 24, 35
|
||||
appear ILEXFOREST_FARFETCHD
|
||||
return
|
||||
endcallback
|
||||
|
||||
.PositionSeven:
|
||||
moveobject ILEXFOREST_FARFETCHD, 22, 31
|
||||
appear ILEXFOREST_FARFETCHD
|
||||
return
|
||||
endcallback
|
||||
|
||||
.PositionEight:
|
||||
moveobject ILEXFOREST_FARFETCHD, 15, 29
|
||||
appear ILEXFOREST_FARFETCHD
|
||||
return
|
||||
endcallback
|
||||
|
||||
.PositionNine:
|
||||
moveobject ILEXFOREST_FARFETCHD, 10, 35
|
||||
appear ILEXFOREST_FARFETCHD
|
||||
return
|
||||
endcallback
|
||||
|
||||
.PositionTen:
|
||||
moveobject ILEXFOREST_FARFETCHD, 6, 28
|
||||
appear ILEXFOREST_FARFETCHD
|
||||
return
|
||||
endcallback
|
||||
|
||||
IlexForestCharcoalApprenticeScript:
|
||||
faceplayer
|
||||
|
@ -39,7 +39,7 @@ IndigoPlateauPokecenter1F_MapScripts:
|
||||
clearevent EVENT_BEAT_ELITE_4_KAREN
|
||||
clearevent EVENT_BEAT_CHAMPION_LANCE
|
||||
setevent EVENT_LANCES_ROOM_OAK_AND_MARY
|
||||
return
|
||||
endcallback
|
||||
|
||||
PlateauRivalBattle1:
|
||||
checkevent EVENT_BEAT_RIVAL_IN_MT_MOON
|
||||
|
@ -25,7 +25,7 @@ KarensRoom_MapScripts:
|
||||
iffalse .KeepExitClosed
|
||||
changeblock 4, 2, $16 ; open door
|
||||
.KeepExitClosed:
|
||||
return
|
||||
endcallback
|
||||
|
||||
.KarensDoorLocksBehindYou:
|
||||
applymovement PLAYER, KarensRoom_EnterMovement
|
||||
|
@ -25,7 +25,7 @@ KogasRoom_MapScripts:
|
||||
iffalse .KeepExitClosed
|
||||
changeblock 4, 2, $16 ; open door
|
||||
.KeepExitClosed:
|
||||
return
|
||||
endcallback
|
||||
|
||||
.KogasDoorLocksBehindYou:
|
||||
applymovement PLAYER, KogasRoom_EnterMovement
|
||||
|
@ -22,7 +22,7 @@ KurtsHouse_MapScripts:
|
||||
appear KURTSHOUSE_KURT1
|
||||
disappear KURTSHOUSE_TWIN2
|
||||
appear KURTSHOUSE_TWIN1
|
||||
return
|
||||
endcallback
|
||||
|
||||
.MakingBalls:
|
||||
disappear KURTSHOUSE_KURT1
|
||||
@ -30,7 +30,7 @@ KurtsHouse_MapScripts:
|
||||
disappear KURTSHOUSE_TWIN1
|
||||
appear KURTSHOUSE_TWIN2
|
||||
.Done:
|
||||
return
|
||||
endcallback
|
||||
|
||||
Kurt1:
|
||||
faceplayer
|
||||
|
@ -29,17 +29,17 @@ LakeOfRage_MapScripts:
|
||||
|
||||
.FlyPoint:
|
||||
setflag ENGINE_FLYPOINT_LAKE_OF_RAGE
|
||||
return
|
||||
endcallback
|
||||
|
||||
.Wesley:
|
||||
readvar VAR_WEEKDAY
|
||||
ifequal WEDNESDAY, .WesleyAppears
|
||||
disappear LAKEOFRAGE_WESLEY
|
||||
return
|
||||
endcallback
|
||||
|
||||
.WesleyAppears:
|
||||
appear LAKEOFRAGE_WESLEY
|
||||
return
|
||||
endcallback
|
||||
|
||||
LakeOfRageLanceScript:
|
||||
checkevent EVENT_REFUSED_TO_HELP_LANCE_AT_LAKE_OF_RAGE
|
||||
|
@ -27,7 +27,7 @@ LancesRoom_MapScripts:
|
||||
iffalse .KeepExitClosed
|
||||
changeblock 4, 0, $0b ; open door
|
||||
.KeepExitClosed:
|
||||
return
|
||||
endcallback
|
||||
|
||||
.LancesDoorLocksBehindYou:
|
||||
applymovement PLAYER, LancesRoom_EnterMovement
|
||||
|
@ -12,7 +12,7 @@ LavenderTown_MapScripts:
|
||||
|
||||
.FlyPoint:
|
||||
setflag ENGINE_FLYPOINT_LAVENDER
|
||||
return
|
||||
endcallback
|
||||
|
||||
LavenderTownPokefanMScript:
|
||||
jumptextfaceplayer LavenderTownPokefanMText
|
||||
|
@ -23,11 +23,11 @@ MahoganyMart1F_MapScripts:
|
||||
.MahoganyMart1FStaircase:
|
||||
checkevent EVENT_UNCOVERED_STAIRCASE_IN_MAHOGANY_MART
|
||||
iftrue .ShowStairs
|
||||
return
|
||||
endcallback
|
||||
|
||||
.ShowStairs:
|
||||
changeblock 6, 2, $1e ; stairs
|
||||
return
|
||||
endcallback
|
||||
|
||||
MahoganyMart1FPharmacistScript:
|
||||
faceplayer
|
||||
|
@ -22,7 +22,7 @@ MahoganyTown_MapScripts:
|
||||
|
||||
.FlyPoint:
|
||||
setflag ENGINE_FLYPOINT_MAHOGANY
|
||||
return
|
||||
endcallback
|
||||
|
||||
MahoganyTownTryARageCandyBarScript:
|
||||
showemote EMOTE_SHOCK, MAHOGANYTOWN_POKEFAN_M, 15
|
||||
|
@ -16,11 +16,11 @@ MountMoonSquare_MapScripts:
|
||||
|
||||
.DisappearMoonStone:
|
||||
setevent EVENT_MOUNT_MOON_SQUARE_HIDDEN_MOON_STONE
|
||||
return
|
||||
endcallback
|
||||
|
||||
.DisappearRock:
|
||||
disappear MOUNTMOONSQUARE_ROCK
|
||||
return
|
||||
endcallback
|
||||
|
||||
ClefairyDance:
|
||||
checkflag ENGINE_MT_MOON_SQUARE_CLEFAIRY
|
||||
|
@ -20,7 +20,7 @@ NewBarkTown_MapScripts:
|
||||
.FlyPoint:
|
||||
setflag ENGINE_FLYPOINT_NEW_BARK
|
||||
clearevent EVENT_FIRST_TIME_BANKING_WITH_MOM
|
||||
return
|
||||
endcallback
|
||||
|
||||
NewBarkTown_TeacherStopsYouScene1:
|
||||
playmusic MUSIC_MOM
|
||||
|
@ -20,7 +20,7 @@ OlivineCity_MapScripts:
|
||||
|
||||
.FlyPoint:
|
||||
setflag ENGINE_FLYPOINT_OLIVINE
|
||||
return
|
||||
endcallback
|
||||
|
||||
OlivineCityRivalSceneTop:
|
||||
turnobject PLAYER, LEFT
|
||||
|
@ -10,7 +10,7 @@ PalletTown_MapScripts:
|
||||
|
||||
.FlyPoint:
|
||||
setflag ENGINE_FLYPOINT_PALLET
|
||||
return
|
||||
endcallback
|
||||
|
||||
PalletTownTeacherScript:
|
||||
jumptextfaceplayer PalletTownTeacherText
|
||||
|
@ -13,7 +13,7 @@ PewterCity_MapScripts:
|
||||
|
||||
.FlyPoint:
|
||||
setflag ENGINE_FLYPOINT_PEWTER
|
||||
return
|
||||
endcallback
|
||||
|
||||
PewterCityCooltrainerFScript:
|
||||
jumptextfaceplayer PewterCityCooltrainerFText
|
||||
|
@ -21,14 +21,14 @@ PlayersHouse2F_MapScripts:
|
||||
checkevent EVENT_INITIALIZED_EVENTS
|
||||
iftrue .SkipInitialization
|
||||
jumpstd InitializeEventsScript
|
||||
return
|
||||
endcallback
|
||||
|
||||
.SkipInitialization:
|
||||
return
|
||||
endcallback
|
||||
|
||||
.SetUpTileDecorations:
|
||||
special ToggleMaptileDecorations
|
||||
return
|
||||
endcallback
|
||||
|
||||
db 0, 0, 0 ; filler
|
||||
|
||||
|
@ -16,12 +16,12 @@ RadioTower3F_MapScripts:
|
||||
.CardKeyShutterCallback:
|
||||
checkevent EVENT_USED_THE_CARD_KEY_IN_THE_RADIO_TOWER
|
||||
iftrue .Change
|
||||
return
|
||||
endcallback
|
||||
|
||||
.Change:
|
||||
changeblock 14, 2, $2a ; open shutter
|
||||
changeblock 14, 4, $01 ; floor
|
||||
return
|
||||
endcallback
|
||||
|
||||
RadioTower3FSuperNerdScript:
|
||||
jumptextfaceplayer RadioTower3FSuperNerdText
|
||||
|
@ -10,11 +10,11 @@ Route16_MapScripts:
|
||||
readvar VAR_XCOORD
|
||||
ifgreater 13, .CanWalk
|
||||
setflag ENGINE_ALWAYS_ON_BIKE
|
||||
return
|
||||
endcallback
|
||||
|
||||
.CanWalk:
|
||||
clearflag ENGINE_ALWAYS_ON_BIKE
|
||||
return
|
||||
endcallback
|
||||
|
||||
CyclingRoadSign:
|
||||
jumptext CyclingRoadSignText
|
||||
|
@ -13,7 +13,7 @@ Route17_MapScripts:
|
||||
.AlwaysOnBike:
|
||||
setflag ENGINE_ALWAYS_ON_BIKE
|
||||
setflag ENGINE_DOWNHILL
|
||||
return
|
||||
endcallback
|
||||
|
||||
TrainerBikerCharles:
|
||||
trainer BIKER, CHARLES, EVENT_BEAT_BIKER_CHARLES, BikerCharlesSeenText, BikerCharlesBeatenText, 0, .Script
|
||||
|
@ -22,7 +22,7 @@ Route19_MapScripts:
|
||||
changeblock 4, 8, $7a ; rock
|
||||
changeblock 10, 10, $7a ; rock
|
||||
.Done:
|
||||
return
|
||||
endcallback
|
||||
|
||||
TrainerSwimmerfDawn:
|
||||
trainer SWIMMERF, DAWN, EVENT_BEAT_SWIMMERF_DAWN, SwimmerfDawnSeenText, SwimmerfDawnBeatenText, 0, .Script
|
||||
|
@ -11,7 +11,7 @@ Route20_MapScripts:
|
||||
|
||||
.ClearRocks:
|
||||
setevent EVENT_CINNABAR_ROCKS_CLEARED
|
||||
return
|
||||
endcallback
|
||||
|
||||
TrainerSwimmerfNicole:
|
||||
trainer SWIMMERF, NICOLE, EVENT_BEAT_SWIMMERF_NICOLE, SwimmerfNicoleSeenText, SwimmerfNicoleBeatenText, 0, .Script
|
||||
|
@ -6,7 +6,7 @@ Route23_MapScripts:
|
||||
|
||||
.FlyPoint:
|
||||
setflag ENGINE_FLYPOINT_INDIGO_PLATEAU
|
||||
return
|
||||
endcallback
|
||||
|
||||
IndigoPlateauSign:
|
||||
jumptext IndigoPlateauSignText
|
||||
|
@ -28,13 +28,13 @@ Route29_MapScripts:
|
||||
|
||||
.TuscanyDisappears:
|
||||
disappear ROUTE29_TUSCANY
|
||||
return
|
||||
endcallback
|
||||
|
||||
.DoesTuscanyAppear:
|
||||
readvar VAR_WEEKDAY
|
||||
ifnotequal TUESDAY, .TuscanyDisappears
|
||||
appear ROUTE29_TUSCANY
|
||||
return
|
||||
endcallback
|
||||
|
||||
Route29Tutorial1:
|
||||
turnobject ROUTE29_COOLTRAINER_M1, UP
|
||||
|
@ -16,11 +16,11 @@ Route31_MapScripts:
|
||||
.CheckMomCall:
|
||||
checkevent EVENT_TALKED_TO_MOM_AFTER_MYSTERY_EGG_QUEST
|
||||
iffalse .DoMomCall
|
||||
return
|
||||
endcallback
|
||||
|
||||
.DoMomCall:
|
||||
specialphonecall SPECIALCALL_WORRIED
|
||||
return
|
||||
endcallback
|
||||
|
||||
TrainerBugCatcherWade1:
|
||||
trainer BUG_CATCHER, WADE1, EVENT_BEAT_BUG_CATCHER_WADE, BugCatcherWade1SeenText, BugCatcherWade1BeatenText, 0, .Script
|
||||
|
@ -36,11 +36,11 @@ Route32_MapScripts:
|
||||
readvar VAR_WEEKDAY
|
||||
ifequal FRIDAY, .FriedaAppears
|
||||
disappear ROUTE32_FRIEDA
|
||||
return
|
||||
endcallback
|
||||
|
||||
.FriedaAppears:
|
||||
appear ROUTE32_FRIEDA
|
||||
return
|
||||
endcallback
|
||||
|
||||
Route32CooltrainerMScript:
|
||||
faceplayer
|
||||
|
@ -45,11 +45,11 @@ Route34_MapScripts:
|
||||
checkflag ENGINE_DAY_CARE_LADY_HAS_MON
|
||||
iffalse .HideMon2
|
||||
clearevent EVENT_DAY_CARE_MON_2
|
||||
return
|
||||
endcallback
|
||||
|
||||
.HideMon2:
|
||||
setevent EVENT_DAY_CARE_MON_2
|
||||
return
|
||||
endcallback
|
||||
|
||||
DayCareManScript_Outside:
|
||||
faceplayer
|
||||
|
@ -15,12 +15,12 @@ Route34IlexForestGate_MapScripts:
|
||||
iffalse .Normal
|
||||
disappear ROUTE34ILEXFORESTGATE_TEACHER1
|
||||
appear ROUTE34ILEXFORESTGATE_TEACHER2
|
||||
return
|
||||
endcallback
|
||||
|
||||
.Normal:
|
||||
disappear ROUTE34ILEXFORESTGATE_TEACHER2
|
||||
appear ROUTE34ILEXFORESTGATE_TEACHER1
|
||||
return
|
||||
endcallback
|
||||
|
||||
Route34IlexForestGateCelebiEvent:
|
||||
checkevent EVENT_FOREST_IS_RESTLESS
|
||||
|
@ -27,11 +27,11 @@ Route35NationalParkGate_MapScripts:
|
||||
checkflag ENGINE_BUG_CONTEST_TIMER
|
||||
iftrue .BugContestIsRunning
|
||||
setscene SCENE_ROUTE35NATIONALPARKGATE_NOTHING
|
||||
return
|
||||
endcallback
|
||||
|
||||
.BugContestIsRunning:
|
||||
setscene SCENE_ROUTE35NATIONALPARKGATE_LEAVE_CONTEST_EARLY
|
||||
return
|
||||
endcallback
|
||||
|
||||
.CheckIfContestAvailable:
|
||||
readvar VAR_WEEKDAY
|
||||
@ -43,13 +43,13 @@ Route35NationalParkGate_MapScripts:
|
||||
disappear ROUTE35NATIONALPARKGATE_OFFICER1
|
||||
appear ROUTE35NATIONALPARKGATE_YOUNGSTER
|
||||
appear ROUTE35NATIONALPARKGATE_OFFICER2
|
||||
return
|
||||
endcallback
|
||||
|
||||
.SetContestOfficer:
|
||||
appear ROUTE35NATIONALPARKGATE_OFFICER1
|
||||
disappear ROUTE35NATIONALPARKGATE_YOUNGSTER
|
||||
disappear ROUTE35NATIONALPARKGATE_OFFICER2
|
||||
return
|
||||
endcallback
|
||||
|
||||
.LeavingContestEarly:
|
||||
applymovement PLAYER, Route35NationalParkGatePlayerApproachOfficer1Movement
|
||||
|
@ -27,11 +27,11 @@ Route36_MapScripts:
|
||||
readvar VAR_WEEKDAY
|
||||
ifequal THURSDAY, .ArthurAppears
|
||||
disappear ROUTE36_ARTHUR
|
||||
return
|
||||
endcallback
|
||||
|
||||
.ArthurAppears:
|
||||
appear ROUTE36_ARTHUR
|
||||
return
|
||||
endcallback
|
||||
|
||||
Route36SuicuneScript:
|
||||
showemote EMOTE_SHOCK, PLAYER, 15
|
||||
|
@ -36,11 +36,11 @@ Route36NationalParkGate_MapScripts:
|
||||
checkflag ENGINE_BUG_CONTEST_TIMER
|
||||
iftrue .BugContestIsRunning
|
||||
setscene SCENE_ROUTE36NATIONALPARKGATE_NOTHING
|
||||
return
|
||||
endcallback
|
||||
|
||||
.BugContestIsRunning:
|
||||
setscene SCENE_ROUTE36NATIONALPARKGATE_LEAVE_CONTEST_EARLY
|
||||
return
|
||||
endcallback
|
||||
|
||||
.CheckIfContestAvailable:
|
||||
checkevent EVENT_WARPED_FROM_ROUTE_35_NATIONAL_PARK_GATE
|
||||
@ -53,13 +53,13 @@ Route36NationalParkGate_MapScripts:
|
||||
iftrue .SetContestOfficer
|
||||
disappear ROUTE36NATIONALPARKGATE_OFFICER1
|
||||
appear ROUTE36NATIONALPARKGATE_OFFICER2
|
||||
return
|
||||
endcallback
|
||||
|
||||
.SetContestOfficer:
|
||||
appear ROUTE36NATIONALPARKGATE_OFFICER1
|
||||
disappear ROUTE36NATIONALPARKGATE_OFFICER2
|
||||
.Return:
|
||||
return
|
||||
endcallback
|
||||
|
||||
.LeavingContestEarly:
|
||||
turnobject PLAYER, UP
|
||||
|
@ -17,11 +17,11 @@ Route37_MapScripts:
|
||||
readvar VAR_WEEKDAY
|
||||
ifequal SUNDAY, .SunnyAppears
|
||||
disappear ROUTE37_SUNNY
|
||||
return
|
||||
endcallback
|
||||
|
||||
.SunnyAppears:
|
||||
appear ROUTE37_SUNNY
|
||||
return
|
||||
endcallback
|
||||
|
||||
TrainerTwinsAnnandanne1:
|
||||
trainer TWINS, ANNANDANNE1, EVENT_BEAT_TWINS_ANN_AND_ANNE, TwinsAnnandanne1SeenText, TwinsAnnandanne1BeatenText, 0, .Script
|
||||
|
@ -23,11 +23,11 @@ Route40_MapScripts:
|
||||
readvar VAR_WEEKDAY
|
||||
ifequal MONDAY, .MonicaAppears
|
||||
disappear ROUTE40_MONICA
|
||||
return
|
||||
endcallback
|
||||
|
||||
.MonicaAppears:
|
||||
appear ROUTE40_MONICA
|
||||
return
|
||||
endcallback
|
||||
|
||||
TrainerSwimmerfElaine:
|
||||
trainer SWIMMERF, ELAINE, EVENT_BEAT_SWIMMERF_ELAINE, SwimmerfElaineSeenText, SwimmerfElaineBeatenText, 0, .Script
|
||||
|
@ -10,7 +10,7 @@ Route40BattleTowerGate_MapScripts:
|
||||
|
||||
.ShowSailor:
|
||||
clearevent EVENT_BATTLE_TOWER_OUTSIDE_SAILOR
|
||||
return
|
||||
endcallback
|
||||
|
||||
Route40BattleTowerGateRockerScript:
|
||||
jumptextfaceplayer Route40BattleTowerGateRockerText
|
||||
|
@ -18,11 +18,11 @@ Route43_MapScripts:
|
||||
checkevent EVENT_CLEARED_ROCKET_HIDEOUT
|
||||
iftrue .NoRockets
|
||||
setmapscene ROUTE_43_GATE, SCENE_DEFAULT
|
||||
return
|
||||
endcallback
|
||||
|
||||
.NoRockets:
|
||||
setmapscene ROUTE_43_GATE, SCENE_FINISHED
|
||||
return
|
||||
endcallback
|
||||
|
||||
TrainerCamperSpencer:
|
||||
trainer CAMPER, SPENCER, EVENT_BEAT_CAMPER_SPENCER, CamperSpencerSeenText, CamperSpencerBeatenText, 0, .Script
|
||||
|
@ -24,11 +24,11 @@ Route43Gate_MapScripts:
|
||||
checkevent EVENT_CLEARED_ROCKET_HIDEOUT
|
||||
iftrue .NoRockets
|
||||
setmapscene ROUTE_43, 0 ; Route 43 does not have a scene variable
|
||||
return
|
||||
endcallback
|
||||
|
||||
.NoRockets:
|
||||
setmapscene ROUTE_43, 1 ; Route 43 does not have a scene variable
|
||||
return
|
||||
endcallback
|
||||
|
||||
.RocketTakeover:
|
||||
playmusic MUSIC_ROCKET_ENCOUNTER
|
||||
|
@ -25,12 +25,12 @@ RuinsOfAlphAerodactylChamber_MapScripts:
|
||||
.WallOpen:
|
||||
checkevent EVENT_SOLVED_AERODACTYL_PUZZLE
|
||||
iffalse .FloorClosed
|
||||
return
|
||||
endcallback
|
||||
|
||||
.FloorClosed:
|
||||
changeblock 2, 2, $01 ; left floor
|
||||
changeblock 4, 2, $02 ; right floor
|
||||
return
|
||||
endcallback
|
||||
|
||||
.WallOpenScript:
|
||||
pause 30
|
||||
|
@ -26,12 +26,12 @@ RuinsOfAlphHoOhChamber_MapScripts:
|
||||
.WallOpen:
|
||||
checkevent EVENT_SOLVED_HO_OH_PUZZLE
|
||||
iffalse .FloorClosed
|
||||
return
|
||||
endcallback
|
||||
|
||||
.FloorClosed:
|
||||
changeblock 2, 2, $01 ; left floor
|
||||
changeblock 4, 2, $02 ; right floor
|
||||
return
|
||||
endcallback
|
||||
|
||||
.WallOpenScript:
|
||||
pause 30
|
||||
|
@ -29,12 +29,12 @@ RuinsOfAlphKabutoChamber_MapScripts:
|
||||
.WallOpen:
|
||||
checkevent EVENT_SOLVED_KABUTO_PUZZLE
|
||||
iffalse .FloorClosed
|
||||
return
|
||||
endcallback
|
||||
|
||||
.FloorClosed:
|
||||
changeblock 2, 2, $01 ; left floor
|
||||
changeblock 4, 2, $02 ; right floor
|
||||
return
|
||||
endcallback
|
||||
|
||||
.WallOpenScript:
|
||||
pause 30
|
||||
|
@ -26,12 +26,12 @@ RuinsOfAlphOmanyteChamber_MapScripts:
|
||||
.WallOpen:
|
||||
checkevent EVENT_SOLVED_OMANYTE_PUZZLE
|
||||
iffalse .FloorClosed
|
||||
return
|
||||
endcallback
|
||||
|
||||
.FloorClosed:
|
||||
changeblock 2, 2, $01 ; left floor
|
||||
changeblock 4, 2, $02 ; right floor
|
||||
return
|
||||
endcallback
|
||||
|
||||
.WallOpenScript:
|
||||
pause 30
|
||||
|
@ -34,12 +34,12 @@ RuinsOfAlphOutside_MapScripts:
|
||||
.YesScientist:
|
||||
appear RUINSOFALPHOUTSIDE_SCIENTIST
|
||||
setscene SCENE_RUINSOFALPHOUTSIDE_GET_UNOWN_DEX
|
||||
return
|
||||
endcallback
|
||||
|
||||
.NoScientist:
|
||||
disappear RUINSOFALPHOUTSIDE_SCIENTIST
|
||||
setscene SCENE_RUINSOFALPHOUTSIDE_NOTHING
|
||||
return
|
||||
endcallback
|
||||
|
||||
RuinsOfAlphOutsideScientistScene1:
|
||||
turnobject RUINSOFALPHOUTSIDE_SCIENTIST, UP
|
||||
|
@ -21,12 +21,12 @@ RuinsOfAlphResearchCenter_MapScripts:
|
||||
.ScientistCallback:
|
||||
checkscene
|
||||
ifequal SCENE_RUINSOFALPHRESEARCHCENTER_GET_UNOWN_DEX, .ShowScientist
|
||||
return
|
||||
endcallback
|
||||
|
||||
.ShowScientist:
|
||||
moveobject RUINSOFALPHRESEARCHCENTER_SCIENTIST3, 3, 7
|
||||
appear RUINSOFALPHRESEARCHCENTER_SCIENTIST3
|
||||
return
|
||||
endcallback
|
||||
|
||||
.GetUnownDexScript:
|
||||
applymovement RUINSOFALPHRESEARCHCENTER_SCIENTIST3, MovementData_0x5926f
|
||||
|
@ -16,7 +16,7 @@ SaffronCity_MapScripts:
|
||||
|
||||
.FlyPoint:
|
||||
setflag ENGINE_FLYPOINT_SAFFRON
|
||||
return
|
||||
endcallback
|
||||
|
||||
SaffronCityLass1Script:
|
||||
faceplayer
|
||||
|
@ -6,7 +6,7 @@ SilverCaveOutside_MapScripts:
|
||||
|
||||
.FlyPoint:
|
||||
setflag ENGINE_FLYPOINT_SILVER_CAVE
|
||||
return
|
||||
endcallback
|
||||
|
||||
MtSilverPokecenterSign:
|
||||
jumpstd PokecenterSignScript
|
||||
|
@ -18,7 +18,7 @@ TeamRocketBaseB1F_MapScripts:
|
||||
|
||||
.HideSecurityGrunt:
|
||||
disappear TEAMROCKETBASEB1F_ROCKET1
|
||||
return
|
||||
endcallback
|
||||
|
||||
SecurityCamera1a:
|
||||
checkevent EVENT_SECURITY_CAMERA_1
|
||||
|
@ -39,11 +39,11 @@ TeamRocketBaseB2F_MapScripts:
|
||||
.TransmitterDoorCallback:
|
||||
checkevent EVENT_OPENED_DOOR_TO_ROCKET_HIDEOUT_TRANSMITTER
|
||||
iftrue .OpenDoor
|
||||
return
|
||||
endcallback
|
||||
|
||||
.OpenDoor:
|
||||
changeblock 14, 12, $07 ; floor
|
||||
return
|
||||
endcallback
|
||||
|
||||
RocketBaseBossFLeft:
|
||||
moveobject TEAMROCKETBASEB2F_LANCE, 9, 13
|
||||
|
@ -40,11 +40,11 @@ TeamRocketBaseB3F_MapScripts:
|
||||
.CheckGiovanniDoor:
|
||||
checkevent EVENT_OPENED_DOOR_TO_GIOVANNIS_OFFICE
|
||||
iftrue .OpenSesame
|
||||
return
|
||||
endcallback
|
||||
|
||||
.OpenSesame:
|
||||
changeblock 10, 8, $07 ; floor
|
||||
return
|
||||
endcallback
|
||||
|
||||
LanceGetPasswordScript:
|
||||
turnobject PLAYER, LEFT
|
||||
|
@ -22,12 +22,12 @@ TimeCapsule_MapScripts:
|
||||
iffalse .Chris2
|
||||
disappear TIMECAPSULE_CHRIS2
|
||||
appear TIMECAPSULE_CHRIS1
|
||||
return
|
||||
endcallback
|
||||
|
||||
.Chris2:
|
||||
disappear TIMECAPSULE_CHRIS1
|
||||
appear TIMECAPSULE_CHRIS2
|
||||
return
|
||||
endcallback
|
||||
|
||||
.InitializeAndPreparePokecenter2F:
|
||||
setscene SCENE_FINISHED
|
||||
|
@ -40,7 +40,7 @@ TinTower1F_MapScripts:
|
||||
iffalse .Done
|
||||
appear TINTOWER1F_EUSINE
|
||||
.Done:
|
||||
return
|
||||
endcallback
|
||||
|
||||
.FaceBeasts:
|
||||
checkevent EVENT_FOUGHT_SUICUNE
|
||||
@ -64,7 +64,7 @@ TinTower1F_MapScripts:
|
||||
.NoEntei:
|
||||
disappear TINTOWER1F_ENTEI
|
||||
.BeastsDone:
|
||||
return
|
||||
endcallback
|
||||
|
||||
.FoughtSuicune:
|
||||
disappear TINTOWER1F_SUICUNE
|
||||
@ -72,14 +72,14 @@ TinTower1F_MapScripts:
|
||||
disappear TINTOWER1F_ENTEI
|
||||
clearevent EVENT_TIN_TOWER_1F_WISE_TRIO_1
|
||||
setevent EVENT_TIN_TOWER_1F_WISE_TRIO_2
|
||||
return
|
||||
endcallback
|
||||
|
||||
.StairsCallback:
|
||||
checkevent EVENT_GOT_RAINBOW_WING
|
||||
iftrue .DontHideStairs
|
||||
changeblock 10, 2, $09 ; floor
|
||||
.DontHideStairs:
|
||||
return
|
||||
endcallback
|
||||
|
||||
.SuicuneBattle:
|
||||
applymovement PLAYER, TinTowerPlayerMovement1
|
||||
|
@ -16,11 +16,11 @@ TinTowerRoof_MapScripts:
|
||||
|
||||
.Appear:
|
||||
appear TINTOWERROOF_HO_OH
|
||||
return
|
||||
endcallback
|
||||
|
||||
.NoAppear:
|
||||
disappear TINTOWERROOF_HO_OH
|
||||
return
|
||||
endcallback
|
||||
|
||||
TinTowerHoOh:
|
||||
faceplayer
|
||||
|
@ -22,12 +22,12 @@ TradeCenter_MapScripts:
|
||||
iffalse .Chris2
|
||||
disappear TRADECENTER_CHRIS2
|
||||
appear TRADECENTER_CHRIS1
|
||||
return
|
||||
endcallback
|
||||
|
||||
.Chris2:
|
||||
disappear TRADECENTER_CHRIS1
|
||||
appear TRADECENTER_CHRIS2
|
||||
return
|
||||
endcallback
|
||||
|
||||
.InitializeAndPreparePokecenter2F:
|
||||
setscene SCENE_FINISHED
|
||||
|
@ -19,11 +19,11 @@ UnionCaveB2F_MapScripts:
|
||||
ifequal FRIDAY, .Appear
|
||||
.NoAppear:
|
||||
disappear UNIONCAVEB2F_LAPRAS
|
||||
return
|
||||
endcallback
|
||||
|
||||
.Appear:
|
||||
appear UNIONCAVEB2F_LAPRAS
|
||||
return
|
||||
endcallback
|
||||
|
||||
UnionCaveLapras:
|
||||
faceplayer
|
||||
|
@ -14,7 +14,7 @@ VermilionCity_MapScripts:
|
||||
|
||||
.FlyPoint:
|
||||
setflag ENGINE_FLYPOINT_VERMILION
|
||||
return
|
||||
endcallback
|
||||
|
||||
VermilionCityTeacherScript:
|
||||
jumptextfaceplayer VermilionCityTeacherText
|
||||
|
@ -20,7 +20,7 @@ VermilionPort_MapScripts:
|
||||
|
||||
.FlyPoint:
|
||||
setflag ENGINE_FLYPOINT_VERMILION
|
||||
return
|
||||
endcallback
|
||||
|
||||
.LeaveFastShipScript:
|
||||
applymovement PLAYER, MovementData_0x74ef3
|
||||
|
@ -16,7 +16,7 @@ VioletCity_MapScripts:
|
||||
|
||||
.FlyPoint:
|
||||
setflag ENGINE_FLYPOINT_VIOLET
|
||||
return
|
||||
endcallback
|
||||
|
||||
VioletCityEarlScript:
|
||||
applymovement VIOLETCITY_EARL, VioletCitySpinningEarl_MovementData
|
||||
|
@ -12,7 +12,7 @@ ViridianCity_MapScripts:
|
||||
|
||||
.FlyPoint:
|
||||
setflag ENGINE_FLYPOINT_VIRIDIAN
|
||||
return
|
||||
endcallback
|
||||
|
||||
ViridianCityCoffeeGramps:
|
||||
faceplayer
|
||||
|
@ -16,11 +16,11 @@ WhirlIslandLugiaChamber_MapScripts:
|
||||
|
||||
.Appear:
|
||||
appear WHIRLISLANDLUGIACHAMBER_LUGIA
|
||||
return
|
||||
endcallback
|
||||
|
||||
.NoAppear:
|
||||
disappear WHIRLISLANDLUGIACHAMBER_LUGIA
|
||||
return
|
||||
endcallback
|
||||
|
||||
Lugia:
|
||||
faceplayer
|
||||
|
@ -25,7 +25,7 @@ WillsRoom_MapScripts:
|
||||
iffalse .KeepExitClosed
|
||||
changeblock 4, 2, $16 ; open door
|
||||
.KeepExitClosed:
|
||||
return
|
||||
endcallback
|
||||
|
||||
.WillsDoorLocksBehindYou:
|
||||
applymovement PLAYER, WillsRoom_EnterMovement
|
||||
|
@ -29,17 +29,17 @@ WiseTriosRoom_MapScripts:
|
||||
iftrue .WiseTrio2
|
||||
clearevent EVENT_WISE_TRIOS_ROOM_WISE_TRIO_1
|
||||
setevent EVENT_WISE_TRIOS_ROOM_WISE_TRIO_2
|
||||
return
|
||||
endcallback
|
||||
|
||||
.WiseTrio2:
|
||||
setevent EVENT_WISE_TRIOS_ROOM_WISE_TRIO_1
|
||||
clearevent EVENT_WISE_TRIOS_ROOM_WISE_TRIO_2
|
||||
return
|
||||
endcallback
|
||||
|
||||
.NoWiseTrio:
|
||||
setevent EVENT_WISE_TRIOS_ROOM_WISE_TRIO_1
|
||||
setevent EVENT_WISE_TRIOS_ROOM_WISE_TRIO_2
|
||||
return
|
||||
endcallback
|
||||
|
||||
WiseTriosRoomSage1Script:
|
||||
jumptextfaceplayer WiseTriosRoomSage1Text
|
||||
|
Loading…
Reference in New Issue
Block a user