I have made the temporary list used when randomly getting a string available for every-day use.
What this means is that you can generate a list without having to load it from a pocket variable.
Still confused?.. here is a simple example:
$tmp = (one,two,three,,,'ninety nine');
print "$varlist[0] - $varlist[1] - $varlist[2] - $varlist[3] - $varlist[4] - $varlist[5]";
This will print out:
one - two - three - - - ninety nine'
Notice how the blank items in the list are valid bank strings .. this is a good thing.
You still get a random item from your list in $tmp.
Notice that you have to enclose anything with a space in single quotes.. sorry, thats just the way things go now.
if you have not previously loaded anything into the 'list' you can refer to your newly created list using the standard loop statement like this:
$tmp = (one,two,three,,,'ninty nine');
print "$list[0] - $list[1] - $list[2] - $list[3] - $list[4] - $list[5]";
loop printit;
##printit: print "$listitem";
Notice how we used $list[n] in that print statement. since we had not loaded anything, $list[n] and $varlist[n] are identical.
Loaded lists are much more important that temorary lists. Since the loop statement only understands one list, it will always use a loaded list in preference to a temorary list.
This example will print the contents fo the $actors pocket not the temorary list.
load $actor's pocket;
$tmp = (one,two,three,,,six);
loop printit;
##printit: print "$listitem";
The good news is that you can now generate a list for saveing quite quickly like this:
$tmp = (one,two,three);
save $actor's pocket;