TR_m1_q_Pilgrim1_Script
TR_Mainland.esm
Variables
6
Local Variables
pilgrim
doonce
T_Local_NPC
NoLore
TR_map
T_Local_NoLore
Source
1Begin TR_m1_q_Pilgrim1_Script
2
3short pilgrim
4short doonce
5short T_Local_NPC
6short NoLore
7Short TR_map
8short T_Local_NoLore
9
10if ( TR_map != 1 )
11 Set TR_map to 1
12endif
13
14if ( pilgrim != 1 )
15 Set pilgrim to 1
16endif
17
18If ( GetJournalIndex TR_m1_TT_3 < 40 )
19 If ( GetDisabled == 0 )
20 disable
21 Endif
22 return
23ElseIf ( GetDisabled )
24 If ( GetJournalIndex TR_m1_TT_4 < 50 )
25 enable
26 Endif
27Endif
28
29if ( doonce == 0 )
30 if ( GetDistance TR_m1_q_TTShrine1 <= 450 )
31 Journal TR_m1_TT_4 40
32 AiWander 256 0 0 40 20 20 0 0 0 0 0 0
33 Say "Vo\D\M\Flw_DM004.mp3" "Thank you."
34 SetHello 30
35 set doonce to 1
36 endif
37endif
38
39If ( OnDeath )
40 If ( GetDeadCount "TR_m1_q_Pilgrim2" == 0 )
41 Journal TR_m1_TT_4_Deaths 10
42 Else
43 Journal TR_m1_TT_4_Deaths 20
44 Endif
45Endif
46
47End