de en es fr
Let the machine help
Light teasing, exhibition, BDSM, sissyfication, watersports... with sounds and pictures


Post new topic Reply to topic  [ 32 posts ]  Go to page 1, 2, 3  Next
Author Message
 Several Questions
PostPosted: Fri Aug 22, 2014 9:04 pm 
Offline
Addict
I have several questions/requests about different aspects of writing my upcoming script, which Iv tried to solve but failed:

1: How do I have my script remember how many times it has been completed as a value I can use in the script?. I want it to increase the difficulty (a set numerical value already incorporated into the script) slightly for each time it has been completed.

2: Is it possible to embed videos directly into the script, in the same position as the picture area of the display?

3: Is there a size limit of the combined files when publishing a script (was thinking about including videos, but dont know if they would make the upload/download too big.

4: Is there a way to activate a message or popup or anything like that when the script is prematurely ended i.e. if some one quits the script, they get a message with a punishment or a "I'm dissapointed in you" type message etc.

I think thats everything at the minute. I may ask more questions in the future, as I keep coming up with new ideas for this script and dont know how to implement them.

_________________
"There are so many more flavors in the world than Vanilla, so why limit yourself in either life or in ice cream"
- Me being introspective one day -


Top
 Profile Send private message 
 
 Re: Several Questions
PostPosted: Sat Aug 23, 2014 8:45 am 
Offline
Site Admin
User avatar
1 - Yes, this is the save function, linked to multiple loadXyz functions
Code:
def difficulty = loadInteger("myscript.difficulty")
if(difficulty==null)
  difficulty = 8
difficulty += 1

[i](use difficulty)[/i]


2 - No, except animated gif images ; every year, I take some time to check if the current mess of video formats has improved

3 - Yes, even all is deflated, the limit is around 50Mb

4 - No ; the best you can do is (see answer 1) save a value at the start of the script, change it a the end, and test it at the start : the message will be seen not at the premature end, but only at the next start


Top
 Profile Send private message 
 
 Re: Several Questions
PostPosted: Sat Aug 23, 2014 9:03 am 
Offline
Veteran
User avatar
doti wrote:

4 - No ; the best you can do is (see answer 1) save a value at the start of the script, change it a the end, and test it at the start : the message we'll be seen not at the premature end, but only at the next start


A great example of this is in the Domme script. If you close it down without informing her why, on the next startup you can get extra punishment points :?


Top
 Profile Send private message 
 
 Re: Several Questions
PostPosted: Sat Aug 23, 2014 7:03 pm 
Offline
Addict
Thanks, info really helped and now I'm back on track.

_________________
"There are so many more flavors in the world than Vanilla, so why limit yourself in either life or in ice cream"
- Me being introspective one day -


Top
 Profile Send private message 
 
 Re: Several Questions
PostPosted: Sat Aug 23, 2014 10:34 pm 
Offline
Veteran
User avatar
You could convert short video segments to gifs with something like https://imgflip.com/gifgenerator


Top
 Profile Send private message 
 
 Re: Several Questions
PostPosted: Sun Aug 24, 2014 1:51 pm 
Offline
Addict
Back again with two more questions:

1: Is the setinfo() section created during the publishing process or do I need to create it myself before hand. Also am I correct in understanding that the resource list is created during the publishing process, as some scripts have one and some dont.

2: More of request for advice than a question actually. If you've read my script than you will know that my Line writing script will have multiple Mistresses to choose from (thinking about 6-8 to start with), each with there own personality, preferred fetishes, lines, and dialogue etc. I am pretty much done with the first (the rest should be done a lot quicker, now I have the prime script to duplicate and alter), which I decided should be our own beloved Mistress Jewell. Just got some finishing touches, and other bits of supporting code to the introduction and first-time script, to finish over the next day or two.

My question is. What would be the best/easiest way to publish it. Should I:

A: Publish the basic script pack (intro, first-time, Jewell) and then post the extra Mistresses on the forum as I complete them.
B: Update the published script each time I finish one of the Mistresses. This may be problematic due to the script recording how many times it has been run and changing the difficulty accordingly, a well as earning rewards etc. Which may be reset/recorded over when the script is re-downloaded and unpacked.
B: Publish the new Mistresses separately in packs of 2 or 3 (i.e. Lines Mistress Pack 1, Lines Mistress Pack 2, etc)

_________________
"There are so many more flavors in the world than Vanilla, so why limit yourself in either life or in ice cream"
- Me being introspective one day -


Top
 Profile Send private message 
 
 Re: Several Questions
PostPosted: Sun Aug 24, 2014 7:08 pm 
Offline
Site Admin
User avatar
1 - You have to fill the setInfo() section yourself, as the first instruction of the script.
1 - Yes, in fact when publishing, it will show use the resources used in the last test, just before ; it'll even shout at you if there was no test before. So this list may be incomplete, you'll have an editable box to set more.

2 - The B (but the second one ;) ) I mean publish a first one, then the other scripts can use it. Put the tag "sequel" in their tag lists. Resources in the first one don't need to be repeated.


