Scripts

TR_m3_NPC_OE_KarandiaCorrux

TR_Mainland.esm
Variables 11
Local Variables
TR_Map
control
controlQ
IsDead
NoLore
NoHit
doonce
T_Local_NPC
T_Local_NoLore
DayTarget
HourTarget
Source
1Begin TR_m3_NPC_OE_KarandiaCorrux 2 3; Script on NPC "TR_m3_Karandia Corrux" for quest TR_m3_TG_Fentus4. 4 5short TR_Map 6short control 7short controlQ 8short IsDead 9short NoLore 10short NoHit ;should keep her from screaming on death 11short doonce 12short T_Local_NPC 13short T_Local_NoLore 14Short DayTarget 15Float HourTarget 16 17if ( CellChanged ) 18 if ( GetDisabled ) 19 if ( GetJournalIndex "TR_m3_TG_Fentus4" >= 10 ) 20 if ( GetJournalIndex "TR_m3_TG_Fentus4" < 100 ) 21 enable 22 endif 23 endif 24 elseif ( GetJournalIndex "TR_m3_TG_Fentus4" <= 0 ) 25 disable 26 elseif ( GetJournalIndex "TR_m3_TG_Fentus4" >= 100 ) 27 if ( IsDead == 0 ) 28 disable 29 endif 30 endif 31endif 32 33if ( GetDisabled ) 34 return 35endif 36 37if ( OnDeath ) 38 set IsDead to 1 39endif 40 41if ( GetPCCell "Old Ebonheart, The Salty Futtocks" == 1 ) 42 if ( GetJournalIndex "TR_m3_TG_Fentus4" != 40 ) 43 if ( control < 3 ) 44 if ( GetDistance player <= 200 ) 45 if ( IsDead == 0 ) 46 ForceGreeting 47 endif 48 set control to 3 49 endif 50 endif 51 endif 52endif 53 54if ( GetPCCell "Old Ebonheart" == 0 ) 55 if ( GetJournalIndex "TR_m3_TG_Fentus4" == 30 ) 56 if ( control < 3 ) 57 if ( IsDead == 0 ) 58 ForceGreeting 59 endif 60 set control to 3 61 endif 62 endif 63endif 64 65if ( GetJournalIndex "TR_m3_TG_Fentus4" >= 35 ) 66 if ( doonce ) 67 set doonce to 0 68 StartScript TR_m3_OE_TG_KarandiaTimer 69 endif 70endif 71 72if ( OnActivate ) 73 if ( GetJournalIndex "TR_m3_TG_Fentus4" == 45 ) 74 if ( IsDead == 1 ) 75 if ( GetJournalIndex "TR_m3_TG_Fentus4" < 50 ) 76 Journal "TR_m3_TG_Fentus4" 50 77 endif 78 endif 79 endif 80 Activate 81endif 82 83if ( TR_Map == 3 ) 84 return 85endif 86 87set TR_Map to 3 88 89End