Scripts

TR_m2_q_18_Orenin_Script

TR_Mainland.esm
Variables 6
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m2_q_18_Orenin_Script 2; The TR_Map local variable is there to allow dialogue to be filtered on it, 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 T_Local_NPC 11short T_Local_NoLore 12 13if ( GetJournalIndex TR_m2_wil_Pestilent >= 40 ) 14 if ( control == 0 ) 15 if ( CellChanged == 1 ) 16 PositionCell 940 -536 -276 16440 "Dorammu Cavern" ; marker TR_m2_MARK_q_18_Orenin 17 AiWander 0 0 0 0 0 0 0 0 0 0 0 0 18 set control to 1 19 endif 20 endif 21 22 if ( GetJournalIndex TR_m2_wil_Pestilent == 50 ) 23 if ( CellChanged == 1 ) 24 if ( GetDisabled == 0 ) 25 disable 26 endif 27 endif 28 elseif ( GetJournalIndex TR_m2_wil_Pestilent == 52 ) 29 if ( CellChanged == 1 ) 30 if ( GetDisabled == 0 ) 31 disable 32 endif 33 endif 34 endif 35endif 36 37if ( TR_Map == 2 ) 38 return 39endif 40 41set TR_Map to 2 42 43End