TR_m2_q_AB_AdrosuNoteSCN
TR_Mainland.esm
Variables
4
Local Variables
OnPCEquip
PCSkipEquip
doOnce
actionFlag
Source
1begin TR_m2_q_AB_AdrosuNoteSCN
2
3; Script on book TR_m2_q_AB_AdrosuNote for quest
4; "TR_m2_wil_tongue".
5
6short OnPCEquip
7short PCSkipEquip
8short doOnce
9short actionFlag
10
11set PCSkipEquip to 0
12
13if ( actionFlag == 1 )
14 if ( doOnce == 0 )
15 Journal "TR_m2_wil_Tongue" 35
16 ;AddTopic "Regrowth Potion"
17 set doOnce to 1
18 endif
19 set actionFlag to 0
20endif
21
22; Activating from the inventory
23if ( MenuMode )
24
25 ; vanilla engine fails to set PCSkipEquip under certain conditions
26 set PCSkipEquip to 1
27
28 if ( OnPCEquip )
29
30 set actionFlag to 1
31
32 set OnPCEquip to 0
33 set PCSkipEquip to 0 ; OpenMW fails to open the book without this line
34 Activate
35 endif
36
37 ; never let OnActivate section happen in MenuMode
38 return
39endif
40
41; Activating in the world
42if ( OnActivate )
43
44 set actionFlag to 1
45
46 Activate
47endif
48
49end