Scripts

TR_m7_VantusSleep_scp

TR_Mainland.esm
Variables 10
Local Variables
nolore
T_Local_NoLore
TR_Map
once
done
doonce
control
ControlQ
T_Local_NPC
timer
Source
1Begin TR_m7_VantusSleep_scp 2 3short nolore 4short T_Local_NoLore 5short TR_Map 6short once 7short done 8short doonce 9short control 10Short ControlQ 11short T_Local_NPC 12float timer 13 14if ( MenuMode == 1 ) 15 return 16endif 17 18if ( CellChanged ) 19 if ( GetJournalIndex "TR_m7_HL_MakingPeace" == 35 ) 20 if ( GetDisabled == 0 ) 21 Disable 22 endif 23 elseif ( GetJournalIndex "TR_m7_HL_MakingPeace" < 90 ) 24 PositionCell 5175 4230 16250 3000 "Hlerynhul, The Musty Mudcrab" ; initial position 25 AIWander 0 0 0 26 endif 27endif 28 29if ( TR_m7_MakingPeace_Return == 0 ) 30 if ( done == 0 ) 31 if ( GetHealth < 1 ) 32 SetParalysis 0 33 SetFatigue 0 34 set done to 1 35 return 36 endif 37 setfatigue -200 38 if ( GetParalysis == 0 ) 39 SetParalysis 0 40 elseif ( Random100 > 66 ) 41 SetParalysis 0 42 endif 43 endif 44endif 45 46if ( OnActivate == 1 ) 47 if ( TR_m7_MakingPeace_Return == 0 ) 48 if ( GetPCSneaking != 1 ) 49 if ( Random100 > 66 ) 50 MessageBox "Vantus Arria belches violently." 51 elseif ( Random100 > 33 ) 52 MessageBox "Vantus Arria groans with pain." 53 else 54 MessageBox "Vantus Arria is out cold." 55 endif 56 return 57 endif 58 endif 59 Activate 60endif 61 62if ( TR_Map ) 63 return 64endif 65 66set TR_Map to 7 67 68End