mazedbandEnd_Script
Tribunal.esm
Variables
4
Local Variables
button
messageOn
reset
OnPcEquip
Source
1Begin mazedbandEnd_Script
2
3short button
4short messageOn
5short reset
6short OnPcEquip
7
8;if ( MenuMode == 1 )
9; Return
10;endif
11
12
13if ( OnPCEquip == 0 )
14 set reset to 0
15endif
16
17if ( reset == 1 )
18 return
19endif
20
21if ( OnPCEquip == 1 )
22 if ( reset == 0 )
23 Set OnPCEquip to 0
24 MessageBox "Use the Mazedband to teleport where?" "Vivec" "Mournhold" "Sotha Sil" "Nowhere"
25 if ( GetJournalIndex TR_SothaSil == 100 )
26 set messageOn to 2
27 else
28 set messageOn to 1
29 endif
30 endif
31endif
32
33if ( messageOn == 1 )
34
35 set button to GetButtonPressed
36
37 if ( button >= 0 )
38 set messageOn to 0
39 endif
40
41 ;vivec
42 if ( button == 0 )
43 playsound "conjuration hit"
44 Player->PositionCell 12, 219, -501, 0 "Vivec, High Fane"
45 set reset to 1
46
47 ;mournhold
48 elseif ( button == 1 )
49 playsound "conjuration hit"
50 Player->PositionCell 0, -478, -645, 0 "Mournhold Temple: High Chapel"
51 set reset to 1
52
53 ;sotha sil
54 elseif ( button == 2 )
55 playsound "conjuration hit"
56 Player->PositionCell 3976, 4179, 12310, 0 "Sotha Sil, Dome of Sotha Sil"
57 set reset to 1
58 return
59
60 elseif ( button == 3 )
61 set reset to 1
62 return
63
64 endif
65
66endif
67
68if ( messageOn == 2 )
69
70 set button to GetButtonPressed
71
72 if ( button >= 0 )
73 set messageOn to 0
74 endif
75
76 ;vivec
77 if ( button == 0 )
78 MessageBox "You feel a powerful force interrupt the Mazed Band's spell and pull you toward Mournhold."
79 playsound "conjuration hit"
80 Player->PositionCell 0, -478, -645, 0 "Mournhold Temple: High Chapel"
81 set reset to 1
82
83 ;mournhold
84 elseif ( button == 1 )
85 MessageBox "You feel a powerful force interrupt the Mazed Band's spell and pull you toward Mournhold."
86 playsound "conjuration hit"
87 Player->PositionCell 0, -478, -645, 0 "Mournhold Temple: High Chapel"
88 set reset to 1
89
90 ;sotha sil
91 elseif ( button == 2 )
92 MessageBox "You feel a powerful force interrupt the Mazed Band's spell and pull you toward Mournhold."
93 playsound "conjuration hit"
94 Player->PositionCell 0, -478, -645, 0 "Mournhold Temple: High Chapel"
95 set reset to 1
96 return
97
98 elseif ( button == 3 )
99 set reset to 1
100 return
101
102 endif
103
104endif
105
106
107End