Scripts

TR_m1_q_JanaBurglar_Script

TR_Mainland.esm
Variables 5
Local Variables
doonce
speakonce
TR_map
T_Local_NPC
NoLore
Source
1Begin TR_m1_q_JanaBurglar_Script 2 3short doonce 4short speakonce 5short TR_map 6short T_Local_NPC 7short NoLore 8 9if ( TR_map != 1 ) 10 Set TR_map to 1 11endif 12 13If ( GetJournalIndex TR_m1_FG_Burglary > 25 ) 14 return 15Endif 16 17If ( GetJournalIndex TR_m1_FG_Burglary < 25 ) 18 Disable 19Else 20 Enable 21 If ( doonce == 0 ) 22 ForceSneak 23 set doonce to 1 24 Endif 25 If ( speakonce == 0 ) 26 If ( GetDistance, Player <= 300 ) 27 ClearForceSneak 28 ForceRun 29 ForceGreeting 30 set speakonce to 1 31 Endif 32 Endif 33Endif 34 35If ( OnDeath ) 36 Journal TR_m1_FG_Burglary 30 37Endif 38 39End