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 6,137 - 6,148 of 7,769		
		
		
		
		
			
				
				
	
		
			
			
			
		
				
									
			
		
			
				
				
	
		
			
			
			
		
				
									
			
		
			
				
				
	
		
			
			
			
		
				
									
			
		
			
				
				
	
		
			
			
			
		
				
									
			
		
			
				
				
	
		
			
			
			
		
				
									
			
		
			
				
				
	
		
			
			
			
		
				
									
			
		
			
				
				
	
		
			
			
			
		
				
									
			
		
			
				
				
	
		
			
			
			
		
				
									
			
		
			
		
			
				
				
	
		
			
			
			
		
				
									
			
		
			
				
				
	
		
			
			
			
		
				
									
			
		
			
		
		
	
	
			Posts 6,137 - 6,148 of 7,769		
		
		
	
	
	
	
				Ulrike				
17 years ago
		17 years ago
			Try putting an if in there:
<?PF if "(key1)" is not "you"; ?>
I'm not sure if it will work, though...since I've never tried to test on (key1).
	<?PF if "(key1)" is not "you"; ?>
I'm not sure if it will work, though...since I've never tried to test on (key1).
				Rykxx				
17 years ago
		17 years ago
			Sorry to be the bearer of bad news but you can only do conditional statements with (mem-variablename), you can't use <?PF if "(key1)" is not "you"; ?>
You can save (key1) as "temp" and then refer back to it:
Bot: What colour hair do you have?
seek: (black|red|brown|blonde)
<?PF rem "key1" as only "temp"; ?>
 Bot:  Do blondes really have more fun? <?PF if (mem-temp) is "blonde"; ?>
or
Are you naturally brunette? <?PF if (mem-temp) is "brown"; ?>
etc....      
	You can save (key1) as "temp" and then refer back to it:
<?PF rem "key1" as only "temp"; ?>
or
Are you naturally brunette? <?PF if (mem-temp) is "brown"; ?>
etc....
				The Miller				
17 years ago
		17 years ago
			LOL Rykxx  Ulrike, thanks, too.  I had put that in first because I still think in the lizard part of my brain that you have to say "if" in a conditional.
  Ulrike, thanks, too.  I had put that in first because I still think in the lizard part of my brain that you have to say "if" in a conditional.
I'll try that. If it doesn't work, I can fix it another, clunkier way.
At any rate, right now my bots' main problems aren't technical, but technical know-how is kind of necessary, too.
	 Ulrike, thanks, too.  I had put that in first because I still think in the lizard part of my brain that you have to say "if" in a conditional.
  Ulrike, thanks, too.  I had put that in first because I still think in the lizard part of my brain that you have to say "if" in a conditional.I'll try that. If it doesn't work, I can fix it another, clunkier way.
At any rate, right now my bots' main problems aren't technical, but technical know-how is kind of necessary, too.
				SavPixie				
17 years ago
		17 years ago
			how can i change the rank of a seek separately from the keyphrase? it would come in really handy for somethings, including xnomatches that sometimes come up as compliments.		
	
				Ulrike				
17 years ago
		17 years ago
			Right now, there's no way to rank seeks...  except by making the phrase longer, so that the AI Engine automatically ranks it higher.  Not always feasible.		
	
				The Miller				
17 years ago
		17 years ago
			Entire conversation:
madeline: Hello.
Unhinged: Sorry, there are no valid Responses for me to choose from.
Huh?
	madeline: Hello.
Unhinged: Sorry, there are no valid Responses for me to choose from.
Huh?
				SavPixie				
17 years ago
		17 years ago
			try making sure you have responses that aren't conditional for anything for every emotional state... that happened to me once with cjones. if it's not that it's beyond my depth though.		
	
				The Clerk				
17 years ago
		17 years ago
			Yep (on behalf of The Miller).  I believe I already asked that question once and forgot.  Sorry and thanks.		
	
				The Clerk				
17 years ago
		17 years ago
			Did I just try too hard here?  I got "Dad(dy)" out of this.  Any smarter person know what's wrong with this sentence?  I mean, I can put the things in there one by one, but I thought I knew what I was doing.
Well, isn't it true? I told him how American education was terrible and (you|(botlandcharacters)|Ma(|((|m|mm)a))|Pa(|w|pa)|Dad(|dy)|Mom(|my|ther|ma)|The Queen|(USpresidents)) thought mine out to be different.
	Well, isn't it true? I told him how American education was terrible and (you|(botlandcharacters)|Ma(|((|m|mm)a))|Pa(|w|pa)|Dad(|dy)|Mom(|my|ther|ma)|The Queen|(USpresidents)) thought mine out to be different.
				Ulrike				
17 years ago
		17 years ago
			The problem is that you can't nest local plugins.  At least, not without getting weird results.  You can use plugins that you've defined elsewhere.
So (you|(botlandcharacters)|Ma(ma_ending)|Pa(pa_ending)|Dad(dad_ending)), etc, would work after you defined those plugins, but as soon as you start nesting anything else in the parentheses, things go wonky.
Like I wouldn't want to do (some(thing|one)|any(thing|one)). I've got nested parentheses there.
	So (you|(botlandcharacters)|Ma(ma_ending)|Pa(pa_ending)|Dad(dad_ending)), etc, would work after you defined those plugins, but as soon as you start nesting anything else in the parentheses, things go wonky.
Like I wouldn't want to do (some(thing|one)|any(thing|one)). I've got nested parentheses there.
» More new posts: Doghead's Cosmic Bar





