Files
pokeruby/data/scripts/maps/MtChimney.s
T

216 lines
4.3 KiB
ArmAsm

MtChimney_MapScripts:: @ 815CF7C
map_script 5, MtChimney_MapScript1_15CF92
map_script 3, MtChimney_MapScript1_15CF87
.byte 0
MtChimney_MapScript1_15CF87:: @ 815CF87
setvar 0x40bd, 1
call MtChimney_EventScript_1A0196
end
MtChimney_MapScript1_15CF92:: @ 815CF92
tileeffect 1
end
MtChimney_EventScript_15CF95:: @ 815CF95
lock
faceplayer
showmoney 0, 0
snop
msgbox MtChimney_Text_195760, 5
compare RESULT, 0
jumpeq MtChimney_EventScript_15D00B
checkmoney 0xc8, 0
compare RESULT, 0
jumpeq MtChimney_EventScript_15D018
msgbox MtChimney_Text_1957A9, 4
checkitemspace ITEM_LAVA_COOKIE, 1
compare RESULT, 1
callif 1, MtChimney_EventScript_15D000
giveitem ITEM_LAVA_COOKIE
compare RESULT, 0
jumpeq MtChimney_EventScript_15CFF3
hidemoney 0, 0
release
end
MtChimney_EventScript_15CFF3:: @ 815CFF3
msgbox MtChimney_Text_1A0CC2, 4
hidemoney 0, 0
release
end
MtChimney_EventScript_15D000:: @ 815D000
paymoney 0xc8, 0
updatemoney 0, 0
snop
return
MtChimney_EventScript_15D00B:: @ 815D00B
msgbox MtChimney_Text_1957F7, 4
hidemoney 0, 0
release
end
MtChimney_EventScript_15D018:: @ 815D018
msgbox MtChimney_Text_1957BA, 4
hidemoney 0, 0
release
end
MtChimney_Movement_15D025:: @ 815D025
step_up
step_up
step_up
step_up
step_up
step_up
step_right
step_end
MtChimney_Movement_15D02D:: @ 815D02D
step_left
step_down
step_down
step_down
step_down
step_down
step_down
step_down
step_end
MtChimney_Movement_15D036:: @ 815D036
step_up
step_up
step_up
step_up
step_up
step_right
step_right
step_end
MtChimney_Movement_15D03E:: @ 815D03E
step_left
step_left
step_down
step_down
step_down
step_down
step_down
step_down
step_down
step_end
.incbin "baserom.gba", 0x15d048, 0xad
MtChimney_EventScript_15D0F5:: @ 815D0F5
msgbox MtChimney_Text_1B40EA, 3
end
MtChimney_EventScript_15D0FE:: @ 815D0FE
msgbox MtChimney_Text_1B4128, 3
end
MtChimney_EventScript_15D107:: @ 815D107
msgbox MtChimney_Text_1B416E, 3
end
MtChimney_EventScript_15D110:: @ 815D110
trainerbattle 0, TRAINER_MT_CHIMNEY_GRUNT_1, 0, MtChimney_Text_1B3B36, MtChimney_Text_1B3BB8
msgbox MtChimney_Text_1B3C07, 6
end
MtChimney_EventScript_15D127:: @ 815D127
trainerbattle 0, TRAINER_MT_CHIMNEY_GRUNT_2, 0, MtChimney_Text_1B3C96, MtChimney_Text_1B3D1E
msgbox MtChimney_Text_1B3D3D, 6
end
MtChimney_EventScript_15D13E:: @ 815D13E
msgbox MtChimney_Text_1B3D9A, 3
end
.incbin "baserom.gba", 0x15d147, 0x9
MtChimney_EventScript_15D150:: @ 815D150
msgbox MtChimney_Text_1B3DF5, 3
end
MtChimney_EventScript_15D159:: @ 815D159
msgbox MtChimney_Text_1B3E1F, 3
end
MtChimney_EventScript_15D162:: @ 815D162
msgbox MtChimney_Text_1B3E7A, 3
end
MtChimney_EventScript_15D16B:: @ 815D16B
msgbox MtChimney_Text_1B3EBA, 3
end
MtChimney_EventScript_15D174:: @ 815D174
msgbox MtChimney_Text_1B41B0, 3
end
MtChimney_EventScript_15D17D:: @ 815D17D
lockall
checkflag 139
jumpif 0, MtChimney_EventScript_15D1D0
checkflag 115
jumpeq MtChimney_EventScript_15D1C6
msgbox MtChimney_Text_195870, 5
compare RESULT, 0
jumpeq MtChimney_EventScript_15D1BC
msgbox MtChimney_Text_1958C6, 4
giveitem ITEM_METEORITE
setflag 115
releaseall
end
MtChimney_EventScript_15D1BC:: @ 815D1BC
msgbox MtChimney_Text_1958FC, 4
releaseall
end
MtChimney_EventScript_15D1C6:: @ 815D1C6
msgbox MtChimney_Text_195920, 4
releaseall
end
MtChimney_EventScript_15D1D0:: @ 815D1D0
msgbox MtChimney_Text_195806, 4
releaseall
end
MtChimney_EventScript_15D1DA:: @ 815D1DA
msgbox MtChimney_Text_19595C, 3
end
MtChimney_EventScript_15D1E3:: @ 815D1E3
trainerbattle 0, 313, 0, MtChimney_Text_19597F, MtChimney_Text_1959D8
specialval RESULT, 57
compare RESULT, 1
jumpeq MtChimney_EventScript_15D20A
msgbox MtChimney_Text_195A04, 6
end
MtChimney_EventScript_15D20A:: @ 815D20A
trainerbattle 5, 313, 0, MtChimney_Text_195A45, MtChimney_Text_195AAD
msgbox MtChimney_Text_195AD9, 6
end
MtChimney_EventScript_15D221:: @ 815D221
trainerbattle 0, 124, 0, MtChimney_Text_195B1C, MtChimney_Text_195B5F
msgbox MtChimney_Text_195B84, 6
end
MtChimney_EventScript_15D238:: @ 815D238
trainerbattle 0, 125, 0, MtChimney_Text_195BB2, MtChimney_Text_195BF9
msgbox MtChimney_Text_195C31, 6
end
MtChimney_EventScript_15D24F:: @ 815D24F
trainerbattle 0, 126, 0, MtChimney_Text_195CD8, MtChimney_Text_195D2F
msgbox MtChimney_Text_195D5C, 6
end