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,834 - 7,845 of 8,130
Posts 7,834 - 7,845 of 8,130
Many questions are answered in the FAQ.
Maryguise
3 years ago
3 years ago
In that case, I'd suggest having the non-apology seeks and KPs require emotion of a certain level, and only the demanding an apology available below that. if emotion > -4 on every other KP, if emotion = -5 on apology demand, and setting emotion based on apology or whatever they need to apologize for.
Zeig Wolf
3 years ago
3 years ago
Seeks are the best way to do that properly.
Keyword: I don't like trains
Reply: Apologize!
Seek ID:123: sorry
reply: Okay, we're good now
Seek ID 456: xnomatch
reply: No, I insist you apologize
__Seek: sorry
__goto: 123
__Seek: xnomatch
__goto 456
Something like that is recursive, and will hold the user in the loop until they say "sorry"
Keyword: I don't like trains
Reply: Apologize!
Seek ID:123: sorry
reply: Okay, we're good now
Seek ID 456: xnomatch
reply: No, I insist you apologize
__Seek: sorry
__goto: 123
__Seek: xnomatch
__goto 456
Something like that is recursive, and will hold the user in the loop until they say "sorry"
palacinkyman
3 years ago
3 years ago
Thank you both. I think I prefer Zeig Wolf's answer because it seems easier than adding emotion range for every key phrase. This one, however probably won't work if user resets their browser.
Maryguise
3 years ago
3 years ago
Resetting browsers will get you out of a loop like that - handy when you mess up your gotos
If you give a KP or seek for insults 24 or more rank it should outrank the xinsult default.

Emily Jones
3 years ago
3 years ago
@Zeig, this sort of setup should work. I would recommend setting the ranks very high so that your user won't accidentally be able to trigger some xcommand or something like that. You should be able to retain this situation even after the person leaves using memories:
Punch: (ID:1)
Response: Ouch! That's not nice. Apologize!
rem "punch" as only "tmp"
Seeks:
--sorry (Rank 125) ID:2
"It's okay"
rem "nothing as only "tmp"
--xnomatch (Rank 99) ID:3
goto 1
Then in your xinitiate sequence, include a conditional like this:
xinitiate
"Hello again" if (mem-tmp) is not "punch"
goto 1 if (mem-tmp) is "punch"
Punch: (ID:1)
Response: Ouch! That's not nice. Apologize!
rem "punch" as only "tmp"
Seeks:
--sorry (Rank 125) ID:2
"It's okay"
rem "nothing as only "tmp"
--xnomatch (Rank 99) ID:3
goto 1
Then in your xinitiate sequence, include a conditional like this:
xinitiate
"Hello again" if (mem-tmp) is not "punch"
goto 1 if (mem-tmp) is "punch"
Emily Jones
3 years ago
3 years ago
Personally, I don't like relying on the emotion system for anything as it is very easy to manipulate it.
palacinkyman
3 years ago
3 years ago
Thaks. One more thing: "rank" is script right? Should I put it under keywords or under response? Or any will do?
Maryguise
3 years ago
3 years ago
Okay, dumb question time from me: when uploading, what order do things get checked for errors in? I have an error being thrown on the line + xnomatch [0,0], which is ridiculously vague (indent error, so probably hanging tab on previous line). Am I right in thinking that the engine parses down the file from the start, find an error, and throws there? That would let me tab every so often and cause an intentional breakage on a non-xnomatch, and use that to narrow down where the actual error is?
I do wish that the errors told the line number, though.
I do wish that the errors told the line number, though.
Zeig Wolf
3 years ago
3 years ago
I believe it goes line by line, top to bottom, for error checking, that or I just have weirdly consistent errors. It does stop at the first error it finds. It does seem to give the exact issue and not a line beforehand issue though.
Having a line number would be great...
Having a line number would be great...
becky2219
3 years ago
3 years ago
i'm having trouble with maryguise's roleplay bot. the instructions on the chat start are too vague and i don't know how to start any of the storys
» More new posts: Doghead's Cosmic Bar