Scripts

TR_m4_NPC_Faylena_Bevel

TR_Mainland.esm
Variables 9
Local Variables
TR_Map
control
controlQ
TR_BthuangthuvSquatter
NoLore
T_Local_NPC
T_Local_NoLore
doOnce
disableOnce
Source
1Begin TR_m4_NPC_Faylena_Bevel 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 TR_BthuangthuvSquatter 10short NoLore 11short T_Local_NPC 12short T_Local_NoLore 13short doOnce 14short disableOnce 15;global TR_m4_TG_SquatterDead 16 17;----this keeps track of how many of the squatters in Bthuangthuv have been killed 18 19if ( OnDeath == 1 ) 20 if ( doOnce == 0 ) 21 set TR_m4_TG_SquatterDead to ( TR_m4_TG_SquatterDead + 1 ) 22 set doOnce to 1 23 endif 24endif 25 26;-----this gives a Journal entry if the squatters are killed during the first TG quest 27 28if ( TR_m4_TG_SquatterDead >= 4 ) 29 if ( GetJournalIndex "TR_m4_TG_Shei1" < 80 ) 30 if ( GetJournalIndex "TR_m4_TG_Shei1" >= 30 ) 31 Journal "TR_m4_TG_Shei1" 80 32 endif 33 endif 34endif 35 36;-----this disables the squatters, if the player pays them to leave 37 38if ( GetJournalIndex "TR_m4_TG_Shei1" == 150 ) 39 if ( CellChanged == 1 ) 40 if ( disableOnce == 0 ) 41 disable 42 set disableOnce to 1 43 endif 44 endif 45endif 46 47if ( TR_Map == 4 ) 48 return 49endif 50 51set TR_Map to 4 52 53End