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


17 years ago #4891
I don't know how to do what you want with the variable The only thing I could come up with is have a memory named integer with the default as 1 and then when the KP is triggered the first response in only if integer = 1 and whatever follows must change the memory of integer to 2. The next response would have to be triggered only if mem integer is 2 and whatever follows that must change the integer to 3 and so on. That is not what you want, but that's the only thing I know.

You can check the box for once per conversation but you must have more than one response and one response must not be checked. You can't make it last all day as far as I can tell, but if you have lots of responses per KP it should work out.

17 years ago #4892
you could use chronostatements

<?PF chrono: week(S); ?> would come up on Sundays
<?PF chrono: day(18) month(6); ?> would come up on June 18
<?PF chrono: hour(11-20); ?> would come up once a day at the specified time, or times.


17 years ago #4893
@Bev
Okay, thanks, figured it out, need to use <?PF rem "2" as only "integer"; ?>, I was leaving the only and so it was creating multiple values rather than overwriting the old value.

@prob123
Thanks, I should be able to work something out using that now that I think of it.

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?


Posts 4,891 - 4,902 of 8,130

» More new posts: Doghead's Cosmic Bar