Scripts

TR_m7_HH_SeventhFam_Randion_Sc

TR_Mainland.esm
Variables 8
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
DoOnce
timer
Source
1Begin TR_m7_HH_SeventhFam_Randion_Sc 2 3;Enable and Disable NPC during related quest 4 5short TR_Map 6short control 7short controlQ 8short NoLore 9short T_Local_NPC 10short T_Local_NoLore 11short DoOnce 12float timer 13 14 15if ( GetDisabled == 1 ) 16 if ( GetJournalIndex TR_m7_HH_SeventhFamily_1 > 0 ) 17 if ( GetJournalIndex TR_m7_HH_SeventhFamily_1 < 100 ) 18 Enable 19 endif 20 else 21 Return 22 endif 23endif 24 25if ( GetJournalIndex TR_m7_HH_SeventhFamily_1 == 0 ) 26 Disable 27elseif ( GetJournalIndex TR_m7_HH_SeventhFamily_1 >= 100 ) 28 Disable 29endif 30 31;Change wander settings here so he may wander out of room, but will not be blocking door when player arrives 32if ( DoOnce == 0 ) 33 if ( control == 1 ) 34 if ( Timer > 3 ) 35 AIWander 256 0 0 60 30 10 0 0 0 0 0 0 36 set DoOnce to 1 37 endif 38 elseif ( MenuMode == 0 ) 39 set timer to ( timer + GetSecondsPassed ) 40 endif 41endif 42 43if ( TR_Map == 7 ) 44 Return 45endif 46 47set TR_Map to 7 48 49End