Scripts

TR_m3_TT_RIP_garvs_sc

TR_Mainland.esm
Variables 7
Local Variables
TR_Map
control
controlQ
returnOnActivate
T_Local_NPC
T_Local_NoLore
NoLore
Source
1Begin TR_m3_TT_RIP_garvs_sc 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. 5 6short TR_Map 7short control 8short controlQ 9short returnOnActivate 10short T_Local_NPC 11short T_Local_NoLore 12short NoLore 13 14if ( OnActivate == 1 ) 15 if ( returnOnActivate == 1 ) 16 Return 17 else 18 Activate 19 endif 20endif 21 22if ( CellChanged == 1 ) 23 if ( GetJournalIndex TR_m3_TT_RIP >= 15 ) 24 if ( GetJournalIndex TR_m3_TT_RIP < 25 ) 25 if ( GetPCCell "Garvs and Fedura Ovav's Shack" == 1 ) 26 if ( GetDisabled == 1 ) 27 Enable 28 endif 29 else 30 if ( GetDisabled == 0 ) 31 Disable 32 endif 33 endif 34 endif 35 endif 36endif 37 38if ( TR_Map == 3 ) 39 return 40endif 41 42set TR_Map to 3 43 44End