Scripts

TR_m4_NPC_FGMapThief

TR_Mainland.esm
Variables 9
Local Variables
TR_Map
control
controlQ
NoLore
disableOnce
greetOnce
doOnce
T_Local_NPC
T_Local_NoLore
Source
1begin TR_m4_NPC_FGMapThief 2 3short TR_Map 4short control 5short controlQ 6short NoLore 7short disableOnce 8short greetOnce 9short doOnce 10short T_Local_NPC 11short T_Local_NoLore 12 13if ( MenuMode == 1 ) 14 return 15endif 16 17if ( disableOnce == 0 ) 18 disable 19 set disableOnce to 1 20endif 21 22if ( GetJournalIndex "TR_m4_FG_Map" >= 20 ) 23 if ( GetDisabled == 1 ) 24 enable 25 endif 26endif 27 28if ( GetDistance, player < 700 ) 29 if ( GetDisabled == 0 ) 30 if ( greetOnce == 0 ) 31 if ( GetAttacked == 0 ) 32 set greetOnce to 1 33 ForceGreeting 34 endif 35 endif 36 endif 37endif 38 39if ( GetDistance, player <= 600 ) 40 if ( GetDisabled == 0 ) 41 if ( greetOnce == 1 ) 42 if ( GetAttacked == 0 ) 43 set greetOnce to 2 44 ForceGreeting 45 endif 46 endif 47 endif 48endif 49 50if ( OnDeath == 1 ) 51 if ( GetJournalIndex "TR_m4_FG_MapB" < 20 ) 52 Journal "TR_m4_FG_MapB" 20 53 endif 54endif 55 56if ( TR_Map == 4 ) 57 return 58endif 59 60set TR_Map to 4 61 62End