TR_FM_Dozhir_sc
TR_Mainland.esm
Variables
1
Local Variables
state
Source
1Begin TR_FM_Dozhir_sc
2
3short state
4
5if ( OnDeath )
6 TR_FM_Aronil->ModDisposition 10
7 TR_FM_Hjrondir->ModDisposition 10
8 TR_FM_JHanir->ModDisposition 10
9 TR_FM_Mara->ModDisposition 10
10 StartScript TR_FM_DefeatDozhir_sc
11 set state to 2
12endif
13
14if ( state == 2 )
15 Return
16elseif ( MenuMode )
17 Return
18endif
19
20if ( GetWeaponDrawn )
21 if ( GetDistance player < 500 )
22 if ( GetDistance TR_FM_Hjrondir < 500 )
23 if ( TR_FM_Hjrondir->GetHealth > 1 )
24 set TR_FM_Hjrondir.control to 21
25 TR_FM_Hjrondir->ForceGreeting
26 endif
27 set state to 2
28 endif
29 endif
30endif
31
32if ( state )
33 Return
34endif
35
36SetArmorBonus 200
37set state to 1
38
39End