pokeruby/data/scripts/maps/FortreeCity_House1.s
2016-07-05 01:43:01 -07:00

66 lines
1.4 KiB
ArmAsm

FortreeCity_House1_MapScripts:: @ 8157E12
.byte 0
FortreeCity_House1_EventScript_157E13:: @ 8157E13
lock
faceplayer
checkflag 155
jumpeq FortreeCity_House1_EventScript_157EAD
setvar 0x8008, 1
copyvar 0x8004, 0x8008
specialval RESULT, 252
copyvar 0x8009, RESULT
msgbox FortreeCity_House1_Text_18568C, 5
compare RESULT, 0
jumpeq FortreeCity_House1_EventScript_157E95
special 159
waitstate
copyvar 0x800a, 0x8004
compare 0x8004, 255
jumpeq FortreeCity_House1_EventScript_157E95
copyvar 0x8005, 0x800a
specialval RESULT, 255
copyvar 0x800b, RESULT
comparevars RESULT, 0x8009
jumpif 5, FortreeCity_House1_EventScript_157E9F
copyvar 0x8004, 0x8008
copyvar 0x8005, 0x800a
special 253
special 254
waitstate
bufferpoke 0, 0x8009
msgbox FortreeCity_House1_Text_1856F7, 4
setflag 155
release
end
FortreeCity_House1_EventScript_157E95:: @ 8157E95
msgbox FortreeCity_House1_Text_18577F, 4
release
end
FortreeCity_House1_EventScript_157E9F:: @ 8157E9F
bufferpoke 0, 0x8009
msgbox FortreeCity_House1_Text_185737, 4
release
end
FortreeCity_House1_EventScript_157EAD:: @ 8157EAD
msgbox FortreeCity_House1_Text_1857C7, 4
release
end
FortreeCity_House1_EventScript_157EB7:: @ 8157EB7
msgbox FortreeCity_House1_Text_18582A, 2
end
FortreeCity_House1_EventScript_157EC0:: @ 8157EC0
lock
faceplayer
checksound
pokecry SPECIES_ZIGZAGOON, 0
msgbox FortreeCity_House1_Text_185888, 4
waitpokecry
release
end