ColonyChestMaryn
Bloodmoon.esm
Variables
2
Local Variables
enabled
doonce
Source
1Begin ColonyChestMaryn
2
3;controls chest for quests CO_6/CO_6a
4;quest CO_6 - update journal when chest is opened and found empty
5;quest CO_6a - update journal when ore has been removed from chest
6
7short enabled
8short doonce
9
10
11if ( enabled == 0 )
12 if ( GetJournalIndex "CO_6" < 10 )
13 if ( GetDisabled == 0 )
14 Disable
15 endif
16 elseif ( GetJournalIndex "CO_6" >= 10 )
17 if ( GetDisabled == 1 )
18 Enable
19 set enabled to 1
20 endif
21 endif
22endif
23
24if ( enabled == 0 )
25 if ( GetJournalIndex "CO_6a" >= 10 )
26 if ( GetDisabled == 1 )
27 Enable
28 set enabled to 1
29 endif
30 endif
31endif
32
33if ( OnActivate == 1 )
34 if ( GetJournalIndex "CO_6" == 20 )
35 Journal CO_6 30
36 Activate
37 else
38 Activate
39 endif
40endif
41
42if ( GetJournalIndex "CO_6a" >= 10 )
43 if ( doonce == 0 )
44 additem "ingred_raw_ebony_01" 5
45 set doonce to 1
46 elseif ( doonce == 1 )
47 if ( "Com_chest_02_maryn"->GetItemCount "ingred_raw_ebony_01" == 0 )
48 Journal CO_6a 20
49 set doonce to 2
50 endif
51 endif
52endif
53
54End ColonyChestMaryn