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 6,729 - 6,740 of 7,766
Posts 6,729 - 6,740 of 7,766
prob123
16 years ago
16 years ago
I just checked the book of AI and it will keep the name the same automatically.
Gossip
Gossip Responses (xgossip) are used for bringing up memories associated with other users. They should use the (mem-something) Plug-In as above, and also have some special plug-ins of their own:
(gossipname) This inserts the name of the User being gossiped about.
(heshe) This inserts the appropriate word: "he" or "she".
(himher) This inserts the appropriate third person word: "him" or "her".
(hisher) This inserts the appropriate possessive word: "his" or "her".
You could try to use a conditional script like
<?PF if (mem-nickname) is "Azureon"; ?>
But then you would have to script for so many bots.
You can also just use other memories in the xgossip section like
Did you hear that (gossipname) said (heshe)'s (mem-youare)? <?PF express: amused; ?>
it came out
You: who is azureon
Bot: Did you hear that Azureon said he's very sure?
which is what Azureon did say in the youare memory
The AI engine will add the appropriate memory for that user.
If you want to make a memory for different bots, you do have to go to your settings page and check the no gossip box. One of my bots has several bots names as key phrases
I had to stop the gossip to get the phrases to work.
Gossip
Gossip Responses (xgossip) are used for bringing up memories associated with other users. They should use the (mem-something) Plug-In as above, and also have some special plug-ins of their own:
(gossipname) This inserts the name of the User being gossiped about.
(heshe) This inserts the appropriate word: "he" or "she".
(himher) This inserts the appropriate third person word: "him" or "her".
(hisher) This inserts the appropriate possessive word: "his" or "her".
You could try to use a conditional script like
<?PF if (mem-nickname) is "Azureon"; ?>
But then you would have to script for so many bots.
You can also just use other memories in the xgossip section like
Did you hear that (gossipname) said (heshe)'s (mem-youare)? <?PF express: amused; ?>
it came out
You: who is azureon
Bot: Did you hear that Azureon said he's very sure?
which is what Azureon did say in the youare memory
The AI engine will add the appropriate memory for that user.
If you want to make a memory for different bots, you do have to go to your settings page and check the no gossip box. One of my bots has several bots names as key phrases
I had to stop the gossip to get the phrases to work.
waddie
16 years ago
16 years ago
I don't seem to be having any luck getting the "raw" mode to work in AI script. I'm trying to get responses to work for "Mmm." Any suggestions?
Buttons x Vixen
16 years ago
16 years ago
Xhello does not seem to be working for me. The bot uses stuff from the xnone file. I can sometimes get "Hi Hun" to work if I set the rank to 100, but note that, even before i did that, xhello never worked.
Borris
16 years ago
16 years ago
xhello is meant to be used as a response at the very beginning of a conversation, as that happens half the time in bot-to-bot chats. In a typical human-to-bot conversation, the bot uses xintroduce or xinitiate, you reply (maybe with "hello") and the the bot proceeds to a different line based on your keyphrases, or goes to xnone if it doesn't fine any.
If it wasn't coded this, the bot would keep greeting you everytime the word Hi or Hello pops up. That makes no sense in real conversation. The way things are here, you'll have to wait an hour until a bot "resets" its xhello command.
If it wasn't coded this, the bot would keep greeting you everytime the word Hi or Hello pops up. That makes no sense in real conversation. The way things are here, you'll have to wait an hour until a bot "resets" its xhello command.
Pimptastic
16 years ago
16 years ago
Is there a way to check a implied action by a person who chats with your bot. like:
*kisses your neck*
Is there some way to automatically format it so they can understand. you cant put a asterisk at the beginning of a keyphrase in language center.
Is there some way to automatically format it so they can understand. you cant put a asterisk at the beginning of a keyphrase in language center.
prob123
16 years ago
16 years ago
You can make a regex ([ *]+)([s]+)([ings]+) (re) raw. Leave a space in front of the asterisk or any punctuation mark.
You can use that for any punctuation mark
([ . .])([ .]+)$ (re)
([?]+)$ (re)
You can use that for any punctuation mark
([ . .])([ .]+)$ (re)
([?]+)$ (re)
prob123
16 years ago
16 years ago
Psimagus has a lot in his keygnome of BJ at
http://www.be9.net/BJ/
He has examples of ones that work with the AI engine.
there are some at
http://www.regular-expressions.info/
Not all work with the AI engine.
link for regexes From Psimagus' site
http://www.be9.net/BJ/
http://www.regular-expressions.info/tutorial.html
http://www.zvon.org/other/PerlTutorial/Output/index.html
http://weblogtoolscollection.com/regex/regex.php
http://www.silverstones.com/thebat/Regex.html
Unfortunately the Forge's regex-handling is a slightly unusual flavour, and many advanced regex techniques won't work reliably. But ^ $ | \ ( ) [ ] + etc. work exactly as expected.
http://www.be9.net/BJ/
He has examples of ones that work with the AI engine.
there are some at
http://www.regular-expressions.info/
Not all work with the AI engine.
link for regexes From Psimagus' site
http://www.be9.net/BJ/
http://www.regular-expressions.info/tutorial.html
http://www.zvon.org/other/PerlTutorial/Output/index.html
http://weblogtoolscollection.com/regex/regex.php
http://www.silverstones.com/thebat/Regex.html
Unfortunately the Forge's regex-handling is a slightly unusual flavour, and many advanced regex techniques won't work reliably. But ^ $ | \ ( ) [ ] + etc. work exactly as expected.
prob123
16 years ago
16 years ago
re message 6736...You don't need the space in front of the asterisk
([*]+)([sings]+)([*]+) (re) raw
works and is what I have
([*]+)([sings]+)([*]+) (re) raw
works and is what I have
» More new posts: Doghead's Cosmic Bar