Scripts

TR_m7_NPC_MarisDrinivam

TR_Mainland.esm
Variables 6
Local Variables
control
controlQ
TR_Map
T_Local_NPC
NoLore
T_Local_NoLore
Source
1Begin TR_m7_NPC_MarisDrinivam 2 3short control 4short controlQ 5short TR_Map 6short T_Local_NPC 7short NoLore 8short T_Local_NoLore 9 10if ( TR_m7_AI_JNS_6_MarisFollow ) 11 if ( T_Local_NoLore ) 12 set T_Local_NoLore to 0 13 endif 14elseif ( T_Local_NoLore == 0 ) 15 set T_Local_NoLore to 1 16endif 17 18if ( MenuMode ) 19 return 20endif 21 22if ( OnDeath ) 23 set TR_m7_AI_JNS_6_MarisFollow to 0 24endif 25 26if ( GetJournalIndex TR_m7_AI_JNS_6 >= 50 ) 27 if ( TR_m7_AI_JNS_6_MarisFollow ) 28 if ( player->GetDistance TR_m7_AI_JNS_6_Return < 1000 ) 29 if ( controlQ == 0 ) 30 set controlQ to 1 31 Forcegreeting 32 return 33 endif 34 endif 35 endif 36endif 37 38if ( TR_Map ) 39 return 40endif 41 42set TR_Map to 7 43 44end