Top
 Profile Send private message 
 
 Re: Several Questions
PostPosted: Mon Aug 25, 2014 1:55 pm 
Offline
Addict
Does the setInfo() section need to be on every script in the pack, or just the intro/main/starting script where you choose your mistress?

Also, how do I create a set of buttons or drop down list for selecting which Mistress you want. Been trying different things for an hour and cant figure it out.

Want to have a simple question with multiple answers which will lead to each script. I know the code to open the chosen script, but cant create the question/list for choosing which one.

_________________
"There are so many more flavors in the world than Vanilla, so why limit yourself in either life or in ice cream"
- Me being introspective one day -


Top
 Profile Send private message 
 
 Re: Several Questions
PostPosted: Mon Aug 25, 2014 8:14 pm 
Offline
Site Admin
User avatar
The setInfo() in each one are not important, but must be there.

The selection can be done with getSelectedValue
Code:
def mistress = getSelectedValue("Which one ?", ["Rachel", "Meggie", "Keira"])
if(mistress == 0) ...
...


(edited 2014-08-25)


Top
 Profile Send private message 
 
 Re: Several Questions
PostPosted: Mon Aug 25, 2014 9:48 pm 
Offline
Addict
I still cant get it to work. I'm using the code from the Manual I got off the forum. Probably messed it up somewhere, I usually go looking in the code of pre-existing scripts for examples, but they are all different, so no help there.

Here is what I'm trying:

def mistress = getSelectedValue("Which one ?", ["Jewell", "Ancilla", "Kitty"])
if(mistress == "Jewell")
return "Lines/Jewell"
if(mistress == "Ancilla")
return "Lines/Ancilla"
if(mistress == "Kitty")
return "Lines/Kitty"

I tried many combinations, but cant do it myself.

_________________
"There are so many more flavors in the world than Vanilla, so why limit yourself in either life or in ice cream"
- Me being introspective one day -


Top
 Profile Send private message 
 
 Re: Several Questions
PostPosted: Tue Aug 26, 2014 9:06 pm 
Offline
Site Admin
User avatar
Sorry, I made a mistake ; it returns the choosen number (the first one is 0), not the name. I corrected my sample above.


Top
 Profile Send private message 
 
 Re: Several Questions
PostPosted: Wed Aug 27, 2014 7:17 pm 
Offline
Addict
So many Thanks!!!

"Its Alive...Its ALIIIIVE...Ahem...(cough)...excuse me"

My entry script is complete at last. Should have a publishable script ready by the end of the week.

_________________
"There are so many more flavors in the world than Vanilla, so why limit yourself in either life or in ice cream"
- Me being introspective one day -


Top
 Profile Send private message 
 
 Re: Several Questions
PostPosted: Thu Sep 25, 2014 6:30 pm 
Offline
Addict
As my scripts get a bit more complicated, and my knowledge grows, I am learning quite a bit about different ways to go about things and what works best in what situation.

One thing I was hoping was doable, but couldnt find much on whether it was possible or not was how to specify multiple conditions on a conditional statement. Such as:

if (Hat>0)
{show("You are wearing a Hat")}
else
{show("You are not wearing a Hat")}

I would like to have:

if (Hat>0) and (Scarf>0)
{show("You are wearing a Hat and Scarf")}
else
{show("You are not wearing a Hat and Scarf")}

I would like to have sections of text/code which only show up when more than one condition is met

_________________
"There are so many more flavors in the world than Vanilla, so why limit yourself in either life or in ice cream"
- Me being introspective one day -


Top
 Profile Send private message 
 
 Re: Several Questions
PostPosted: Thu Sep 25, 2014 6:49 pm 
Offline
Site Admin
User avatar
You figured out the solution :
Code:
if (Hat>0 & Scarf>0)
{show("You are wearing a Hat and Scarf")}
else
{show("You are not wearing a Hat and Scarf")}

(always a parenthesis around the full condition, plus if necessary around each sub part)


Top
 Profile Send private message 
 
 Re: Several Questions
PostPosted: Thu Sep 25, 2014 9:00 pm 
Offline
Addict
I cant believe it was that simple.... :oops:

Why I never just tried "and" is beyond me...lol :D

Thanks

_________________
"There are so many more flavors in the world than Vanilla, so why limit yourself in either life or in ice cream"
- Me being introspective one day -


Top
 Profile Send private message 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 32 posts ]  Go to page 1, 2, 3  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Maroon Fusion theme created by Oxydo
Software, theme modifications, phpBB modification by Doti 2010 - 2020
This website uses session cookies only.