Scripts

TR_m3_OE_RumaGDisableSCP

TR_Mainland.esm
Variables 9
Local Variables
control
controlQ
doOnce
NoLore
SavvyDrunk
greetOnce
T_Local_NPC
T_Local_NoLore
TR_Map
Source
1begin TR_m3_OE_RumaGDisableSCP 2 3;a script that disables and enables certain NPCs and items that are needed in one TG quest 4;this one's for the guards 5 6short control 7short controlQ 8short doOnce 9short NoLore 10short SavvyDrunk 11short greetOnce 12short T_Local_NPC 13short T_Local_NoLore 14short TR_Map 15 16if ( doOnce == 0 ) 17 disable 18 set doOnce to 1 19 set TR_Map to 3 20endif 21 22if ( OnDeath ) 23 set TR_m3_OE_RumaDead to 1 24endif 25 26if ( GetJournalIndex "TR_m3_TG_Fentus3b" == 10 ) 27 if ( doOnce == 1 ) 28 enable 29 set doOnce to 2 30 endif 31endif 32 33if ( GetJournalIndex "TR_m3_TG_Fentus3b" >= 100 ) 34 if ( doOnce == 2 ) 35 disable 36 set doOnce to 3 37 endif 38endif 39 40if ( GetDisabled == 0 ) 41 if ( TR_m3_OE_RumaGlobal == 2 ) 42 if ( GetDistance, player <= 150 ) 43 if ( greetOnce == 0 ) 44 ForceGreeting 45 set greetOnce to 1 46 endif 47 endif 48 endif 49endif 50 51end