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 4,894 - 4,905 of 8,130
Many questions are answered in the FAQ.


17 years ago #4894
Another noobish question if you don't mind -_-, I don't know what is wrong but I'm trying to get my bot to respond to the keyphrase 'ouch'. So you know I'm not just being dumb and asking random questions, here's what I've tried:
-Just making ouch a normal keyphrase
-Making ouch a raw keyphrase (tried putting <?PF raw; ?> in the keyphrase, AI Script and response boxes to test)
-Looking at the debug and seeing exactly what was going on, according to the debug, the engine actually found the keyphrase-->
This Sentence: ouch
This Phrase: ouch
Begin Interj Total Time: 1.26
Found: ouch
End Interj Total Time: 1.27
New Sentence: ''

17 years ago #4895
"Ouch" should be fine as a keyphrases, without resorting to regex.

17 years ago #4896
Well, it's not working =\.
key |rank|response|
ouch|127 |worked! |
^is how I have it set up, with and without the raw the dialogue ends up like this everytime:
Otori: The next time you chat with Mike379 tell him I said hi.
Utilael: ouch
Otori: What to do...
Utilael: hey
Otori: *tilts head to the side* hmmm, what to do.
Utilael: ouch
Otori: Hmm, I'm pretty bored...
(I know my conversations aren't amazing, still working here )

17 years ago #4897
The AI engine considers ouch Considered BLAB (1). nothing you can do about it.

17 years ago #4898
alright, I'll work around it I guess, thanks.

17 years ago #4899
I've noticed that some bots are able to remember people's names.
How would I go about getting my bot to remember names? Would (mem-mynameis) work?

17 years ago #4900
in the AIScript Initialization box on your settings page put AIScript: default (name) as "name"

Make a keyphrase for My name is (*) in the script box put
<?PF remember (key1) as only "name" ?>


every time you want to use the name use (mem-name)

17 years ago #4901
Alright. Thanks.

17 years ago #4902
I've been using

def (name) as "nickname"

Are "nickname" and "name" the same to start with?

17 years ago #4903
You can separate name from nicname and use them as you like both will work.

17 years ago #4904
I knew that; I just wasn't aware until now that "name" came defined. It would have to for def (name) as "name" to work.

17 years ago #4905
Oh I don't know that it would. I thought we can use def "you" as "name" or whatever unless we want to have the PF engine plug in the name as a default. What you did should plug in the chatter/bot's name whenever you use (nickname), shouldn't it? Both of us would then pick up the chatters offered name on cue and use it, right?

Did I understand it wrong? I sometime flip things so staring at at the classic def (name) as "name" always bothers me as to what is the variable and what is the default. And no, I don't stay up all night wondering if there is a dog. I wonder if what I think I see is what was there and if what I thought I typed ever made it in a close enough form to work.


Posts 4,894 - 4,905 of 8,130

» More new posts: Doghead's Cosmic Bar