Scripts

TR_m3_SadrynSleep_scp

TR_Mainland.esm
Variables 8
Local Variables
nolore
T_Local_NoLore
TR_Map
once
done
doonce
T_Local_NPC
timer
Source
1Begin TR_m3_SadrynSleep_scp 2 3short nolore 4short T_Local_NoLore 5short TR_Map 6short once 7short done 8short doonce 9float timer 10short T_Local_NPC 11 12if ( MenuMode == 1 ) 13 return 14endif 15 16set TR_Map to 3 17 18if ( done == 0 ) 19 if ( GetHealth < 1 ) 20 SetParalysis 0 21 SetFatigue 0 22 set done to 1 23 return 24 endif 25 setfatigue -200 26 if ( GetParalysis == 0 ) 27 SetParalysis 0 28 elseif ( Random100 > 66 ) 29 SetParalysis 0 30 endif 31else 32 if ( OnActivate == 1 ) 33 Activate 34 endif 35endif 36 37PositionCell -715 -777 -10 18000 "Almas Thirr, Infirmary of St. Meris" 38 39if ( OnDeath == 1 ) 40 if ( getjournalindex "TR_m7_TheDeadPilgrim" <= 30 ) 41 Journal TR_m7_TheDeadPilgrim 140 42 endif 43endif 44 45if ( OnActivate == 1 ) 46 if ( GetPCSneaking ) 47 Activate 48 else 49 "TR_m3_Sadryn Seles_Inv"->ForceGreeting 50 endif 51endif 52 53if ( CellChanged ) 54 if ( GetJournalIndex "TR_m7_TheDeadPilgrim" >= 100 ) 55 if ( GetDisabled == 0 ) 56 Disable 57 return 58 endif 59 endif 60endif 61 62End