summaryrefslogtreecommitdiff
path: root/data/scripts/maps/DesertRuins.inc
diff options
context:
space:
mode:
authorgolem galvanize <golemgalvanize@github.com>2018-01-09 16:48:01 -0500
committergolem galvanize <golemgalvanize@github.com>2018-01-09 16:48:01 -0500
commitc7722a492017dbd8a5fb3bb216062eb62129daf5 (patch)
tree2a5c0ba6a6b9364aa93eb4a9a89b35153954ab63 /data/scripts/maps/DesertRuins.inc
parent2d141bc612ffecc984f6b4238c2791ba8419a192 (diff)
parent85174ad6193d3d58b92deaaedf8c510440ed85ee (diff)
fixing merge conflicts
Diffstat (limited to 'data/scripts/maps/DesertRuins.inc')
-rw-r--r--data/scripts/maps/DesertRuins.inc53
1 files changed, 25 insertions, 28 deletions
diff --git a/data/scripts/maps/DesertRuins.inc b/data/scripts/maps/DesertRuins.inc
index df40fc126..2627a8261 100644
--- a/data/scripts/maps/DesertRuins.inc
+++ b/data/scripts/maps/DesertRuins.inc
@@ -5,39 +5,36 @@ DesertRuins_MapScripts:: @ 815CAF3
.byte 0
DesertRuins_MapScript1_15CB03:: @ 815CB03
- checkflag 2145
- callif 1, DesertRuins_EventScript_15CB0D
+ call_if_set FLAG_SYS_CTRL_OBJ_DELETE, DesertRuins_EventScript_15CB0D
end
DesertRuins_EventScript_15CB0D:: @ 815CB0D
- disappear LAST_TALKED
+ removeobject LAST_TALKED
return
DesertRuins_MapScript1_15CB11:: @ 815CB11
- checkflag 2128
- callif 0, DesertRuins_EventScript_15CB1B
+ call_if_unset FLAG_SYS_BRAILLE_STRENGTH, DesertRuins_EventScript_15CB1B
end
DesertRuins_EventScript_15CB1B:: @ 815CB1B
- setmaptile 7, 19, 553, 1
- setmaptile 8, 19, 553, 1
- setmaptile 9, 19, 553, 1
- setmaptile 7, 20, 565, 1
- setmaptile 8, 20, 565, 1
- setmaptile 9, 20, 565, 1
+ setmetatile 7, 19, 553, 1
+ setmetatile 8, 19, 553, 1
+ setmetatile 9, 19, 553, 1
+ setmetatile 7, 20, 565, 1
+ setmetatile 8, 20, 565, 1
+ setmetatile 9, 20, 565, 1
return
DesertRuins_MapScript1_15CB52:: @ 815CB52
- setflag 2134
+ setflag FLAG_LANDMARK_DESERT_RUINS
end
DesertRuins_EventScript_15CB56:: @ 815CB56
lockall
- checkflag 2128
- jumpeq DesertRuins_EventScript_15CB6D
- braillemsg DesertRuins_Braille_1C54C8
- waitbutton
- hidebox 0, 0, 29, 19
+ goto_if_set FLAG_SYS_BRAILLE_STRENGTH, DesertRuins_EventScript_15CB6D
+ braillemessage DesertRuins_Braille_1C54C8
+ waitbuttonpress
+ erasebox 0, 0, 29, 19
releaseall
end
@@ -48,24 +45,24 @@ DesertRuins_EventScript_15CB6D:: @ 815CB6D
DesertRuins_EventScript_15CB77:: @ 815CB77
lockall
- braillemsg DesertRuins_Braille_1C54C8
- waitbutton
- hidebox 0, 0, 29, 19
+ braillemessage DesertRuins_Braille_1C54C8
+ waitbuttonpress
+ erasebox 0, 0, 29, 19
releaseall
end
DesertRuins_EventScript_15CB85:: @ 815CB85
lock
faceplayer
- checksound
- pokecry SPECIES_REGIROCK, 2
- pause 40
- waitpokecry
+ waitse
+ playmoncry SPECIES_REGIROCK, 2
+ delay 40
+ waitmoncry
setwildbattle SPECIES_REGIROCK, 40, ITEM_NONE
- setflag 935
- setflag 2145
- special StartBattle_Regi
+ setflag FLAG_HIDE_REGIROCK
+ setflag FLAG_SYS_CTRL_OBJ_DELETE
+ special ScrSpecial_StartRegiBattle
waitstate
- clearflag 2145
+ clearflag FLAG_SYS_CTRL_OBJ_DELETE
release
end