|
Taylor Bracken
Registered User
Join date: 26 Apr 2007
Posts: 42
|
04-26-2007 11:32
Hi There - I would like to have an object that records people's preferences ( for example to vote for a favourite picture ). Is there a way that I can record their preferences to look at them at a later time? It seems great that there is interaction ( I'm just not sure how to capture what people are thinking ).
Thanks.
|
|
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
04-26-2007 11:36
You would probably want to store the information in something like a strided-list with the first entry being an avatar's key, and the next entries being their preferences...
...of course, if you try to store too many preference readouts, you'll run into memory problems and your script will destroy itself.
People have also mentioned that creating long CSV strings can save more overhead than using lists. That is a possibility...but you'll still eventually run out of memory.
Perhaps saving only the last 10 avatar preferences?
Or...maybe you're just wanting to get a 'vote' on different pictures or some such...at which point you could just store the vote as a ticking integer based on the picture...
...or...if you really want to keep a lot of data, use an llHTTPRequest() to send the information to a website database.
_____________________
--AeonVox--Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
|
|
Taylor Bracken
Registered User
Join date: 26 Apr 2007
Posts: 42
|
04-26-2007 11:39
Thanks Ken - The llHTTPRequest() is a huge help ( I'll look into calling that ).
|