TR_FM_GroBogran_sc
TR_Mainland.esm
Variables
2
Local Variables
state
timer
Source
1Begin TR_FM_GroBogran_sc
2
3float timer
4short state
5
6if ( OnDeath )
7 set state to 1
8 TR_FM_Aronil->ModDisposition 10
9 TR_FM_Hjrondir->ModDisposition 10
10 TR_FM_JHanir->ModDisposition 10
11 TR_FM_Mara->ModDisposition 10
12 StartScript TR_FM_DefeatGroBogran_sc
13endif
14
15if ( state )
16 Return
17elseif ( TR_FM_Glob_State > 1 )
18 if ( CellChanged )
19 Disable
20 set state to 1
21 endif
22 Return
23elseif ( MenuMode )
24 Return
25endif
26
27if ( GetWeaponDrawn )
28 set timer to ( timer + GetSecondsPassed )
29elseif ( timer > 0 )
30 set timer to 0
31 Return
32endif
33
34if ( timer >= 10 )
35 set state to ( Random 100 )
36 if ( state >= 75 )
37 PlaceAtPC TR_FM_Cr_Skel03 1 300 1
38 elseif ( state >= 50 )
39 PlaceAtPC TR_FM_Cr_Skel04 1 300 1
40 elseif ( state >= 25 )
41 PlaceAtPC TR_FM_Cr_Skel06 1 300 1
42 else
43 PlaceAtPC TR_FM_Cr_Skel07 1 300 1
44 endif
45 set timer to 0
46 set state to 0
47endif
48
49End