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


Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Help the new guy out?
PostPosted: Sun Aug 06, 2017 12:03 am 
Offline
Regular
Hi all.

Completely new to this so I figured i would try my hand with the script maker tool. So for it is going well, but i have come to a stop as i cant figure out how to get something to work.

There is a button which lets you use percentages to decide outcomes. I have tried to get it so that there is a 65% chance of xyz, but it wont work. Any help would be greatly appreciated.


Top
 Profile Send private message 
 
 Re: Help the new guy out?
PostPosted: Sun Aug 06, 2017 11:48 am 
Offline
Site Admin
User avatar
Can you post the content of the .ssm file here ? (it is in the ssMakerScripts directory)


Top
 Profile Send private message 
 
 Re: Help the new guy out?
PostPosted: Sun Aug 06, 2017 6:29 pm 
Offline
Regular
Thanks for the reply. i think this should do it. is it the right format? said i cant attach the .ssm file so here is the . groovy file


Attachments:
Test 1.groovy [4.54 KiB]
Downloaded 725 times
Top
 Profile Send private message 
 
 Re: Help the new guy out?
PostPosted: Mon Aug 07, 2017 10:14 am 
Offline
Site Admin
User avatar
It looks good
Show spoiler


Top
 Profile Send private message 
 
 Re: Help the new guy out?
PostPosted: Mon Aug 07, 2017 10:38 am 
Offline
Regular
It works correctly? just unsure as 1st time


Top
 Profile Send private message 
 
 Re: Help the new guy out?
PostPosted: Mon Aug 07, 2017 10:52 am 
Offline
Site Admin
User avatar
Perhaps there's a problem : there are 3 consecutives tests (65%, 25%, 10%), but not related. THat is, it can show both of them, or none of them, for example. You should avoid this with "Else case"
Code:
If ...
...
Else
. If ...
. ...
. Else
. ...


Top
 Profile Send private message 
 
 Re: Help the new guy out?
PostPosted: Mon Aug 07, 2017 11:51 am 
Offline
Regular
How would I go about changing that so I could still use all 3 possibilities?


Top
 Profile Send private message 
 
 Re: Help the new guy out?
PostPosted: Mon Aug 07, 2017 1:09 pm 
Offline
Site Admin
User avatar
With the "Else" like above ; it should replace the 3 successive "If".


Top
 Profile Send private message 
 
 Re: Help the new guy out?
PostPosted: Mon Aug 07, 2017 2:27 pm 
Offline
Regular
Thanks for the tip, although im unsure of how to do this. Because i have no idea of the actual coding, i am using the building program, which only lets me use the "If a chance is met" command. that s why there is he repetitive statements


Top
 Profile Send private message 
 
 Re: Help the new guy out?
PostPosted: Mon Aug 07, 2017 2:38 pm 
Offline
Regular
would this be right? i put the else command in, would you check that it is right please

Quote:
else
if(getRandom(100) < 25) {
blah blah blah...


Attachments:
Test 1 Edit.groovy [4.35 KiB]
Downloaded 709 times
Top
 Profile Send private message 
 
 Re: Help the new guy out?
PostPosted: Mon Aug 07, 2017 3:02 pm 
Offline
Site Admin
User avatar
Yes, looks good.

Perhaps the last test (10%) is superfluous. If not the first case and not the 2nd case, always the third.


Top
 Profile Send private message 
 
 Re: Help the new guy out?
PostPosted: Sun Sep 17, 2017 8:07 pm 
Offline
Regular
User avatar
Something doesn't add up for me...

In regards to the:
else
if(getRandom(100) < 25) {
blah blah blah...


If you use "(getRandom)" each time, won't that set a new random number? Shouldn't you first set a variable "Percent" (or something) to the value of the getRandom(100) statement? Then test the variable for its value.

:roll:

_________________
Athos316 ~
Success comes from perseverance!
So keep at it!


Top
 Profile Send private message 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

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.