TR_m4_Uman_B1Note_sc
TR_Mainland.esm
Variables
4
Local Variables
OnPCAdd
doOnce
OnPCEquip
PCSkipEquip
Source
1Begin TR_m4_Uman_B1Note_sc
2
3short OnPCAdd
4short doOnce
5short OnPCEquip
6short PCSkipEquip
7
8set PCSkipEquip to 0
9
10if ( GetDisabled )
11 SetDelete 1
12else
13 if ( GetJournalIndex TR_m4_Uman_B1 == 40 )
14 if ( doOnce == 0 ) ; Prevents disabling if PC has picked up the notice
15 Disable
16 endif
17 endif
18endif
19
20if ( OnPCAdd )
21 set doOnce to 1
22endif
23
24if ( MenuMode )
25 set PCSkipEquip to 1
26 if ( OnPCEquip )
27 AddTopic "Hamdirn"
28 set OnPCEquip to 0
29 set PCSkipEquip to 0 ; OpenMW fails to open the book without this line
30 Activate
31 endif
32 return
33endif
34
35if ( OnActivate )
36 AddTopic "Hamdirn"
37 Activate
38endif
39
40end