TR_NecMQ_UrnRingletScript
TR_Mainland.esm
Variables
1
Local Variables
controlQ
Source
1Begin TR_NecMQ_UrnRingletScript
2
3; this script places the destroyer's ringlet inside an urn in Theras Ancestral Tomb
4; 6+
5
6Short controlQ
7
8if ( MenuMode == 1 )
9 Return
10endif
11
12; this little loop makes it possible to add the destroyer's ringlet even if the player empties the container
13
14if ( OnActivate == 1 )
15 Activate
16 AddItem Gold_001 1
17 RemoveItem Gold_001 1
18endif
19
20; the player has got the ringlet
21
22if ( controlQ == 10 )
23 Return
24
25; add a journal entry about getting the ringlet
26
27elseif ( controlQ == 2 )
28 if ( GetJournalIndex TR_NecMQ_2Path == 10 )
29 Journal TR_NecMQ_Destroyer 100
30 elseif ( GetJournalIndex TR_NecMQ_2Path == 50 )
31 Journal TR_NecMQ_Destroyer 105
32 endif
33 Set controlQ to 10
34
35; check if the player has taken the ringlet from the urn
36
37elseif ( controlQ == 1 )
38 if ( Player -> GetItemCount TR_NecMQ_RingletDestroyer > 0 )
39 Set controlQ to 2
40 endif
41
42; when the player learns that the ringlet is in the urn, add the ringlet
43
44elseif ( controlQ == 0 )
45 if ( GetJournalIndex TR_NecMQ_Destroyer >= 90 )
46 if ( GetJournalIndex TR_NecMQ_Destroyer < 100 )
47 AddItem TR_NecMQ_RingletDestroyer 1
48 Set controlQ to 1
49 endif
50 endif
51
52endif
53
54End TR_NecMQ_UrnRingletScript