2014-05-18 18:19:10 +00:00
|
|
|
Route8GateScript: ; 1e1c7 (7:61c7)
|
|
|
|
call EnableAutoTextBoxDrawing
|
|
|
|
ld hl, Route8GateScriptPointers
|
|
|
|
ld a, [W_ROUTE8GATECURSCRIPT]
|
|
|
|
jp CallFunctionInTable
|
|
|
|
|
|
|
|
Route8GateScriptPointers: ; 1e1d3 (7:61d3)
|
|
|
|
dw Route8GateScript0
|
|
|
|
dw Route8GateScript1
|
|
|
|
|
|
|
|
Route8GateScript_1e1d7: ; 1e1d7 (7:61d7)
|
2014-05-26 21:04:56 +00:00
|
|
|
ld hl, wd730
|
2014-05-18 18:19:10 +00:00
|
|
|
set 7, [hl]
|
|
|
|
ld a, $10
|
2014-09-10 03:55:19 +00:00
|
|
|
ld [wSimulatedJoypadStatesEnd], a
|
2014-05-18 18:19:10 +00:00
|
|
|
ld a, $1
|
2014-09-10 03:55:19 +00:00
|
|
|
ld [wSimulatedJoypadStatesIndex], a
|
2014-05-18 18:19:10 +00:00
|
|
|
xor a
|
2014-05-26 21:04:56 +00:00
|
|
|
ld [wSpriteStateData2 + $06], a
|
2014-09-10 03:55:19 +00:00
|
|
|
ld [wOverrideSimulatedJoypadStatesMask], a
|
2014-05-18 18:19:10 +00:00
|
|
|
ret
|
|
|
|
|
|
|
|
Route8GateScript0: ; 1e1ee (7:61ee)
|
2014-05-26 21:04:56 +00:00
|
|
|
ld a, [wd728]
|
2014-05-18 18:19:10 +00:00
|
|
|
bit 6, a
|
|
|
|
ret nz
|
|
|
|
ld hl, CoordsData_1e22c
|
|
|
|
call ArePlayerCoordsInArray
|
|
|
|
ret nc
|
|
|
|
ld a, $2
|
2014-05-26 21:04:56 +00:00
|
|
|
ld [wd528], a
|
2014-05-18 18:19:10 +00:00
|
|
|
xor a
|
2014-05-25 17:51:53 +00:00
|
|
|
ld [hJoyHeld], a
|
2014-05-19 14:38:20 +00:00
|
|
|
callba RemoveGuardDrink
|
2014-05-18 18:19:10 +00:00
|
|
|
ld a, [$ffdb]
|
|
|
|
and a
|
2015-07-03 19:38:12 +00:00
|
|
|
jr nz, .asm_1e220
|
2014-05-18 18:19:10 +00:00
|
|
|
ld a, $2
|
|
|
|
ld [$ff8c], a
|
|
|
|
call DisplayTextID
|
|
|
|
call Route8GateScript_1e1d7
|
|
|
|
ld a, $1
|
|
|
|
ld [W_ROUTE8GATECURSCRIPT], a
|
|
|
|
ret
|
|
|
|
.asm_1e220
|
2014-05-26 21:04:56 +00:00
|
|
|
ld hl, wd728
|
2014-05-18 18:19:10 +00:00
|
|
|
set 6, [hl]
|
|
|
|
ld a, $3
|
|
|
|
ld [$ff8c], a
|
|
|
|
jp DisplayTextID
|
|
|
|
|
|
|
|
CoordsData_1e22c: ; 1e22c (7:622c)
|
|
|
|
db 3,2
|
|
|
|
db 4,2
|
|
|
|
db $ff
|
|
|
|
|
|
|
|
Route8GateScript1: ; 1e231 (7:6231)
|
2014-09-10 03:55:19 +00:00
|
|
|
ld a, [wSimulatedJoypadStatesIndex]
|
2014-05-18 18:19:10 +00:00
|
|
|
and a
|
|
|
|
ret nz
|
|
|
|
call Delay3
|
|
|
|
xor a
|
2014-05-25 17:51:53 +00:00
|
|
|
ld [wJoyIgnore], a
|
2014-05-18 18:19:10 +00:00
|
|
|
ld [W_ROUTE8GATECURSCRIPT], a
|
|
|
|
ret
|
|
|
|
|
|
|
|
Route8GateTextPointers: ; 1e241 (7:6241)
|
|
|
|
dw Route8GateText1
|
|
|
|
dw Route8GateText2
|
|
|
|
dw Route8GateText3
|