Within session and persistent variables.
Posted: Fri Sep 29, 2006 6:42 pm
Ok...
I've just blitzed this board with a few suggestions. Originally I had them all in a single post but then that makes it hard to consider and even comment on each one separately.
This is another suggestion that's impossible for 1.0, but I'm throwing out here anyway for future consideration once it's possible to have programmable logic behind the teases:
Allow tease authors to store not just per-session variables, but per-teasee variables as well. Asking "Do you have a shoe-lace?" at the begining is only important to use per tease, but it would also be great to have variables that can be re-used in multi-tease campaigns (imagine what "A week of torment" could be like if the teases interacted with each other) or simply remembered the next time the same teasee goes to the same tease, as in "Last time you only lasted 15 minutes, let's see if we can improve that."
The persistent variables would probably be stored as a six column table... tease author, teasee, variable name, variable value, some datestamp of when it was last accessed (or failing that, modified) and maybe variable type (number, string, etc) if you need that. Setting or retriving the variable would update the datestamp, and you could keep things clean by deleting rows out of the table with a datestamp older than, say, six months. As a tease author, it would be great to be able to see how your tease was going by looking at this table, but if there are privacy/security concerns then you could make it so nobody, even the authors, can see the variables, and they are only retrievable per tease.
functions would probably be like set-persistant-value(name, value) and get-persistant-value(name), and the functions would add the keys of the author and the teasee as it looks up to the table.
PS: If you do this you'll probably want some temporary table too that gives a list of variable names per tease author, so that tease authors can look and see what variable names they've already used, just to make it easier on them.
I've just blitzed this board with a few suggestions. Originally I had them all in a single post but then that makes it hard to consider and even comment on each one separately.
This is another suggestion that's impossible for 1.0, but I'm throwing out here anyway for future consideration once it's possible to have programmable logic behind the teases:
Allow tease authors to store not just per-session variables, but per-teasee variables as well. Asking "Do you have a shoe-lace?" at the begining is only important to use per tease, but it would also be great to have variables that can be re-used in multi-tease campaigns (imagine what "A week of torment" could be like if the teases interacted with each other) or simply remembered the next time the same teasee goes to the same tease, as in "Last time you only lasted 15 minutes, let's see if we can improve that."
The persistent variables would probably be stored as a six column table... tease author, teasee, variable name, variable value, some datestamp of when it was last accessed (or failing that, modified) and maybe variable type (number, string, etc) if you need that. Setting or retriving the variable would update the datestamp, and you could keep things clean by deleting rows out of the table with a datestamp older than, say, six months. As a tease author, it would be great to be able to see how your tease was going by looking at this table, but if there are privacy/security concerns then you could make it so nobody, even the authors, can see the variables, and they are only retrievable per tease.
functions would probably be like set-persistant-value(name, value) and get-persistant-value(name), and the functions would add the keys of the author and the teasee as it looks up to the table.
PS: If you do this you'll probably want some temporary table too that gives a list of variable names per tease author, so that tease authors can look and see what variable names they've already used, just to make it easier on them.