TR_m1_Q59_HaO_scpt_ogrim
TR_Mainland.esm
Variables
3
Local Variables
state
OnPCHitMe
doonce
Source
1Begin TR_m1_Q59_HaO_scpt_ogrim
2
3short state
4short OnPCHitMe
5short doonce
6
7if ( state == -1 )
8 Return
9endif
10
11if ( state == 0 )
12 disable
13 set state to 1
14elseif ( state == 1 )
15 if ( GetJournalIndex TR_m1_PT_Ogrim >= 10 )
16 enable
17 set state to 2
18 endif
19elseif ( state == 2 )
20 if ( OnDeath )
21 if ( GetJournalIndex TR_m1_PT_Ogrim < 100 )
22 TR_m1_Q59_HaO_Brendu->AddItem ingred_daedras_heart_01 1
23 RemoveItem ingred_daedras_heart_01 1
24 set TR_m1_Q59_HaO_Brendu.state to 6
25 endif
26 set state to -1
27 endif
28 if ( GetJournalIndex TR_m1_PT_Ogrim == 110 )
29 StartCombat player
30 set state to -1
31 endif
32 if ( doonce == 0 )
33 if ( OnPCHitMe == 1 )
34 set TR_m1_Q59_HaO_Brendu.flag to 1
35 set doonce to 1
36 endif
37 endif
38endif
39
40End