Scripts

TR_m4_NPC_Vendel2

TR_Mainland.esm
Variables 7
Local Variables
TR_Map
control
controlQ
NoLore
disableOnce
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m4_NPC_Vendel2 2; This short script is there to allow dialogue to be filtered on the TR_Map local variable, 3; allowing for regional topics such as "Morrowind Lore" or "Geographic Regions" to be 4; appropriate to the location the NPC is. This version is for "NoLore" NPCs. 5 6short TR_Map 7short control 8short controlQ 9short NoLore 10short disableOnce 11short T_Local_NPC 12short T_Local_NoLore 13 14if ( MenuMode ) 15 return 16endif 17 18if ( disableOnce == 0 ) 19 Disable 20 set disableOnce to 1 21endif 22 23if ( GetJournalIndex "TR_m4_Arv_VendelVisitD" == 10 ) 24 if ( GetDisabled ) 25 if ( GetDeadCount "TR_m4_Vendel Othreleth" == 0 ) 26 Enable 27 endif 28 endif 29endif 30 31if ( CellChanged ) 32 if ( GetJournalIndex "TR_m4_Arv_VendelVisitD" >= 20 ) 33 if ( GetDisabled == 0 ) 34 Disable 35 endif 36 endif 37endif 38 39if ( TR_Map == 4 ) 40 return 41endif 42 43set TR_Map to 4 44 45End