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")
....