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
Posts 6,008 - 6,019 of 8,681
MickMcA
19 years ago
19 years ago
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
M
psimagus
19 years ago
19 years ago
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.
MickMcA
19 years ago
19 years ago
How frustrating. Mine are obviously not working, and the positives are. Back to the drawing board.
M
M
MickMcA
19 years ago
19 years ago
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.
psimagus
19 years ago
19 years ago
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.
Just default whatever you need to a random value, and all should be well.
MickMcA
19 years ago
19 years ago
>> 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.
>> 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.
psimagus
19 years ago
19 years ago
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.
MickMcA
19 years ago
19 years ago
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
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
Mr.W.
19 years ago
19 years ago
For some reason, one of my bot's keyphrases isn't working. Should I just boost the rank?
psimagus
19 years ago
19 years ago
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.
FengShuiGorilla
19 years ago
19 years ago
"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
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
» More new posts: Doghead's Cosmic Bar