TR_m3_OE_TG_AntioWounded
TR_Mainland.esm
Variables
6
Local Variables
control
controlQ
T_Local_NoLore
T_Local_NPC
NoLore
TR_Map
Source
1begin TR_m3_OE_TG_AntioWounded
2
3;script for TR_m3_Antio Florane2
4;makes for a wounded (knocked down) Antio
5
6short control
7short controlQ
8short T_Local_NoLore
9short T_Local_NPC
10short NoLore
11short TR_Map
12
13if ( MenuMode )
14 return
15endif
16
17if ( OnDeath )
18 set TR_m3_OE_TG_AntioDead to 3
19endif
20
21if ( TR_m3_OE_TG_AntioDead == 0 )
22 if ( GetAttacked == 1 ) ; if the player kills Antio
23 set TR_m3_OE_TG_AntioDead to 3
24 endif
25 if ( GetHealth <= 2 ) ; if the player kills Antio
26 set TR_m3_OE_TG_AntioDead to 3
27 endif
28endif
29
30if ( OnActivate ) ; to prevent pickpocketry
31 ForceGreeting
32endif
33
34if ( GetJournalIndex "TR_m3_TG_Moranie3" >= 70 )
35 if ( GetDisabled == 0 )
36 disable
37 endif
38elseif ( TR_m3_OE_TG_AntioDead )
39 if ( GetDisabled == 0 )
40 disable
41 endif
42elseif ( GetJournalIndex "TR_m3_TG_Moranie3b" >= 10 )
43 if ( GetDisabled == 0 )
44 disable
45 endif
46elseif ( GetJournalIndex "TR_m3_TG_Moranie3" >= 40 )
47 if ( GetDisabled )
48 enable
49 endif
50elseif ( GetDisabled == 0 )
51 disable
52endif
53
54PlayGroup Knockout 1
55
56if ( TR_Map )
57 return
58endif
59
60set TR_Map to 3
61
62end