TR_m7_HH_HindsightChest_SC
TR_Mainland.esm
Variables
2
Local Variables
chestcheck
doOnce
Source
1Begin TR_m7_HH_HindsightChest_SC
2
3short chestcheck
4short doOnce
5
6if ( chestcheck == 1 )
7 if ( GetItemCount "TR_m7_Iuval_Coronati_Hammer" >= 1 )
8 Set TR_m7_HindsightPlanted to 1
9 set chestcheck to 0
10 endif
11endif
12
13if ( chestcheck == 0 )
14 if ( GetItemCount "TR_m7_Iuval_Coronati_Hammer" < 1 )
15 Set TR_m7_HindsightPlanted to 0
16 set chestcheck to 1
17 endif
18endif
19
20if ( GetJournalIndex tr_m7_oth_hh_6 >= 10 )
21 if ( GetJournalIndex tr_m7_oth_hh_6 < 50 )
22 if ( doonce == 2 )
23 if ( GetItemCount "TR_m7_Iuval_Coronati_Hammer" >= 1 )
24 set doonce to 1
25 Set TR_m7_HindsightPlanted to 1
26 endif
27 endif
28 endif
29endif
30
31if ( doonce == 1 )
32 if ( GetItemCount "TR_m7_Iuval_Coronati_Hammer" < 1 )
33 set doonce to 2
34 Set TR_m7_HindsightPlanted to 0
35 endif
36endif
37
38if ( GetJournalIndex tr_m7_oth_hh_6 >= 10 ) ; only give journal entry once
39 if ( GetJournalIndex tr_m7_oth_hh_6 < 50 )
40 if ( doonce == 0 )
41 if ( GetItemCount "TR_m7_Iuval_Coronati_Hammer" >= 1 )
42 set doonce to 1
43 Journal tr_m7_oth_hh_6 50
44 Set TR_m7_HindsightPlanted to 1
45 endif
46 endif
47 endif
48endif
49End