TR_m4_NPC_Tola_Serevam
TR_Mainland.esm
Variables
7
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
dayTarget
timeControl
Source
1Begin TR_m4_NPC_Tola_Serevam
2; Controls Tola Serevam's dialogue and adds a simple timer used in the Caravan Ransom quest
3
4short TR_Map
5short control ; set to 1 if having informed player about whom to contact in Arvud
6short controlQ
7short NoLore
8short T_Local_NPC
9short dayTarget
10short timeControl
11
12if ( OnDeath )
13 if ( GetJournalIndex "TR_m4_HH_AND_CaravanRansom" >= 10 )
14 if ( GetJournalIndex "TR_m4_HH_AND_CaravanRansom" < 100 )
15 Journal "TR_m4_HH_AND_CaravanRansom" 120 ; fail quest on death
16 endif
17 endif
18endif
19
20if ( TR_Map == 0 )
21 set TR_Map to 4
22endif
23
24if ( dayTarget == 0 )
25 return
26endif
27
28if ( TR_m4_HH_CaravanReleaseDay > 0 ) ; caravan released
29 if ( timeControl <= 0 )
30 if ( TR_m4_HH_CaravanReleaseDay <= dayTarget ) ; released on time
31 Set timeControl to 1
32 else
33 Set timeControl to 2
34 endif
35 endif
36elseif ( DaysPassed > dayTarget )
37 if ( timeControl == 0 )
38 Set timeControl to -1
39 endif
40endif
41
42End