TR_m2_q_5_Drulusa
TR_Mainland.esm
Variables
7
Local Variables
undurance
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m2_q_5_Drulusa
2
3;damages "TR_m2_Drulusa Hlamen"'s Endurance for quest
4;TR_m2_TMo_TrialsOfAge.
5;checks if it has been restored or fortified as an alternative to giving her a potion.
6
7short undurance
8short TR_Map
9short control
10short controlQ
11short NoLore
12short T_Local_NPC
13short T_Local_NoLore
14
15If ( GetJournalIndex, TR_m2_TMo_TrialsOfAge >= 20 )
16 Return
17Endif
18
19If ( undurance == 0 )
20 AddSpell, "TR_m2_q_5_Trials_sp" ;adds Damage Endurance curse...
21 set TR_Map to 2
22 set undurance to 1
23ElseIf ( undurance == 1 )
24 If ( GetEndurance <= 9.8 ) ;... until her endurance is near 10
25 RemoveSpell, "TR_m2_q_5_Trials_sp"
26 set undurance to 2
27 Endif
28ElseIf ( undurance == 2 )
29 If ( GetEndurance > 10.1 ) ;change dialogue if her endurance has been restored but not enough
30 set undurance to 3
31 Endif
32ElseIf ( undurance == 3 )
33 If ( GetEndurance >= 19 ) ;her endurance has been restored/fortified roughly enough wrt a standard potion
34 SetStrength 30
35 Say "Vo\D\F\Flw_DF003.mp3" "Thank you."
36 set undurance to -1
37 Endif
38Endif
39
40End