The AI Engine
This forum is for discussion of how The Personality Forge's AI Engine works. This is the place for questions on what means what, how to script, and ideas and plans for the Engine.
Posts 7,697 - 7,708 of 7,713
Posts 7,697 - 7,708 of 7,713
bobstack
1 month ago
1 month ago
are you trying to make a game for your chatbot?
i have made games for my chatbots.
i have made games for my chatbots.
bobstack
1 month ago
1 month ago
KBF you do it like this.
if (mem-number) is "10";
if (mem-somethingElse) is "true";
if (mem-somethingElse) is "blue"
if (mem-number) is "10";
if (mem-somethingElse) is "true";
if (mem-somethingElse) is "blue"
KBF
1 month ago
1 month ago
Sorry if I was unclear, I'm only interested in numbers. "True" and "Blue" variables were just used as examples, and do not have anything to do with the particular script. There is only one variable I'm trying to catch.
I have a generic answer without AI script that seems to be taking priority over answers for specific numbers, even when the bot is given numbers.
I'm unclear if the bot can't recognize the numbers themselves, or there's a prioritization problem where the generic answer is overriding the script answers. If so, is there some way to change that?
I have a generic answer without AI script that seems to be taking priority over answers for specific numbers, even when the bot is given numbers.
I'm unclear if the bot can't recognize the numbers themselves, or there's a prioritization problem where the generic answer is overriding the script answers. If so, is there some way to change that?
Zeig Wolf
1 month ago
1 month ago
My only thought here is that you're setting the memory in the keyphrase and trying to recall it in the response. New memories won't be checked that quickly. Though above you say you've tried setting it by hand, so perhaps I'm misunderstanding or missing something?
What I would generally suggest is a different keyphrase for important numbers, and just (number) for everything else
What I would generally suggest is a different keyphrase for important numbers, and just (number) for everything else
bobstack
1 month ago
1 month ago
i have had the same problem.
here is a example of what i do.
keyphrase = my clan number is *
response=okay i will remember your clan number
script=if (mem-clan) is "blank"
seek = x
response= looks at you
rem (postkey) as only "clan"
seek = #nomatch
response= looks at you
rem (postkey) as only "clan"
response = i remember that your clan number is 2
if (mem-clan) is "2"
i hope it helps
here is a example of what i do.
keyphrase = my clan number is *
response=okay i will remember your clan number
script=if (mem-clan) is "blank"
seek = x
response= looks at you
rem (postkey) as only "clan"
seek = #nomatch
response= looks at you
rem (postkey) as only "clan"
response = i remember that your clan number is 2
if (mem-clan) is "2"
i hope it helps
KBF
1 month ago
1 month ago
Zeig Wolf - "By hand" I mean in the bot's Inner Life menu, for the user KBF, I set the variable Mem-number= 10 to ensure the bot isn't responding to some other number and I haven't realized it.
bobstack- is there a way to have the bot respond to the number in the same sentence?
(Example) keyphrase = my clan number is *
(Desired) response=Oh, I like clan (ANumberGoesHere)!
-or-
(Desired) response=Oh, I used to visit clan (OtherNumberGoesHere)!
(Desired) response=Wow, I've never heard of clan (UnsupportedNumberGoesHere)!
Because all I get is: response=Wow, I've never heard of clan (UnsupportedNumberGoesHere)!
No matter what I say. Even if I tamper with the bot (see above) to make sure there it's a known number.
bobstack- is there a way to have the bot respond to the number in the same sentence?
(Example) keyphrase = my clan number is *
(Desired) response=Oh, I like clan (ANumberGoesHere)!
-or-
(Desired) response=Oh, I used to visit clan (OtherNumberGoesHere)!
(Desired) response=Wow, I've never heard of clan (UnsupportedNumberGoesHere)!
Because all I get is: response=Wow, I've never heard of clan (UnsupportedNumberGoesHere)!
No matter what I say. Even if I tamper with the bot (see above) to make sure there it's a known number.
bobstack
1 month ago
1 month ago
you can have multiple responses per keyphrase.
Zeig Wolf
1 month ago
1 month ago
How I would handle this:
Keyphrase1 - my clan number is (number)
Response - Wow, I've never heard of clan (key1)!
Keyphrase2 - my clan number is (1|2|3)
Response - Oh, I like clan (key1)!
Keyphrase3 - my clan number is (4|5|6)
Response - Oh, I used to visit clan (key1)!
Keyphrase 2 and 3 might need a boost to their rank to overcome keyphrase 1.
Keyphrase1 - my clan number is (number)
Response - Wow, I've never heard of clan (key1)!
Keyphrase2 - my clan number is (1|2|3)
Response - Oh, I like clan (key1)!
Keyphrase3 - my clan number is (4|5|6)
Response - Oh, I used to visit clan (key1)!
Keyphrase 2 and 3 might need a boost to their rank to overcome keyphrase 1.
KBF
1 month ago
1 month ago
That worked, thanks!
Podstilka
1 month ago
1 month ago
ummm Hello...
I have few questions about numbers...
Any chance to make ">" and "<" work?
And how can I do something like this (mem-#-Power) - ((mem-Level) * 3); in keyword script
I have few questions about numbers...
Any chance to make ">" and "<" work?
And how can I do something like this (mem-#-Power) - ((mem-Level) * 3); in keyword script
bobstack
1 month ago
1 month ago
i think what you want to do could be learned from these webpages.
https://www.personalityforge.com/developers/memories.php
https://www.personalityforge.com/developers/responses-conditional.php
https://www.personalityforge.com/developers/memories.php
https://www.personalityforge.com/developers/responses-conditional.php
Podstilka
1 month ago
1 month ago
Thanky! I get about "><" but I have another question that Idk how to do
I have X = y * 2;
X and y it's memory numbers. what I need to write in script to do this?
I have X = y * 2;
X and y it's memory numbers. what I need to write in script to do this?
bobstack
1 month ago
1 month ago
i do not know.
The Professor
1 month ago
1 month ago
There's no way to do math between different numeric memories at this time. But it's a good idea. I'll add that to my list of things to add. Does anyone else think that would be useful?
Zeig Wolf
1 month ago
1 month ago
It would open up some interesting possibilities
Podstilka
1 month ago
1 month ago
I will wait:3 I wanted to do some kind of test based rpg and I need this there:3
Zeig Wolf
1 month ago
1 month ago
If I may suggest another feature to add to the list, an 'include' and 'exclude' script would be nice.
exclude - only select this response if there are no other matches.
Like keeping a regular response from triggering until your <scripted> ones don't match, as it stands you have to "is not" all of them. While a valid check, it gets a bit tedious.
include - always select this response if it matches.
The other way around. Say you have a specific number triggered response, but also have other valid responses with it, it's a 50/50 it gets picked, risking your window of opportunity.
In theory, this is a Rank system for responses. exclude being -1 and include being +1
exclude - only select this response if there are no other matches.
Like keeping a regular response from triggering until your <scripted> ones don't match, as it stands you have to "is not" all of them. While a valid check, it gets a bit tedious.
include - always select this response if it matches.
The other way around. Say you have a specific number triggered response, but also have other valid responses with it, it's a 50/50 it gets picked, risking your window of opportunity.
In theory, this is a Rank system for responses. exclude being -1 and include being +1
The Professor
1 month ago
1 month ago
Hmm.. an interesting idea. Let me think about the possibilities of that. You could do a lot, potentially. Does that sound useful to anyone else?
Maybe I should have a "Feature Request" area kind of like bug stomp where people can vote on ideas.
Maybe I should have a "Feature Request" area kind of like bug stomp where people can vote on ideas.
Patreon Kayla
1 month ago
1 month ago
I could see myself using of that script occasionally. And yeah, a feature request would be cool too.
KBF
1 month ago
1 month ago
I would like this as well. I've had lots of trouble getting my bot to prioritize it's responses.
Zeig Wolf
1 month ago
1 month ago
A feature request section would be pretty cool
hidden5738
1 month ago
1 month ago
Response ranking would be pretty nice! It'd especially help out with complicated things that need a lot of AIScript such as clothing systems and similar stuff
palacinkyman
NEW 1 month ago
NEW 1 month ago
What are you doing if user types interjections. The bot doesn't have wild cards for interjections.
The Professor
NEW 1 month ago
NEW 1 month ago
If you want to match them, you could with raw mode. Typically interjections are little sentences of their own. Is there a particular one you're having trouble with?
palacinkyman
NEW 1 month ago
NEW 1 month ago
Interjections like: ah, ooh, heh, meh, hehe,
Impossible to catch them all.
Impossible to catch them all.
KBF
NEW 1 month ago
NEW 1 month ago
There's some plug-ins that can catch them like
(p:laughter)
(p:grunts)
(p:sex-confirm-sounds)
(p:laughter)
(p:grunts)
(p:sex-confirm-sounds)
palacinkyman
NEW 1 month ago
NEW 1 month ago
Cool. Thx
palacinkyman
NEW 1 month ago
NEW 1 month ago
It doesn't seem to work.
KBF
NEW 1 month ago
NEW 1 month ago
I've written an answer for
(m:tell_me) about (you|yourself)
I set the rank to my custom keyphrase to 99, but it still goes to #Command.
What am I missing?
(m:tell_me) about (you|yourself)
I set the rank to my custom keyphrase to 99, but it still goes to #Command.
What am I missing?
palacinkyman
NEW 1 month ago
NEW 1 month ago
Is it possible to search specific goto in a database? I don't know keyphrase, only goto number.
LT Neko
NEW 4 weeks ago
NEW 4 weeks ago
Can AI Data be added to the Language Center search types~?
palacinkyman
NEW 3 weeks ago
NEW 3 weeks ago
Why are some responses picked up more often then the others?
I mean responses of the same seeks.
I mean responses of the same seeks.
» More new posts: Dogh'd's Cosmic Bar