Scripts

TR_m4_NPC_Varzan_after

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_after 2 3; Script on NPC TR_m4_q_Varzan_after for quest TR_m4_wil_MyDearFriendArvena. 4; This is Varzan *after* 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 14; He shouldn't appear until Arvena's "remains" have been found. 15if ( GetJournalIndex TR_m4_wil_MyDearFriendArvena < 50 ) 16 if ( GetDisabled == 0 ) 17 disable 18 endif 19 return 20endif 21 22; He should appear when the player leaves the tomb, after the 23; remains have been found, 24; but then disappear again when the quest is done and the player 25; isn't watching. 26if ( CellChanged ) 27 if ( GetJournalIndex TR_m4_wil_MyDearFriendArvena == 50 ) 28 enable 29 elseif ( GetJournalIndex TR_m4_wil_MyDearFriendArvena == 60 ) 30 disable 31 endif 32endif 33 34if ( TR_Map ) 35 return 36endif 37 38set TR_Map to 4 39 40End