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
Posts 4,891 - 4,902 of 8,130
Many questions are answered in the FAQ.
Bev
17 years ago
17 years ago
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.
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.
prob123
17 years ago
17 years ago
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(1
1-2
0); ?> would come up once a day at the specified time, or times.
<?PF chrono: week(S); ?> would come up on Sundays
<?PF chrono: day(18) month(6); ?> would come up on June 18
<?PF chrono: hour(1


Utilael
17 years ago
17 years ago
@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.
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.
Utilael
17 years ago
17 years ago
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: ''
-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: ''
Utilael
17 years ago
17 years ago
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
)
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

Inept Butterfly
17 years ago
17 years ago
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?
How would I go about getting my bot to remember names? Would (mem-mynameis) work?
prob123
17 years ago
17 years ago
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)
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)
The Clerk
17 years ago
17 years ago
I've been using
def (name) as "nickname"
Are "nickname" and "name" the same to start with?
def (name) as "nickname"
Are "nickname" and "name" the same to start with?
» More new posts: Doghead's Cosmic Bar