I still cant get the script to complie. All i have managed to do is add the word Variable to
Global Property GameHour Auto.
Spoiler ScriptName _1test extends ObjectReference
{Controls a set of lights with a master enable parent
marker (EnableMarker) and a switch with this script
attached to turn on and off when the switch is activated}
ObjectReference Property EnableMarker auto
{The marker set as the enable parent of all the lights}
GlobalVariable Property Globalhours auto
If GameHour.getvalue() < 18.0 && GameHour.getvalue > 6.0
Return
endif
Event OnInit()
If (EnableMarker.IsDisabled())
GoToState("LightsOff")
Else
GoToState("LightsOn")
EndIf
EndEvent
State LightsOff
Event OnBeginState()
EnableMarker.Disable()
EndEvent
Event OnActivate(ObjectReference akActionRef)
GoToState("LightsOn")
EndEvent
EndState
State LightsOn
Event OnBeginState()
EnableMarker.Enable()
EndEvent
Event OnActivate(ObjectReference akActionRef)
GoToState("LightsOff")
EndEvent
EndState
Starting 1 compile threads for 1 files...
Compiling "_1test"...
C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\_1test.psc(11,0): missing EOF at 'If'
No output generated for _1test, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on _1test
Reseting the script after period of time isnt working out either (disabling the object).. i know im asking alot but i this would be such an amazing script to have in my haunted house.
You walk into the attic at night, move towards an old crib, then a screaming rotted child appears inside of it but only for a few moments before dispearing. So far all i can do is
make the screaming child appear when you enter a trigger zone.
It would help me make hostile ghosts appear for a short period of time. I could have certain moments where ghosts would appear to simply to watch you while you sit/sleep and disapear but where and how depending on the time of night.
Maybe when you use the bed a ghost would appear under it.. I could do so much with the script, I can make models, skin and texture everything but its all pointless if i cant bring it life with the script.