TR_m1_IL_letterscript
TR_Mainland.esm
Variables
4
Local Variables
OnPCEquip
PCSkipEquip
doOnce
actionFlag
Source
1begin TR_m1_IL_letterscript
2
3short OnPCEquip
4short PCSkipEquip
5short doOnce
6short actionFlag
7
8if ( onPCequip == 1 )
9 if ( getjournalindex TR_m1_IL_Pahunsabi < 20 )
10 if ( getjournalindex TR_m1_IL_Pahunsabi > 0 )
11 addtopic "incriminating note"
12 journal TR_m1_IL_Pahunsabi 20
13 endif
14 endif
15endif
16
17if ( actionFlag == 1 )
18 if ( getjournalindex TR_m1_IL_Pahunsabi < 20 )
19 if ( getjournalindex TR_m1_IL_Pahunsabi > 0 )
20 addtopic "incriminating note"
21 journal TR_m1_IL_Pahunsabi 20
22 endif
23 endif
24 set actionFlag to 0
25endif
26
27if ( PCSkipEquip == 1 )
28 set PCSkipEquip to 0
29 set actionFlag to 1
30 return
31endif
32
33if ( MenuMode )
34 return
35endif
36
37if ( OnActivate == 1 )
38 set actionFlag to 1
39 Activate
40endif
41
42end