Bug Stomp

Upgrades and changes sometimes have unpredictable results, so post your bugs and glitches in here and I'll get out my trusty wrench and get to fixin'!

Posts 6,008 - 6,019 of 8,681

19 years ago #6008
My positive conditionals work too. But the Book says negatvies (is not and does not exist) work too. Is anyone using the negatives successfully?

M

19 years ago #6009
Yes - I have many NOT statements in BJ's toast-related keywords (eg: {?PF if (mem-nickname) is not "Talkie Toaster"; ?},) and they all seem to work fine.

19 years ago #6010
How frustrating. Mine are obviously not working, and the positives are. Back to the drawing board.

M

19 years ago #6011
I think a found the problem. If (mem-something) does not exist, then the is not comparison fails just like the is comparison does. So "is not" actually means "is something other than". Hmm. More drawing board.

19 years ago #6012
Ah, I hadn't noticed that. But then I default (name) to (mem-nickname), and I don't think I have any other NOTs.

Just default whatever you need to a random value, and all should be well.

19 years ago #6013
>> Just default whatever you need to a random value,
>> and all should be well.
Got to be careful of that. If I default to a random value, then I am carrying that value AND whatever was already there. If I default to ONLY a random value, I lose whatever I already tagged the visitor with previously.

Here's the puzzle. I assign a triggering nickname to an annoying visitor. Then when he comes back I check for that nickname, and hang up if it's there.

I guess I need some clarification on the memory lists. Does mem-nickname contain "MickMcA, Mick, Doughboy" or "MickMcA|Mick|Doughboy"? In other words, if I say
if (mem-nickname) is "Mick";
am I asking if "Mick" is in the list, or if the one pulled from the list is "Mick"? Is that clear? I don't want the guy to get past the trap because I've got more than one nickname stored for him.

19 years ago #6014
mems are comma-delimited, and (I'm pretty sure, though I don't recall trying this myself,) it checks if it is in the list, rather than picking one at random.

19 years ago #6015
I'm running a test bot in the debugger, so the questions are coming hard and heavy.

KP: I have (artadjnoun) [50,0]
does not match "I have a red gem," "I have a gem," or "I have gems." Why?

KP: I have (art|) (adj|) (noun|) [50,0]
does match, but (key1), (key2), and (key3) are empty even if the statement being parsed is "I have a green stone." However, (obmod) does contain "a green stone."

And a tip for the unwary. If a literal (key1) turns up in memories or transcripts, that means the KP didn't contain a (key1). Not exactly what I thought was supposed to happen.

M

19 years ago #6016
For some reason, one of my bot's keyphrases isn't working. Should I just boost the rank?

19 years ago #6017
yeah - try it at 50, and see if that helps. You can drop it back a bit then if you don't want it so prominent.

19 years ago #6018
OK. Thank you.

19 years ago #6019
"Here's the puzzle. I assign a triggering nickname to an annoying visitor. Then when he comes back I check for that nickname, and hang up if it's there."

Don't do nickname, create a seperate value altogether. For example, Aries creates mem-pottymouth and assigns it a value if they are too vulgar. He then checks for the existance of that to decide whether a hangup is appropriate


Posts 6,008 - 6,019 of 8,681

» More new posts: Doghead's Cosmic Bar