TR_m1_FW_TG4_LetterGive
TR_Mainland.esm
Variables
10
Local Variables
GaveLetter
PCHasLetter
NoLore
TR_Map
LetterTaken
greet
T_Local_NPC
OnPCHitMe
doOnce
control
Source
1Begin TR_m1_FW_TG4_LetterGive
2
3short GaveLetter
4short PCHasLetter
5short NoLore
6short TR_Map
7short LetterTaken
8short greet
9short T_Local_NPC
10short OnPCHitMe
11short doOnce
12short control
13
14if ( GetJournalIndex "TR_m1_HT_Rathra_q5" == 10 )
15 if ( control == 0 )
16 set control to 1
17 PositionCell 4574 4930 4226 0 "Firewatch, Ember Keep: Wizard's Tower" ;TR_m1_MARK_Selura
18 AiWander 0 0 0 0 0 0 0
19 endif
20elseif ( GetJournalIndex "TR_m1_HT_Rathra_q5" == 150 )
21 if ( control == 1 )
22 set control to 2
23 PositionCell 4552 4832 3976 0 "Firewatch, Ember Keep: Wizard's Tower" ;TR_m1_MARK_Selura
24 AiWander 0 0 0 0 0 0 0
25 endif
26endif
27
28if ( OnDeath )
29 if ( GetJournalIndex "TR_m1_HT_Rathra_q5" == 10 )
30 Journal "TR_m1_HT_Rathra_q5" 20
31 endif
32endif
33
34if ( PCHasLetter == 1 )
35 if ( player->GetItemCount TR_m1_FW_LetterToSelura >= 1 )
36 if ( GetDistance player >= 300 )
37 if ( GetDistance player <= 400 )
38 set greet to 1
39 endif
40 endif
41 endif
42else
43 if ( player->GetItemCount TR_m1_FW_LetterToSelura >= 1 )
44 set LetterTaken to 1
45 endif
46endif
47
48if ( MenuMode == 0 )
49 if ( greet == 1 )
50 ForceGreeting
51 set greet to 0
52 endif
53endif
54
55if ( OnPCHitMe == 1 )
56 if ( doOnce == 0 )
57 Cast "TR_m1_SeluraSummon" TR_m1_Selura
58 set doOnce to 1
59 endif
60 StartCombat Player
61 set OnPCHitMe to 0
62endif
63
64if ( TR_Map )
65 return
66endif
67
68set TR_Map to 1
69
70End