Scripts

TR_m7_NPC_FolmsBaryon

TR_Mainland.esm
Variables 5
Local Variables
TR_Map
T_Local_NPC
NoLore
control
controlQ
Source
1begin TR_m7_NPC_FolmsBaryon 2 3short TR_Map 4short T_Local_NPC 5short NoLore 6short control 7short controlQ 8 9if ( MenuMode ) 10 return 11endif 12 13if ( OnDeath ) 14 if ( GetJournalIndex TR_m7_AI_JNS_3 >= 10 ) 15 if ( GetJournalIndex TR_m7_AI_JNS_3 < 100 ) 16 Journal TR_m7_AI_JNS_3 60 17 endif 18 endif 19endif 20 21if ( control != -1 ) 22 if ( GetJournalIndex TR_m7_AI_JNS_3 >= 100 ) 23 set control to -1 24 endif 25endif 26 27if ( control == -1 ) 28 return 29endif 30 31if ( TR_m7_AI_JNS_3_BaryonGlob == 1 ) 32 if ( GetDistance Player < 850 ) 33 set TR_m7_AI_JNS_3_BaryonGlob to 2 34 Forcegreeting 35 return 36 endif 37endif 38 39 40if ( TR_Map ) 41 return 42endif 43 44set TR_Map to 7 45 46end