Newcomers
This is a forum for newcomers to the Personality Forge. Many questions can be answered by reading the Book of AI and the FAQ under the "My Bots" link in the upper corner.
Posts 3,499 - 3,510 of 8,130
Posts 3,499 - 3,510 of 8,130
Many questions are answered in the FAQ.
lovinwoodstock
19 years ago
19 years ago
Thanks for your help with the single word application, Boner. That was exactly what I needed to fix my problem

MickMcA
19 years ago
19 years ago
This seems pretty basic. I can't get AI scripts with things like
if (key1) is "Bach";
to work. Instead, I have to go through an additional step:
rem (key1) as "tmpwd";
and then run the conditional. What am I doing wrong? This seems to be the same sort of problem as the
if (name) is (friend);
problem, although (key1) is NOT a plugin.
M
if (key1) is "Bach";
to work. Instead, I have to go through an additional step:
rem (key1) as "tmpwd";
and then run the conditional. What am I doing wrong? This seems to be the same sort of problem as the
if (name) is (friend);
problem, although (key1) is NOT a plugin.
M
montag77
19 years ago
19 years ago
yes, it seems one needs to record the value as a memory and then access it using the conditional aiscript
Ulrike
19 years ago
19 years ago
Yes. It has to be stored as a memory before you can test it as part of an if-statement. However, it's fairly easy to make it work with a series of seeks.
MickMcA
19 years ago
19 years ago
Actually my strategy (when I remember to do it) is in the example above. I have a variable called tmpwd which I load with an Only when I want to carry a phrase into AI Script. I'll start using it routinely.
The main reason I haven't is that without an if/else machine, I don't find the conditionals very useful. They are especially troublesome in multiple statement scripts. I suspect that they grab the entire script as their scope, rather than only the first (or all) command that follows.
For example:
rem (name) as "nickname"; if (name) is "Bob"; rem 'Y' as only "SexPig";
If it isn't Bob, it won't load (mem-nickname), I think.
The desired result is to load (mem-nickname) because I use it more than I do (name), and to check for an undesirable (invented) User. I seem to have to do this in two separate scripts in order for it to work.
M
The main reason I haven't is that without an if/else machine, I don't find the conditionals very useful. They are especially troublesome in multiple statement scripts. I suspect that they grab the entire script as their scope, rather than only the first (or all) command that follows.
For example:
rem (name) as "nickname"; if (name) is "Bob"; rem 'Y' as only "SexPig";
If it isn't Bob, it won't load (mem-nickname), I think.
The desired result is to load (mem-nickname) because I use it more than I do (name), and to check for an undesirable (invented) User. I seem to have to do this in two separate scripts in order for it to work.
M
MickMcA
19 years ago
19 years ago
Ok, I have the following (tildes are tabs):
would you (verb) [40,0]
~goto do you (verb)
do you (verb) [40,0]
~Do you mean...
~I don't usually.
There are no gotos in the Do you Responses. But hits on "Would you" generate a "too many gotos in a row" complaint. I'm using this mechanism quite a bit, and now it seems not to be working. As near as I can tell, I have ONE goto in a row....
Any ideas?
Thanks,
Mick
would you (verb) [40,0]
~goto do you (verb)
do you (verb) [40,0]
~Do you mean...
~I don't usually.
There are no gotos in the Do you Responses. But hits on "Would you" generate a "too many gotos in a row" complaint. I'm using this mechanism quite a bit, and now it seems not to be working. As near as I can tell, I have ONE goto in a row....
Any ideas?
Thanks,
Mick
djfroggy
19 years ago
19 years ago
baby_nisha: Best of luck! Try reading the 'beginner' part of the book of AI, and if you have any questions, feel free to ask!
little monster 1
19 years ago
19 years ago
hello baby_nisha and welcome to this site. i hope you have alot of fun here making bots
» More new posts: Doghead's Cosmic Bar