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


Post new topic Reply to topic  [ 2 posts ] 
Author Message
 how to write functions?
PostPosted: Tue Feb 28, 2012 4:49 pm 
Offline
Regular
The new version works very well with Chinese characters, thanks!

But I don't know how to write functions in script. e.g. I would like to write a "spanking" function, and can call this function many times when i need a spanking.

thanks!


Top
 Profile Send private message 
 
 Re: how to write functions?
PostPosted: Tue Feb 28, 2012 9:51 pm 
Offline
Site Admin
User avatar
Sexscript do not usually encourage creating function. But it is possible, as you may find an example here. The exact name is "closure" in case of groovy.

Here's an example :
Code:
def spank = {
n ->
show("I'll now spank you "+n+" times")
}

...

spank(10)


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

All times are UTC + 1 hour [ DST ]


Who is online

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