SexScripts : Replacing intro script - https://ss.deviatenow.com:443/viewtopic.php?f=4&t=190 Page 1 of 1

Replacing intro script

doti [ Sat Nov 05, 2011 4:55 pm ]

What to do if you want an alternate startup script ?

As the recommandations say, writers should not overwrite the intro.groovy script. But the solution is quite simple : the script started at the launch of SexScripts is saved in the parameters (data.properties file). By default, this is :
Code:
intro.start_script=intro


So you have to begin your own script, lets say "myintro.groovy" by this
Code:
setInfo(.......)
save("intro.start_script", "myintro")
....


This way, the next time SexScripts will by started, "myintro.groovy" will be the first thing to load.

If you want to let the user choose, here is a corresponding code :
Code:
setInfo(.......)
if(getBoolean("Do you want this script to be your alternate startup script ?"))
  save("intro.start_script", "myintro")
....

Re: Replacing intro script

wiliam [ Sat May 11, 2013 12:46 pm ]

Hey


Does this function still work? I seem to have some problem getting it to work in the latest version. I have put both in my intro and my setup file "save("intro.start_script","DW_intro");" but it still starts into the normal intro file


W.

Re: Replacing intro script

doti [ Sun May 12, 2013 9:56 am ]

Right, I make a release with the patch now

Re: Replacing intro script

wiliam [ Sun May 12, 2013 1:39 pm ]

Thanks, works again ;)



W.

Re: Replacing intro script

isabella [ Sat May 07, 2016 5:36 am ]

really useful this makes it so when i am writing code for a script make it so i don't have to change the script

Page 1 of 1 All times are UTC + 1 hour [ DST ]
https://ss.deviatenow.com:443/
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Maroon Fusion theme created by Oxydo
Software, theme modifications, phpBB modification by Doti 2010, 2011