TR_m4_NPC_Varzan
TR_Mainland.esm
Variables
7
Local Variables
TR_Map
control
controlQ
stopfollow
T_Local_NPC
NoLore
T_Local_NoLore
Source
1Begin TR_m4_NPC_Varzan
2
3; Script on NPC TR_m4_q_Varzan for quest TR_m4_wil_MyDearFriendArvena.
4; This is Varzan *before* he leaves the tomb.
5
6short TR_Map
7short control
8short controlQ
9short stopfollow
10short T_Local_NPC
11short NoLore
12short T_Local_NoLore
13
14if ( OnDeath )
15 if ( GetJournalIndex TR_m4_wil_MyDearFriendArvena >= 10 )
16 if ( GetJournalIndex TR_m4_wil_MyDearFriendArvena < 40 )
17 Journal TR_m4_wil_MyDearFriendArvena 11
18 elseif ( GetJournalIndex TR_m4_wil_MyDearFriendArvena < 60 )
19 Journal TR_m4_wil_MyDearFriendArvena 41
20 endif
21 endif
22endif
23
24; If the player has found the skull and the bones and hasn't told Varzan
25; yet, he brings up the topic himself. This ensures that on exiting the
26; tomb, he knows about it.
27if ( getPCCell "Raloran Ancestral Tomb" )
28 if ( player->getpos z > -300 ) ; nearing the exit
29 if ( getJournalIndex TR_m4_wil_MyDearFriendArvena == 40 )
30 if ( player->getItemCount TR_m4_q_bloodybone_mi >= 6 )
31 ForceGreeting
32 endif
33 endif
34 endif
35endif
36
37If ( CellChanged )
38 If ( GetJournalIndex TR_m4_wil_MyDearFriendArvena == 60 )
39 disable
40 endif
41endif
42
43if ( TR_Map == 4 )
44 return
45endif
46
47set TR_Map to 4
48
49End