TR_m7_oth_hh_2_report_sc
TR_Mainland.esm
Variables
4
Local Variables
OnPCEquip
PCSkipEquip
MessageOn
Button
Source
1Begin TR_m7_oth_hh_2_report_sc
2
3short OnPCEquip
4short PCSkipEquip
5short MessageOn
6short Button
7
8set PCSkipEquip to 0
9if ( MenuMode )
10 set PCSkipEquip to 1
11 if ( OnPCEquip )
12 set OnPCEquip to 0
13 set PCSkipEquip to 0 ; OpenMW fails to open the book without this line
14 set MessageOn to 1
15 endif
16 return
17endif
18
19 ; Display message when the player activates the object
20if ( OnActivate == 1 )
21 set MessageOn to 1
22endif
23
24 ; Display the choices to the user
25if ( messageOn == 1 )
26 MessageBox, "The seal on the report is already broken. This was done before you received it.", "Read the report", "Don't read the report"
27 Set messageOn to 2
28endif
29
30if ( messageOn == 2 )
31 set Button to GetButtonPressed
32
33 if ( Button == 0 ) ; Read the report
34 activate
35 if ( GetJournalIndex tr_m7_oth_hh_2 < 30 )
36 journal tr_m7_oth_hh_2 30
37 endif
38 endif
39 if ( Button == 1 ) ; Don't read it
40 if ( GetJournalIndex tr_m7_oth_hh_2 < 30 )
41 journal tr_m7_oth_hh_2 30
42 endif
43 return;
44 endif
45endif
46
47End TR_m7_oth_hh_2_report_sc