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


Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Entering Score and Assigning Punishment
PostPosted: Sun Aug 14, 2011 7:12 pm 
Offline
Regular
Help please. I would like to be able to enter the losing score from a game into the program and have the program assign a random punishment applicable to that score:

Example might be:

What was your losing score? _____

if less than 200 then a random choice from punishment group a
if 201-400 then a random choice from punishment group b
if 401-600 then a random choice from punishment group c
if 601-999 then a random choice from punishment group d
if 1000+ then a random choice from punishment group e

Then each group might have 3 or 4 choices that could be picked by getRandom, etc.

Any help would be most appreciated.

Thanks!


Top
 Profile Send private message 
 
 Re: Entering Score and Assigning Punishment
PostPosted: Sun Aug 14, 2011 7:36 pm 
Offline
Site Admin
User avatar
Of course. How you wrote is is quite ready to be translated (english->groovy). I propose a solution not super clean, but simple :
Code:
def score = getInteger("What was your losing score ?", 0)
if(score<200) {
   def r = getRandom(4)
   if(r==0) show("...punishment 1...")
   else if(r==1) show("...punishement 2...")
   else if(r==2) show("...punishement 3...")
   else show("...punishement 4...")
} else if(score<400) {
   ...
} else if(score<600) {
   ...
} else if(score<800) {
   ...
} else {
   ...
}


edit : nearer to result wanted


Top
 Profile Send private message 
 
 Re: Entering Score and Assigning Punishment
PostPosted: Sun Aug 14, 2011 7:38 pm 
Offline
Regular
Thank you, I will give it a try!!


Top
 Profile Send private message 
 
 Re: Entering Score and Assigning Punishment
PostPosted: Mon Aug 15, 2011 5:40 am 
Offline
Veteran
User avatar
As a gamer, I'd love to see this script when its done. I once started on a similar thing for CyberMistress for the game 'Cooking Mama'! :lol:

Can I ask what the game is, bdartm1? :geek:


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 14 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.