-
Notifications
You must be signed in to change notification settings - Fork 10
/
script13.s
81 lines (68 loc) · 2.81 KB
/
script13.s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
include macros.s
include mainsym.s
; Script 13, second hacker scene (optional)
org scriptCodeStart
dc.w Hacker3
dc.w Hacker4
; Hacker script routine 3 (after lower labs server room)
;
; Parameters: -
; Returns: -
; Modifies: various
Hacker3: jsr CheckDistance
jsr AddQuestScore
lda #<EP_HACKER4
sta actScriptEP+2
if SKIP_PLOT > 0
lda #PLOT_ESCORTCOMPLETE
jsr SetPlotBit
lda #PLOT_ELEVATOR1
jsr SetPlotBit
endif
gettext txtHacker3
H_SpeakCommon: ldy #ACT_HACKER
jmp SpeakLine
CheckDistance: lda actXH+ACTI_PLAYER
cmp #$1c
bcc CD_Close
pla ;If far, do not return
pla
CD_Close: rts
; Hacker script routine 4 (going to old tunnels)
;
; Parameters: -
; Returns: -
; Modifies: various
Hacker4: jsr CheckDistance
lda #PLOT_ESCORTCOMPLETE
jsr GetPlotBit
bne H4_Ready
lda #$00 ;No more scripts for now
sta actScriptF+2
gettext txtHacker4a
jmp H_SpeakCommon
H4_Ready: lda #PLOT_LOWERLABSNOAIR ;If late in the game, the sabotage
jsr GetPlotBit ;must first be dealt with
bne H4_Unsafe
ldy #ITEM_OLDTUNNELSPASS
jsr FindItem
bcs H4_HasPass
H4_Unsafe: rts
H4_HasPass: lda #PLOT_HIDEOUTOPEN ;Can not return to hideout
jsr ClearPlotBit
lda #<EP_HACKERFOLLOW
sta actScriptEP+2
lda #>EP_HACKERFOLLOW
sta actScriptF+2
gettext txtHacker4b
jmp H_SpeakCommon
; Messages
; Reordered to compress better
txtHacker4b: dc.b 34,"YOU'VE GOT THE OLD TUNNELS PASS? I THINK WE SHOULD HEAD THERE IMMEDIATELY. "
dc.b "I'LL LOCK THE HIDEOUT, SO USE THE RECYCLER NOW IF YOU NEED.",34,0
txtHacker3: dc.b 34,"HEY. I APPRECIATE YOU CHECKING ON ME. THIS PLACE IS SECURE SO FAR, BUT I BET THE AI "
dc.b "IS AWARE OF IT. THERE'S SOMETHING ELSE I FOUND: THE SO-CALLED 'OLD TUNNELS' "
dc.b "WHICH ALSO BRANCH OFF FROM THE LOWER LABS. HAVEN'T SEEN MACHINE TRAFFIC FROM "
dc.b "THERE AT ALL. COULD BE THEIR BLIND SPOT, AND THEREFORE SAFE.",34,0
txtHacker4a: dc.b 34,"BUT GO AND TAKE CARE OF THOSE SCIENTISTS NOW. THEY'RE MUCH MORE EXPOSED.",34,0
checkscriptend