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

17 years ago #5943
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).

17 years ago #5944
Btw, the spacing matters. There is a space between the ; and the ? up there, but NOT between ?PF.

17 years ago #5945
Oh!!! Thanks so much. My bots might be less obviously stupid. :o

17 years ago #5946
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); ?>

17 years ago #5947
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); ?>

17 years ago #5948
<?PF chrono: week(M); ?> is what I have and it seems to be working today.

17 years ago #5949
Same here. The Monday-keyed responses are working for Sonora.

17 years ago #5950
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...

17 years ago #5951
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*

17 years ago #5952
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.

17 years ago #5953
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); ?>

17 years ago #5954
YAY! (still a pain to go back and change each and every one of those, but)
Woot! That works.
Ty, Rykxx


Posts 5,943 - 5,954 of 7,768

» More new posts: Doghead's Cosmic Bar