TR_m4_NPC_Hemmette_Fauler
TR_Mainland.esm
Variables
8
Local Variables
TR_Map
control
controlQ
controlF
potionFound
T_Local_NPC
NoLore
greeting
Source
1Begin TR_m4_NPC_Hemmette_Fauler
2
3; Script controlling Hemmette's dialogue states and journal updates on death
4
5short TR_Map
6short control ; controls reaction for sneaking into chest
7short controlQ ; toggles force greet
8short controlF ; controls whether the PC has talked about certain topics
9short potionFound ; set when Hemmette knows about the potion
10short T_Local_NPC
11short NoLore
12
13short greeting
14
15if ( MenuMode )
16 return
17endif
18
19if ( TR_m4_Ando_HemmetteDead == 1 )
20 return
21endif
22
23if ( OnDeath )
24 set TR_m4_Ando_HemmetteDead to 1
25 set TR_m4_Ando_HemmetteRumor to 0
26 set TR_m4_Ando_NevusaPotionPlaced to 0
27 if ( GetJournalIndex "TR_m4_And_Alchemists_1" >= 20 )
28 if ( GetJournalIndex "TR_m4_And_Alchemists_1" < 70 )
29 if ( GetJournalIndex "TR_m4_And_Alchemists_2" < 100 )
30 if ( GetJournalIndex "TR_m4_And_Alchemists_3" < 135 )
31 Journal "TR_m4_And_Alchemists_1" 80
32 endif
33 endif
34 endif
35 endif
36endif
37
38if ( TR_m4_Ando_HemmettePrison == 2 )
39 if ( CellChanged )
40 if ( TR_m4_Ando_HemmetteArrestDay > DaysPassed )
41 return
42 endif
43 set TR_m4_Ando_HemmettePrison to 3
44 PositionCell 3704 4664 14982 1200 "Bal Foyen, Fauler's Philters" ;marker TR_m4_MARK_Hemmette_Fauler
45 AIWander 0 50 0 0 60 20 10 0 0 0 0 0
46 AddSpell "TR_m4_Ando_IncreasePrice"
47 TR_m4_Ando_FaulerDoor->Unlock
48 endif
49endif
50
51if ( TR_Map == 4 )
52 return
53endif
54
55set TR_Map to 4
56
57End