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


Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Saving to data.properties with wildcards?
PostPosted: Mon Sep 14, 2015 11:03 am 
Offline
Veteran
User avatar
Is it possible to set multiple values at once in data.properties?

That is, instead of having to do:
Code:
save("myscript.myvalue1", true)
save("myscript.myvalue2", true)
save("myscript.myvalue3", true)

... to instead do something like:
Code:
save("myscript.myvalue"+*+"", true)

... where * is whatever the wildcard character might be?


Top
 Profile Send private message 
 
 Re: Saving to data.properties with wildcards?
PostPosted: Mon Sep 14, 2015 12:19 pm 
Offline
Veteran
User avatar
Don't think you can but you could do:

Code:
for (i in 1..4) {
  save("myscript.myvalue"+i, true)
}

_________________
Liz

You can't take something off the Internet - it's like taking pee out of a pool.
https://play-clan.site profile: Liz


Top
 Profile Send private message 
 
 Re: Saving to data.properties with wildcards?
PostPosted: Mon Sep 14, 2015 6:35 pm 
Offline
Site Admin
User avatar
Yes, no wildcard with save() nor send()


Top
 Profile Send private message 
 
 Re: Saving to data.properties with wildcards?
PostPosted: Fri Dec 22, 2017 12:40 pm 
Offline
Site Admin
User avatar
Notice : this will somewhat change with API 8 in a few weeks.


Top
 Profile Send private message 
 
 Re: Saving to data.properties with wildcards?
PostPosted: Mon Jan 01, 2018 9:39 pm 
Offline
Site Admin
User avatar
Hello

It was added to the SexScripts API !
Here is the sample code about the example above:

Old:
Code:
save("myscript.myvalue1", true)
save("myscript.myvalue2", false)
save("myscript.myvalue3", true)
...
v2 = loadBoolean("myscript.myvalue2")
show(v2)


New - saving a full list of booleans then reading back the whole list:
Code:
save("myscript.myvalues", [true, false, true])
...
values = load("myscript.myvalues")
show(values[1])


(works also with send() / receive())

Enjoy !


Top
 Profile Send private message 
 
 Re: Saving to data.properties with wildcards?
PostPosted: Tue Jan 02, 2018 3:30 pm 
Offline
Veteran
User avatar
Thanks, very useful too 8-)


Top
 Profile Send private message 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 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.