Scripts

TR_m2_q_4_SimundScript

TR_Mainland.esm
Variables 6
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m2_q_4_SimundScript 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 NoLore 10short T_Local_NPC 11short T_Local_NoLore 12 13if ( CellChanged ) 14 if ( GetJournalIndex "TR_m2_TM_SadSong_b" == 150 ) 15 disable 16 endif 17endif 18 19if ( OnDeath == 1 ) 20 if ( GetJournalIndex "TR_m2_TM_SadSong_a" < 99 ) 21 Journal "TR_m2_TM_SadSong_a" 300 22 elseif ( GetJournalIndex "TR_m2_TM_SadSong_a" == 200 ) 23 Journal "TR_m2_TM_SadSong_a" 300 24 elseif ( GetJournalIndex "TR_m2_TM_SadSong_b" == 200 ) 25 Journal "TR_m2_TM_SadSong_a" 300 26 elseif ( GetJournalIndex "TR_m2_TM_SadSong_b" < 99 ) 27 Journal "TR_m2_TM_SadSong_a" 300 28 endif 29endif 30 31if ( TR_Map == 2 ) 32 return 33endif 34 35set TR_Map to 2 36 37End