TR_m3_Ord_War3_Ralm_sc
TR_Mainland.esm
Variables
6
Local Variables
TR_Map
NoLore
T_Local_NPC
T_Local_NoLore
control
controlQ
Source
1begin TR_m3_Ord_War3_Ralm_sc
2
3; Script for TR_m3_Ralm Shishara, quest npc in TR_m3_Ord_War3 "Plowshares into Swords"
4; NPC at Ghostgate is new NPC TR_m0_q_Ralm Shishara to change faction and class
5
6short TR_Map
7short NoLore
8short T_Local_NPC
9short T_Local_NoLore
10short control
11short controlQ
12
13; controlQ
14; -1 - duel lost (fled)
15; 0 - nothing
16; 1 - duel started
17; 2 - duel won
18; 10 - duel won (greeting over)
19; 11 - duel bypassed ( B8_MeetVivec >= 50 )
20
21if ( GetJournalIndex TR_m3_Ord_War3 == 100 )
22 if ( GetDisabled == 0 )
23 Disable
24 endif
25endif
26
27; Duel logic
28if ( controlQ == 1 )
29 if ( GetHealthGetRatio <= 0.2 )
30 set controlQ to 2
31 setfight 30
32 stopcombat
33 moddisposition 50
34 ForceGreeting
35 return
36 endif
37 if ( CellChanged )
38 setfight 30
39 stopcombat
40 moddisposition -30
41 set controlQ to -1
42 endif
43endif
44
45if ( TR_Map == 3 )
46 return
47endif
48
49set TR_Map to 3
50
51end