TR_m7_SeydaNeenLogbookSc
TR_Mainland.esm
Variables
2
Local Variables
OnPCEquip
PCSkipEquip
Source
1Begin TR_m7_SeydaNeenLogbookSc
2
3short OnPCEquip
4short PCSkipEquip
5
6set PCSkipEquip to 0
7; any actions that might end the script must be placed lower than this line
8
9; Activating from the inventory
10
11if ( MenuMode )
12
13 ; the vanilla engine fails to set PCSkipEquip under certain
14 ; conditions, so we must do it ourselves for
15 ; OnPCEquip to work properly
16
17 set PCSkipEquip to 1
18 if ( OnPCEquip )
19
20 ; place actions for when the player opened the book from the inventory here
21 addtopic "Seyda Neen"
22
23 set OnPCEquip to 0
24 set PCSkipEquip to 0 ; OpenMW fails to open the book without this line
25 Activate
26 endif
27
28 ; this return is important
29 ; we must make sure OnActivate secton is only accessed outside of MenuMode
30 ; or the vanilla engine fails to take the book if opened from the world
31 return
32endif
33
34; Activating in the world
35if ( OnActivate )
36
37 ; place actions for when the player opened the book from the world here
38 addtopic "Seyda Neen"
39
40 Activate
41endif
42
43End