SexScripts : how to write functions? - https://ss.deviatenow.com:443/viewtopic.php?f=3&t=231 Page 1 of 1

how to write functions?

cw3211025 [ Tue Feb 28, 2012 4:49 pm ]

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!

Re: how to write functions?

doti [ Tue Feb 28, 2012 9:51 pm ]

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)

Page 1 of 1 All times are UTC + 1 hour [ DST ]
https://ss.deviatenow.com:443/
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Maroon Fusion theme created by Oxydo
Software, theme modifications, phpBB modification by Doti 2010, 2011