TR_m4_q_EuphoriaCursedSc
TR_Mainland.esm
Variables
5
Local Variables
PCSkipEquip
OnPCEquip
button
messageOn
reset
Source
1Begin TR_m4_q_EuphoriaCursedSc
2
3short PCSkipEquip
4short OnPCEquip
5short button
6short messageOn
7short reset
8
9if ( TR_m4_q_Euphoria_RingUsed )
10 return
11endif
12
13if ( PCSkipEquip == 0 )
14 set PCSkipEquip to 1
15 set reset to 0
16endif
17
18if ( reset == 1 )
19 return
20endif
21
22if ( OnPCEquip == 1 )
23 if ( reset == 0 )
24 Set OnPCEquip to 0
25 MessageBox "Would you like to equip the ring?" "Yes" "No"
26 set messageOn to 1
27 endif
28endif
29
30if ( messageOn == 1 )
31
32 set button to GetButtonPressed
33
34 if ( button >= 0 )
35 set messageOn to 0
36 endif
37
38 if ( button == 0 )
39
40 set reset to 1
41 set TR_m4_q_Euphoria_RingUsed to 1
42 set PCSkipEquip to 0
43
44 if ( GetJournalIndex "TR_m4_T_Euphoria" == 10 )
45 Journal TR_m4_T_Euphoria 20
46 endif
47 StartScript TR_m4_q_EuphoriaCursedTeleSc
48 return
49
50 elseif ( button == 1 )
51 set reset to 1
52 set PCSkipEquip to 0
53 return
54 endif
55
56endif
57
58End