TR_amuletBaluathScript
TR_Mainland.esm
Variables
4
Local Variables
button
messageOn
reset
OnPCEquip
Source
1Begin TR_amuletBaluathScript
2
3short button
4short messageOn
5short reset
6short OnPCEquip
7
8if ( OnPCEquip == 0 )
9 set reset to 0
10endif
11
12if ( reset == 1 )
13 return
14endif
15
16if ( OnPCEquip == 1 )
17 if ( reset == 0 )
18 if ( VampClan == 100 )
19 if ( PCVampire == 1 )
20 Set OnPCEquip to 0
21
22 if ( TR_m4_Bal_PowerChosen == 0 )
23 if ( GetJournalIndex TR_m4_Bal5_AmuletsPacts == 100 )
24 MessageBox "Which power would you like to choose?" "Return to Ald Balaal" "Ash Mastery" "Daedric Mastery" "Illusion Mastery" "Nothing"
25 else
26 MessageBox "Would you like to return to Ald Balaal?" "Yes" "No"
27 endif
28 set messageOn to 1
29 endif
30
31 endif
32 endif
33 endif
34endif
35
36
37if ( messageOn == 1 )
38
39 set button to GetButtonPressed
40
41 if ( button >= 0 )
42 set messageOn to 0
43 endif
44
45 ; return to Ald Balaal or cancel
46 if ( GetJournalIndex TR_m4_Bal5_AmuletsPacts < 100 )
47
48 if ( button == 0 )
49 Player->PositionCell 330 6830 870 180 "Ald Balaal, Shrine" ; TR_m4_MARK_Bal_player
50 set reset to 1
51 elseif ( button == 1 )
52 set reset to 1
53 return
54 endif
55
56 ; return to Ald Balaal, cancel or choose a power
57 else
58
59 if ( button == 0 )
60 Player->PositionCell 330 6830 870 180 "Ald Balaal, Shrine" ; TR_m4_MARK_Bal_player
61 set reset to 1
62 elseif ( button == 4 )
63 set reset to 1
64 return
65 elseif ( button < 1 )
66 elseif ( button > 3 )
67 elseif ( DaysPassed == TR_m4_Bal_AmuletDayUsed )
68 MessageBox "You have already used the amulet's power today."
69 set reset to 1
70 return
71 else
72 set TR_m4_Bal_PowerChosen to ( button )
73 StartScript TR_m4_Bal_AmuletCallPower
74 set reset to 1
75 return
76 endif
77
78 endif
79
80endif
81
82End