I have been trying to do some script testing using Max a.k.a. ~NOOBDY~'s MWScheduler program.
I generated a simple script to:
enable her at 8 AM, set her to wander
disable her at 11 AM(lunch)
enable her at 12PM to wander
disable her at 6PM (dinner)
enable her to wander at 7PM
disable her for sleep at 9PM
below is the script generated by MWScheduler.
Begin eldafire_sched_sc_01
Short mwc_hour
Short mwc_last
If ( MenuMode )
Return
EndIf
Set mwc_hour to GameHour
If ( mwc_last == mwc_hour )
Return
ElseIf ( "eldafire"-> GetHealth <= 0 )
Return
EndIf
If ( mwc_hour == 8 )
Set mwc_last to 8
If ( "eldafire"-> GetLOS Player != 1 )
"eldafire"-> Enable
EndIf
"eldafire"-> AIWander 512, 3, 10, 10, 10, 10, 10, 10, 10, 10, 10
ElseIf ( mwc_hour == 11 )
Set mwc_last to 11
If ( "eldafire"-> GetLOS Player != 1 )
"eldafire"-> Disable
EndIf
ElseIf ( mwc_hour == 12 )
Set mwc_last to 12
If ( "eldafire"-> GetLOS Player != 1 )
"eldafire"-> Enable
EndIf
"eldafire"-> AIWander 512, 6, 10, 10, 10, 10, 10, 10, 10, 10, 10
ElseIf ( mwc_hour == 18 )
Set mwc_last to 18
If ( "eldafire"-> GetLOS Player != 1 )
"eldafire"-> Disable
EndIf
ElseIf ( mwc_hour == 19 )
Set mwc_last to 19
If ( "eldafire"-> GetLOS Player != 1 )
"eldafire"-> Enable
EndIf
"eldafire"-> AIWander 512, 2, 10, 10, 10, 10, 10, 10, 10, 10, 10
ElseIf ( mwc_hour == 21 )
Set mwc_last to 21
If ( "eldafire"-> GetLOS Player != 1 )
"eldafire"-> Disable
EndIf
EndIf
End
I have attached this script to a saved version of the door to her house.
The script does not seem to run. Does it have to get called. The readme stated it could be attached to any object in the same cell.
Any hints on how to get this to work would be appreciated.