More Battle Tower map script constants, fewer raw hex values

This commit is contained in:
Remy Oukaour
2018-01-14 19:26:55 -05:00
parent 2ab60fa8a4
commit eb3102200f
19 changed files with 59 additions and 52 deletions

View File

@@ -67,17 +67,17 @@ ReceptionistScript_0x9e3e2:
Script_Menu_ChallengeExplanationCancel: ; 0x9e3fc
writetext Text_WantToGoIntoABattleRoom
writebyte $1
writebyte TRUE
special Special_Menu_ChallengeExplanationCancel
if_equal $1, Script_ChooseChallenge
if_equal $2, Script_BattleTowerExplanation
if_equal 1, Script_ChooseChallenge
if_equal 2, Script_BattleTowerExplanation
jump Script_BattleTowerHopeToServeYouAgain
Script_ChooseChallenge: ; 0x9e40f
writebyte BATTLETOWERACTION_RESETDATA ; ResetBattleTowerTrainerSRAM
special BattleTowerAction
special SpecialCheckForBattleTowerRules
if_not_equal $0, Script_WaitButton
if_not_equal FALSE, Script_WaitButton
writetext Text_SaveBeforeEnteringBattleRoom
yesorno
iffalse Script_Menu_ChallengeExplanationCancel
@@ -193,7 +193,7 @@ UnreferencedScript_0x9e4ea:
special BattleTowerAction
if_not_equal $0, Script_MayNotEnterABattleRoomUnderL70
special SpecialCheckForBattleTowerRules
if_not_equal $0, Script_WaitButton
if_not_equal FALSE, Script_WaitButton
writebyte BATTLETOWERACTION_05
special BattleTowerAction
if_equal $0, .zero

View File

@@ -29,7 +29,7 @@ Script_BattleRoomLoop: ; 0x9f425
waitsfx
applymovement BATTLETOWERBATTLEROOM_YOUNGSTER, MovementData_BattleTowerBattleRoomOpponentWalksIn
opentext
battletowertext $1
battletowertext BATTLETOWERTEXT_INTRO
buttonsound
closetext
special BattleTowerBattle ; calls predef startbattle

View File

@@ -33,7 +33,7 @@ BurnedTower1F_MapScriptHeader:
.Next:
checkevent EVENT_RELEASED_THE_BEASTS
iftrue .Done
changeblock 6, 14, $9 ; ladder
changeblock 6, 14, $09 ; ladder
.Done:
return

View File

@@ -28,7 +28,7 @@ BurnedTowerB1F_MapScriptHeader:
.LadderCallback:
checkevent EVENT_RELEASED_THE_BEASTS
iftrue .NoChange
changeblock 6, 14, $2
changeblock 6, 14, $02
.NoChange:
return

View File

@@ -23,7 +23,7 @@ UnknownScript_0x7d781:
jump UnknownScript_0x7d791
UnknownScript_0x7d78a:
changeblock 16, 4, $d
changeblock 16, 4, $0d
jump UnknownScript_0x7d791
UnknownScript_0x7d791:
@@ -31,15 +31,15 @@ UnknownScript_0x7d791:
iftrue .Layout2
checkevent EVENT_GOLDENROD_DEPT_STORE_B1F_LAYOUT_3
iftrue .Layout3
changeblock 10, 8, $d
changeblock 10, 8, $0d
return
.Layout2:
changeblock 4, 10, $d
changeblock 4, 10, $0d
return
.Layout3:
changeblock 10, 12, $d
changeblock 10, 12, $0d
return
UnknownScript_0x7d7ac:

View File

@@ -24,7 +24,7 @@ GoldenrodDeptStoreRoof_MapScriptHeader:
.ChangeBlock:
changeblock 0, 2, $3f
changeblock 0, 4, $f
changeblock 0, 4, $0f
return
.CheckSaleChangeClerk:

View File

@@ -27,7 +27,7 @@ LancesRoom_MapScriptHeader:
.KeepDoorsClosed:
checkevent EVENT_LANCES_ROOM_EXIT_OPEN
iffalse .OpenDoors
changeblock 4, 0, $b
changeblock 4, 0, $0b
.OpenDoors:
return
@@ -69,7 +69,7 @@ LanceScript_0x180e7b:
waitbutton
closetext
playsound SFX_ENTER_DOOR
changeblock 4, 0, $b
changeblock 4, 0, $0b
reloadmappart
closetext
setevent EVENT_LANCES_ROOM_ENTRANCE_CLOSED

View File

@@ -22,7 +22,7 @@ RadioTower3F_MapScriptHeader:
.Change:
changeblock 14, 2, $2a
changeblock 14, 4, $1
changeblock 14, 4, $01
return
RadioTower3FSuperNerdScript:
@@ -144,7 +144,7 @@ UnknownScript_0x5e605:
setevent EVENT_USED_THE_CARD_KEY_IN_THE_RADIO_TOWER
playsound SFX_ENTER_DOOR
changeblock 14, 2, $2a
changeblock 14, 4, $1
changeblock 14, 4, $01
reloadmappart
closetext
waitsfx

View File

@@ -153,8 +153,8 @@ UnknownScript_0x1a4e1e:
scall UnknownScript_0x1a4e7f
UnknownScript_0x1a4e21:
askforphonenumber PHONE_COOLTRAINERF_BETH
if_equal $1, UnknownScript_0x1a4e8f
if_equal $2, UnknownScript_0x1a4e8b
if_equal PHONE_CONTACTS_FULL, UnknownScript_0x1a4e8f
if_equal PHONE_CONTACT_REFUSED, UnknownScript_0x1a4e8b
trainertotext COOLTRAINERF, BETH1, MEM_BUFFER_0
scall UnknownScript_0x1a4e83
jump UnknownScript_0x1a4e87

View File

@@ -30,8 +30,8 @@ RuinsOfAlphAerodactylChamber_MapScriptHeader:
return
.FloorClosed:
changeblock 2, 2, $1
changeblock 4, 2, $2
changeblock 2, 2, $01
changeblock 4, 2, $02
return
.WallOpenScript:

View File

@@ -31,8 +31,8 @@ RuinsOfAlphHoOhChamber_MapScriptHeader:
return
.FloorClosed:
changeblock 2, 2, $1
changeblock 4, 2, $2
changeblock 2, 2, $01
changeblock 4, 2, $02
return
.WallOpenScript:

View File

@@ -34,8 +34,8 @@ RuinsOfAlphKabutoChamber_MapScriptHeader:
return
.FloorClosed:
changeblock 2, 2, $1
changeblock 4, 2, $2
changeblock 2, 2, $01
changeblock 4, 2, $02
return
.WallOpenScript:

View File

@@ -31,8 +31,8 @@ RuinsOfAlphOmanyteChamber_MapScriptHeader:
return
.FloorClosed:
changeblock 2, 2, $1
changeblock 4, 2, $2
changeblock 2, 2, $01
changeblock 4, 2, $02
return
.WallOpenScript:

View File

@@ -79,7 +79,7 @@ TinTower1F_MapScriptHeader:
.StairsCallback:
checkevent EVENT_GOT_RAINBOW_WING
iftrue .DontHideStairs
changeblock 10, 2, $9
changeblock 10, 2, $09
.DontHideStairs:
return