Scripts

TR_m2_q_A9_2_NedimScript

TR_Mainland.esm
Variables 5
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
Source
1Begin TR_m2_q_A9_2_NedimScript 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 T_Local_NPC 10short NoLore 11 12if ( GetJournalIndex TR_m2_Nm_Drunk == 40 ) 13 if ( GetDistance TR_m2_NEC_Shrine_Lovers <= 650 ) 14 set controlQ to 10 15 endif 16 if ( GetDistance TR_m2_NEC_Shrine_Lovers > 650 ) 17 set controlQ to 0 ;because we don't ForceGreeting here, need to reset if they move away again 18 endif 19endif 20 21if ( controlQ == 100 ) ;if post-mission bonus debrief with Rilam results in their breakup 22 if ( CellChanged == 1 ) 23 PositionCell 3962, 6808, 21371, 92, "Necrom, Nedim Fareloth's House" ;he goes back home 24 AiWander 0 0 0 0 0 0 0 0 0 0 0 0 25 set controlQ to 300 26 endif 27endif 28 29if ( controlQ == 200 ) ;if debrief results in their getting back together 30 if ( CellChanged == 1 ) 31 PositionCell 563, 465, -53, 268, "Necrom, Rilam Arelas' House" ;he moves in to hers 32 AiWander 0 0 0 0 0 0 0 0 0 0 0 0 33 set controlQ to 300 34 endif 35endif 36 37if ( TR_Map == 2 ) 38 return 39endif 40 41set TR_Map to 2 42 43End