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 7,246 - 7,257 of 8,127
Many questions are answered in the FAQ.


5 years ago #7246
this is what i was doing.

if variable hello does not have pioyu in it
respond with "what is your reason for staying away so long" with the code.
keyphrase=hello *
chrono: week(M);
if (mem-hello) is "pioyu"


i am storing the memory in a variable hello when it is any of the days mondays thru wednesdays
with the code
keyphrase=hello *
chrono: week(TW);
remember (key1) as only "hello"


i am erasing the memory in a variable hello when it is any of the days thursday and friday
with the code
keyphrase=goodbye *
chrono: week(RF);
forget "pioyu" from "hello"

5 years ago #7247
Huh... cool. Let us all know how it works out.

5 years ago #7248
i do not know how to use the forget part in
in the book of ai.i keep getting a error with this script.
chrono: week(RF);
forget "pioyu" from "hello"

5 years ago #7249
I just tried using Forget myself and I couldn't get it to work either.

EDIT:

Holy... crap... I have been using the default command all wrong for years. And I've been giving wrong advice to people when it comes to Default as well... I just now discovered this. Don't know whether to laugh or cry.



5 years ago #7250
but that does answer my question of how to use the forget command.

5 years ago #7251
but that does not answer my question of how to use the forget command.

5 years ago #7252
Yeah, like I said I wasn't able to get the Forget command to work either.

Sorry.

Instead of forgetting the memory could you give it a different value?
Using:

rem "NotPioyu" as only "hello"

if (mem-hello) is not "pioyu"


5 years ago #7253
Hello all

5 years ago #7254
hello warrior25.
Nathan s would that mean I would I have to type out hello NotPioyu or just hello pioyu for it to work.

5 years ago #7255
I'm shooting from the hip here without much testing. 'Forget" only works in the Keyphrase section, not the response section. So you'll have to forget it in the keyphrase script area, then add it back in in the response area for the correct days.

5 years ago #7256
Just confirmed. Zeig Wolf is correct

5 years ago #7257
Is there a way to make an if/or statement? Something like this, for example:
if (mem-variable1) is "1" or if (mem-variable2) is "1"


Posts 7,246 - 7,257 of 8,127

» More new posts: Doghead's Cosmic Bar