Script wont save

Post » Sat May 28, 2011 5:29 am

Hi!

Currently I'm trying to save the following script, though it wont save and just show "Do you want to save script? Current ="

scn AAMarksOfficeTurnStairLightsOn

scn AAMarksOfficeEnableEmergencyStairLightbegin GameMode	if (AAMarksOfficeEmergencyStairsLight1.GetDistance Player) >= 50		enable AAMarksOfficeEmergencyStairsLight2 		enable AAMarksOfficeEmergencyStairsLight3 		enable AAMarksOfficeEmergencyStairsLight4 	endifend


Is there a bug in it? I'm not sure, as I'm a beginner in scripting (this is my 2nd script).
User avatar
Kirsty Wood
 
Posts: 3461
Joined: Tue Aug 15, 2006 10:41 am

Post » Fri May 27, 2011 10:06 pm

Begin GameMode	If (AAMarksOfficeEmergencyStairsLight1.GetDistance Player >= 50) ; Parenthesis must surround any given condition if used		AAMarksOfficeEmergencyStairsLight2.Enable ; Syntax: Ref.Enable vs. Enable REF		AAMarksOfficeEmergencyStairsLight3.Enable		AAMarksOfficeEmergencyStairsLight4.Enable	Else		;Disable if you want distance to toggle the light(s)	EndIfEnd
Also, you could make one light persistent and leave the others not, then add the persistent one as the others' enable parent and you'd only have to enable/disable one ref.

Might want to bookmark http://www.cipscis.com/fallout/utilities/validator.aspx. It's indespensable.
User avatar
Nuno Castro
 
Posts: 3414
Joined: Sat Oct 13, 2007 1:40 am

Post » Fri May 27, 2011 8:01 pm

Begin GameMode	If (AAMarksOfficeEmergencyStairsLight1.GetDistance Player >= 50) ; Parenthesis mus surround any given condition if used		AAMarksOfficeEmergencyStairsLight2.Enable ; Syntax: Ref.Enable vs. Enable REF		AAMarksOfficeEmergencyStairsLight3.Enable		AAMarksOfficeEmergencyStairsLight4.Enable	EndIfEnd


And it works! Thanks a lot :)!

EDIT: Great link btw!
User avatar
Abel Vazquez
 
Posts: 3334
Joined: Tue Aug 14, 2007 12:25 am

Post » Sat May 28, 2011 9:09 am

And it works! Thanks a lot :)!

EDIT: Great link btw!
Cool. Also, there's a http://www.gamesas.com/index.php?/topic/1123864-no-debug-info/page__view__findpost__p__16559744 for the lack of debug info from the GECK.
User avatar
Emma Parkinson
 
Posts: 3401
Joined: Wed Jul 26, 2006 5:53 pm


Return to Fallout: New Vegas