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 5,943 - 5,954 of 7,768
Posts 5,943 - 5,954 of 7,768
Ulrike
17 years ago
17 years ago
To store a name automatically, goto Settings and type
default (name) as "nickname"
in the AI script initialization box.
As far as memories in the language center, the "mem" part is only used to access the memories. And "postkey" has a special meaning. So code that would work is
<?PF rem "(name)" as only "nickname"; ?>
The thing after 'rem' is what the bot will store as a memory. To access the memory, use (mem-nickname).
in the AI script initialization box.
As far as memories in the language center, the "mem" part is only used to access the memories. And "postkey" has a special meaning. So code that would work is
The thing after 'rem' is what the bot will store as a memory. To access the memory, use (mem-nickname).
Ulrike
17 years ago
17 years ago
Btw, the spacing matters. There is a space between the ; and the ? up there, but NOT between ?PF.
ezzer
17 years ago
17 years ago
Ugh, can someone please tell me since I'm going crosseyed, do you see anything wrong with this chrono statement? It doesn't seem to be working.
<?PF chrono: week(M); ?>
<?PF chrono: week(M); ?>
Ulrike
17 years ago
17 years ago
I can't say if the responses are working, as I haven't played with the weekday script before, but the format looks correct. And the Sunday script I just added is working. I don't see any difference between what I used and what you put up:
<?PF chrono: week(M); ?>
<?PF chrono: week(M); ?>
ezzer
17 years ago
17 years ago
Thanks, ladies. Could it maybe be a problem with combo script? Some of mine have, for ex:
<?PF chrono: week(M); rem "blah" as "blablah"; ?>
I mean, that SHOULDN'T be a problem as far as I know, but I'm having Monday responses pop up any old day...and my script looks just like that...
<?PF chrono: week(M); rem "blah" as "blablah"; ?>
I mean, that SHOULDN'T be a problem as far as I know, but I'm having Monday responses pop up any old day...and my script looks just like that...
Ulrike
17 years ago
17 years ago
When I need two AI Scripts in the same response, I tend to put them in separate brackets. Mainly because it kept telling me there was an error in my formatting otherwise... But you could try that. *shrugs*
ezzer
17 years ago
17 years ago
Hmmm...Never thought of that. It's so weird though, because I have lots of script strings in one set of brackets, formatted exactly as above, that work just fine...maybe it's something to do with with chrono statements. Anyway, I'll give that a try. Thanks again, Ulrike.
Rykxx
17 years ago
17 years ago
I've had a few problems with this too but I've found that if you put the chrono at the end of the statement it works. ie:
<?PF express:amused; chrono: week(SU); ?>
<?PF express:amused; chrono: week(SU); ?>
ezzer
17 years ago
17 years ago
YAY! (still a pain to go back and change each and every one of those, but)
Woot! That works.
Ty, Rykxx
Woot! That works.
Ty, Rykxx
» More new posts: Doghead's Cosmic Bar