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


Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Request and Return a Name of Value
PostPosted: Tue Mar 12, 2013 4:22 pm 
Offline
Regular
Hello everyone, sorry to ask such a basic question, but for the life of me I can't get this from the other documentation/threads. I'd like a script to ask for the name of someone you know. Presently I've attempted this with:

Code:
def c = getString("What is the name of this superior female?", "")


With an attempt to return the name using:

Code:
show("You said "+loadString("def c")+"?")
setImage("Friendly/Standard/5.jpg")
wait(6)


But unfortunately it keeps returning "null" instead of the entered value. Is there something I'm missing?

Thanks for any help you can provide!


Top
 Profile Send private message 
 
 Re: Request and Return a Name of Value
PostPosted: Tue Mar 12, 2013 5:18 pm 
Offline
Site Admin
User avatar
I'll do this instead :
Quote:
show("You said "+c+"?")

"def" is a keyword for declaring, creating a variable.
"loadString()" would read something from the data file, it's easier when in memory (in a variable, "c").


Top
 Profile Send private message 
 
 Re: Request and Return a Name of Value
PostPosted: Tue Mar 12, 2013 6:55 pm 
Offline
Regular
Excellent thank you!


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

All times are UTC + 1 hour [ DST ]


Who is online

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


cron
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.