Manolas Smith wrote: ↑Fri Nov 04, 2022 5:04 pm
Hello!
I'm trying to create a script that is called randomly during the session. I'm not sure how to do it, but by now I've added a line in the StartScript that puts a 50% chance of a tempflag to be created. That way, the script would only execute if the temp flag has been created.
But to be true I'm not sure if that's how it's done.
the idea fo the script is to check if certain requirements are met during the session (for example, being naked) and if not the script would call a punishment script.
Can you let me know how this is done?
Thank you in advance!
Hi!
To set such a temp flag in the start script is fine, the start script is called once a session, so in theory 50% of the seesions you play COULD make use of that script.
The rest sounds to me like a case for link files, now the question is, do you work with only one link-file, or with more than that, take a look at the link files of Miss Blue or House of Tease, they are designed more like a control center, so you have only one link file in which is decided to what link-files it redirects you.
Let's say your temp-flag which you set in the start-script is called 'ManolasCheckup', a totally simple link file (in that control-center way) could look like this:
@NullResponse @RapidCodeOn
@NullResponse @Flag(ManolasCheckup) @Chance40(Call_Manolas_Checkup_Script)
@NullResponse @Call(Custom\RamdomLinks\*.txt)
@End
(Call_Manolas_Checkup_Script)
@NullResponse @Call(Custom\ManolasScripts\THENAMEOFYOURSCRIPT.txt)
@End
So if that temp flag was set in the start-script (running once per session) you would have a 40% chance that your script is called whenever you run through the link-cycle (happens more often per session).
Hope that helps, just ask again if not.
Happy scripting, good luck and best greetings,
Markus