Lycanthropycure
Bloodmoon.esm
Variables
5
Local Variables
done
OnPCEquip
PCSkipEquip
onground
mqstatus
Source
1Begin Lycanthropycure
2
3short done
4short OnPCEquip
5short PCSkipEquip
6short onground
7short mqstatus
8
9if ( done == 1 )
10 Set PCSkipEquip to 0
11 return
12endif
13
14if ( GetJournalIndex BM_SkaalAttack < 30 )
15 set mqstatus to 0
16elseif ( GetJournalIndex BM_WildHunt >= 100 )
17 set mqstatus to 0
18else
19 set mqstatus to 1
20endif
21
22if ( player->GetItemCount sc_lycanthropycure > 0 )
23 set onground to 0
24endif
25
26if ( onground == 1 )
27 return
28endif
29
30if ( PCWerewolf != 1 )
31 return
32endif
33
34
35set PCSkipEquip to 1
36
37
38if ( GetJournalIndex BM_Lycanthropycure < 20 )
39 if ( onactivate == 1 )
40 if ( mqstatus == 1 )
41 MessageBox "As you read the Scroll of the Wolf Ender, your Master's voice echoes in your ear, 'Not yet, My Hound.'"
42 set onground to 1
43 activate
44 else
45 MessageBox "You read the Scroll of the Wolf Ender. You have been cleansed of the werewolf curse."
46 Journal "BM_Lycanthropycure" 20
47 Set PCWerewolf to -1
48 Set PCKnownWerewolf to 0
49 set done to 1
50 activate
51 endif
52 endif
53endif
54
55if ( GetJournalIndex BM_Lycanthropycure >= 20 )
56 if ( OnPCEquip == 1 )
57 set done to 1
58 activate
59 endif
60endif
61
62
63if ( GetJournalIndex BM_Lycanthropycure < 20 )
64 if ( OnPCEquip == 1 )
65 if ( mqstatus == 1 )
66 MessageBox "As you read the Scroll of the Wolf Ender, your Master's voice echoes in your ear, 'Not yet, My Hound.'"
67 activate
68 set OnPCEquip to 0
69 else
70 MessageBox "You read the Scroll of the Wolf Ender. You have been cleansed of the werewolf curse."
71 Journal "BM_Lycanthropycure" 20
72 Set PCWerewolf to -1
73 Set PCKnownWerewolf to 0
74 set done to 1
75 activate
76 endif
77 endif
78endif
79
80End Lycanthropycure