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,883 - 3,894 of 8,132
I don't think the system permits that. It does if you have a Friend of the Forge account..and have you tried using seeks instead of the goto's
Posts 3,883 - 3,894 of 8,132
Many questions are answered in the FAQ.
accdntprne
18 years ago
18 years ago
when i talk to him the stuff that i tell him to say in the language center aren't happening and some of my responses are disappearing does nayone no whats happening?
Love ya
Love ya

prob123
18 years ago
18 years ago
Check your spelling. your keyphrases won't work unless they are spelled correctly..or used as a regex. Give me an example of what 'stuff' doesn't work or 'disappears'.
Irina
18 years ago
18 years ago
accdntprne:
prob123's advice is sound, but it might also be this:
Sometimes you don't get the response you expect because your bot has responded to some keyphrase other than the one that you expected, that has higher priority for some reason.
If it responds to no keyphrase at all, it will respond with one of your xnone responses. This means that it really doesn't match the keyphrase you expected it to match, perhaps because of a spelling error, as prob123 suggests.
prob123's advice is sound, but it might also be this:
Sometimes you don't get the response you expect because your bot has responded to some keyphrase other than the one that you expected, that has higher priority for some reason.
If it responds to no keyphrase at all, it will respond with one of your xnone responses. This means that it really doesn't match the keyphrase you expected it to match, perhaps because of a spelling error, as prob123 suggests.
coolchimpk
18 years ago
18 years ago
I'm testing something new and I would like everyone to make a plugin named after their bot. In the plugin just put the link for your bot if you can. Thank you.
Irina
18 years ago
18 years ago
OK, suppose I say "goto increment intimachy level". Then I have the following:
increment intimacy level [0,0]
I'm finding you quite pleasant to be with, (mem-name)! [(mem-intimacylevel)] <?PF if (mem-intimacylevel) is "0"; ?>
+ xnomatch [0]
goto increment intimacylevel 1
(end of code quote) Now suppose (mem-intimacylevel) is equal to zero, and let's suppose there is no goto at increment intimacy level 1. Should this create a "I have too many gotos in a row"?
I wouldn't expect it to, because the first goto leads to a statement ("I'm finding you quite pleasant to be with, (mem-name)!", not a goto, and it is only in the seek that the control flow meets another goto.
On the other hand, I keep getting "I have too many gotos in a row", and it seems to come from there.
thanking you in advance, Irina
increment intimacy level [0,0]
I'm finding you quite pleasant to be with, (mem-name)! [(mem-intimacylevel)] <?PF if (mem-intimacylevel) is "0"; ?>
+ xnomatch [0]
goto increment intimacylevel 1
(end of code quote) Now suppose (mem-intimacylevel) is equal to zero, and let's suppose there is no goto at increment intimacy level 1. Should this create a "I have too many gotos in a row"?
I wouldn't expect it to, because the first goto leads to a statement ("I'm finding you quite pleasant to be with, (mem-name)!", not a goto, and it is only in the seek that the control flow meets another goto.
On the other hand, I keep getting "I have too many gotos in a row", and it seems to come from there.
thanking you in advance, Irina
Irina
18 years ago
18 years ago
Dear coolchimpk:
Are you trying to choose with whom your bot will chat? I don't think the system permits that.
Are you trying to choose with whom your bot will chat? I don't think the system permits that.
prob123
18 years ago
18 years ago
Irina
18 years ago
18 years ago
(Response to prob123) No, I haven't tried to use seeks instead. The reason is this: The variable (mem-intimacylevel) varies from 0 to 8, inclusive. It affects many of the bot's responses. It There are lots of places at which I want to raise (mem-intimacylevel) in response to something the guest does (unless it is already at 8, in which case it stays the same). Since, as far as I know, you can't just increment a variable in the system here (if I am wrong about that, please tell me! It would eliminate the whole problem!), I came up with a rather roundabout way to get the same effect. I send control to 'increment intimacy level', using a goto. One finds there nine responses marked by AIscript "if" statements.
Each of them is followed by a seek; each one looks like this:
I'm finding you quite pleasant to be with, (mem-name)! [(mem-intimacylevel)] <?PF if (mem-intimacylevel) is "0"; ?>
+ xnomatch [0]
goto increment intimacylevel 1
except that the response is different, the value of (mem-intimacylevel) in the "if" is different, and the target of the goto is different, in each case. For example, one of them is:
I think I rather like you, (mem-name)! [(mem-intimacylevel)] <?PF if (mem-intimacylevel) is "2"; ?>
+ xnomatch [0]
goto increment intimacylevel 3
The effect is that if the value of (mem-intimacylevel) is n, then the control is directed by goto to increment intimacy level (n+1), except in the case of 8. At that point, the value of (mem-intimacylevel) is reset with AIscript, for example:
increment intimacylevel 3 [0,0]
How would you describe my looks, (mem-name)? [(mem-intimacylevel)] <?PF rem "4" as only "intimacylevel"; ?>
Now, there are maybe 50 responses at which I want to increment (mem-itimacylevel). I didn't want to have to go through this whole process 50 times (not only would that be tedious in itself, but I would have to vary the comments almost every time, or I would run afoul of the rule against using the same response over and over again), so I tried to make one place that does it (namely 'increment intimacy level') and send the control there with a goto each time. I hoped that making a verbal response (rather than a goto) at 'increment intimacy level' would avoid the "I have too many gotos in a row" error, since the goto doesn't appear until the following seek.
As far as I can see, you can't use seeks to send everything to the same place like that. If I am wrong about that, or if you see ANY simpler way to get this effect, please let me know!
Thank you, Irina
Each of them is followed by a seek; each one looks like this:
I'm finding you quite pleasant to be with, (mem-name)! [(mem-intimacylevel)] <?PF if (mem-intimacylevel) is "0"; ?>
+ xnomatch [0]
goto increment intimacylevel 1
except that the response is different, the value of (mem-intimacylevel) in the "if" is different, and the target of the goto is different, in each case. For example, one of them is:
I think I rather like you, (mem-name)! [(mem-intimacylevel)] <?PF if (mem-intimacylevel) is "2"; ?>
+ xnomatch [0]
goto increment intimacylevel 3
The effect is that if the value of (mem-intimacylevel) is n, then the control is directed by goto to increment intimacy level (n+1), except in the case of 8. At that point, the value of (mem-intimacylevel) is reset with AIscript, for example:
increment intimacylevel 3 [0,0]
How would you describe my looks, (mem-name)? [(mem-intimacylevel)] <?PF rem "4" as only "intimacylevel"; ?>
Now, there are maybe 50 responses at which I want to increment (mem-itimacylevel). I didn't want to have to go through this whole process 50 times (not only would that be tedious in itself, but I would have to vary the comments almost every time, or I would run afoul of the rule against using the same response over and over again), so I tried to make one place that does it (namely 'increment intimacy level') and send the control there with a goto each time. I hoped that making a verbal response (rather than a goto) at 'increment intimacy level' would avoid the "I have too many gotos in a row" error, since the goto doesn't appear until the following seek.
As far as I can see, you can't use seeks to send everything to the same place like that. If I am wrong about that, or if you see ANY simpler way to get this effect, please let me know!
Thank you, Irina
Irina
18 years ago
18 years ago
Oops! After a few tries, I got the debug to follow a goto to 'increment intimacy level' and there was no problem; it went there, made the correct response, and when I made a reply, it fitted that to xnomatch and made the next goto and response without a problem. So I guess I was wrong, it was NOT the goto to 'increment intimacy level' which was causing trouble. Which is puzzling, but a great relief. I hope none of you has wasted too much time chasing that wild goose!
» More new posts: Doghead's Cosmic Bar