Iamnaeth
08-07-2008, 06:30 PM
How do I have character specific containers running the same script?
I added a setup aspect to my scripts like this:
def setup()
toggle_echo; toggle_unique; toggle_echo
echo "Reply to the following questions by typing \";s to sell <answer>\""
echo "There is no checking for those questions but if you mess up the script likely won't operate."
echo
clear
echo "Where do you store gems and alchemy?"
Settings["lootsack"] = unique_get
Settings.save
exit
end
Settings.load
if variable[1] =~ /setup/i then setup(); end
What I've run into is that if character 1 denotes that he keeps his gems in his jacket, when character 2 runs the script, he tries to get the gems from the jacket even though when he ran the script he specified cloak.
Any tips? Thanks!
I added a setup aspect to my scripts like this:
def setup()
toggle_echo; toggle_unique; toggle_echo
echo "Reply to the following questions by typing \";s to sell <answer>\""
echo "There is no checking for those questions but if you mess up the script likely won't operate."
echo
clear
echo "Where do you store gems and alchemy?"
Settings["lootsack"] = unique_get
Settings.save
exit
end
Settings.load
if variable[1] =~ /setup/i then setup(); end
What I've run into is that if character 1 denotes that he keeps his gems in his jacket, when character 2 runs the script, he tries to get the gems from the jacket even though when he ran the script he specified cloak.
Any tips? Thanks!