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


Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Writing Lines
PostPosted: Tue May 13, 2014 7:14 pm 
Offline
Addict
I tried to create a script for writing lines but could'nt figure out how to code it for right and wrong entries.

I tried looking at "The Lady Give Lines" for inspiration but couldnt get my head around the code. I'm not looking to write anything as complex as that. I just want to have the script ask for a text entry and have two following pages for the right and wrong answers, similar to asking a question with two button answers which lead to different responses from the program.

Could someone who understands .groovey code better than me just post an example of the code needed, that I can copy, and I can go from there. I just need a starting point and I can figure/learn the rest by trial and error.

_________________
"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: Writing Lines
PostPosted: Tue May 13, 2014 7:31 pm 
Offline
Site Admin
User avatar
Here is a basic code :

the code below is invalid
Code:
setInfo(...............)

if(getText("Enter 'abc'")=="abc") {
  show("success, next")
.....
} else {
  show("wrong !")
....
}


Top
 Profile Send private message 
 
 Re: Writing Lines
PostPosted: Wed May 14, 2014 6:59 pm 
Offline
Addict
I still cant get it to work, it always comes up with error messages whatever I try. It says MissingMethodDescription.

I tried it like this:

if(getText("Enter 'abc'")=="abc") {
show("success, next")
} else {
show("wrong !")
wait(5)
}

as well as like this:

if(getText("Enter 'abc'")=="abc")
show("success, next")
else
show("wrong !")
wait(5)

as well as many other variations. I still dont know what I'm doing wrong. Do I need to have already put the setInfo(...............) part at the top of the script for it to work, if so what do I put in it (i assumed it was just for the content tags, which I was going to put in later)

_________________
"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: Writing Lines
PostPosted: Wed May 14, 2014 7:31 pm 
Offline
Site Admin
User avatar
Sorry for that, 2 mistakes ; here is a valid code
Code:
if(getString("Enter 'abc'","")=="abc") {
show("success, next")
} else {
show("wrong !")
wait(5)
}


Top
 Profile Send private message 
 
 Re: Writing Lines
PostPosted: Sat May 07, 2016 5:27 am 
Offline
Shy
this is a helpful code made a part of my current script easier and will definitely be use in my next script


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

All times are UTC + 1 hour [ DST ]


Who is online

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