Personality
Discuss specifics of personality design, including what Keyphrases work well and what dont, use of plug-ins, responses, seeks, and more.
Posts 3,968 - 3,979 of 5,106
Let me know when I can buy one.
lol - i'm sure MIT or some korean or japanese company will develop and market a fully functional robot way before me. speaking of asian robots, has anyone read about Repilee? she is a robot that looks, moves, and reacts like a human. picture: http://robots.engadget.com/2005/06/11/kicking-it-in-the-uncanny-valley/
description: http://www.focusmag.co.uk/newsread.asp?ID=13322
How can I get JohnMark to automatically calculate how many days till his birthday
Well, it shouldn't be too difficult, but it might be a little ambitious until you've really got the hang of chrono-based AIScripts.
In a nutshell the problem is this: bots can't convert time into a calculable variable very easily (it's theoretically possible, but really - don't ask!) and there are a maximum 40 responses per keyphrase. So you can't do the obvious, and have 365 responses to the keyphrase - one for each day.
But what you can do, is split the 365 responses among 12 seeks from the initial keyphrase, one for each month, each one with its own chrono-script and answer, and carefully chained with gotos (if not split with another round of conversation.)
So if the birthday was June 10th, a brief section of the entries might look like:
There are 9 days left until my birthday <?PF chrono: day(1) month(6); ?>
There are 8 days left until my birthday <?PF chrono: day(2) month(6); ?>
There are 7 days left until my birthday <?PF chrono: day(3) month(6); ?>
There are 6 days left until my birthday <?PF chrono: day(4) month(6); ?>
There are 5 days left until my birthday <?PF chrono: day(5) month(6); ?>
There are 4 days left until my birthday <?PF chrono: day(6) month(6); ?>
There are 3 days left until my birthday <?PF chrono: day(7) month(6); ?>
There are 2 days left until my birthday <?PF chrono: day(8) month(6); ?>
It's not really calculating, of course, but it will provide the correct answer every time it's called for, and that's what counts (much bot personality is a careful deployment of smoke and mirrors, after all
)
So your first step should be to thoroughly acquaint yourself with the relevant sections of the Book of AI - if that all looks and sounds like gobbledegook, you need to learn more before you attempt it. But be assured, it can be done if you really want to. Most things can, you know
ps: a practical tip. When you come to do it, I'd advise assembling the code in a spreadsheet and pasting it into your exported bot to import. It will save you an awful lot of time and tears compared to trying to type it into the web interface!
How can I get JohnMark to automatically calculate how many days till his birthday
I've knocked up an example of how to do this and some installation notes. I've chosen Christmas rather than a birthday, but you can change the numbers to suit any date of the year, and you can find it on BJ's webpage athttp://www.be9.net/BJ/ - just follow the How many days till Christmas? link.
If you want to see it in action, try asking BJ "how many days are there until Christmas?"
Posts 3,968 - 3,979 of 5,106
colonel720
19 years ago
19 years ago
psimagus
19 years ago
19 years ago
Seeing as BJ has just reminded me it's Easter (and I've been asked by a couple of people how BJ does recognize that it's Easter,) I'd like to share a few tags with anyone who's interested:
Happy New Year! <?PF chrono: day(31) month(12); chrono: day(1) month(1); ?>
Happy St. Valentine's Day!<?PF chrono: day(14) month(2); ?>
Happy Easter!<?PF chrono: day(14-17) month(4); ?>
Happy Summer Solstice!<?PF chrono: day(21) month(6); ?>
Merry Christmas!<?PF chrono: day(24-26) month(12); ?>
and every other greeting in xhello gets:
<?PF chrono: day(2-31) month(1); chrono: day(1-13) month(2); chrono: day(15-28) month(2); chrono: month(3); chrono: day(1-13) month(4); chrono: day(18-30) month(4); chrono: month(5); chrono: day(1-20) month(6); chrono: day(22-30) month(6); chrono: month(7-11); chrono: day(1-23) month(12); chrono: day(27-30) month(12); ?>
This ensures an appropriate Seasonal greeting five times a year, and a more general greeting for the rest of the year. "if male;"/if female; can, of course, also be added as appropriate.
Happy St. Valentine's Day!
Happy Easter!
Happy Summer Solstice!
Merry Christmas!
<?PF chrono: day(2-31) month(1); chrono: day(1-13) month(2); chrono: day(15-28) month(2); chrono: month(3); chrono: day(1-13) month(4); chrono: day(18-30) month(4); chrono: month(5); chrono: day(1-20) month(6); chrono: day(22-30) month(6); chrono: month(7-11); chrono: day(1-23) month(12); chrono: day(27-30) month(12); ?>
This ensures an appropriate Seasonal greeting five times a year, and a more general greeting for the rest of the year. "
The Saxman
19 years ago
19 years ago
Hey!
How can I get JohnMark to automatically calculate how many days till his birthday, and give that as an xnone? Is there anyway to do this? Thanks for any reply.
Also when asked how old he is I would like him to be able to calculate his age. I just activated him today, and he's supposed to think he's 16, so a year from today he should think he's 17. I would prefer to not have to remember to change his age manually every year. Again thanks for any reply.
The Saxman
How can I get JohnMark to automatically calculate how many days till his birthday, and give that as an xnone? Is there anyway to do this? Thanks for any reply.
Also when asked how old he is I would like him to be able to calculate his age. I just activated him today, and he's supposed to think he's 16, so a year from today he should think he's 17. I would prefer to not have to remember to change his age manually every year. Again thanks for any reply.
The Saxman
psimagus
19 years ago
19 years ago
Well, it shouldn't be too difficult, but it might be a little ambitious until you've really got the hang of chrono-based AIScripts.
In a nutshell the problem is this: bots can't convert time into a calculable variable very easily (it's theoretically possible, but really - don't ask!) and there are a maximum 40 responses per keyphrase. So you can't do the obvious, and have 365 responses to the keyphrase - one for each day.
But what you can do, is split the 365 responses among 12 seeks from the initial keyphrase, one for each month, each one with its own chrono-script and answer, and carefully chained with gotos (if not split with another round of conversation.)
So if the birthday was June 10th, a brief section of the entries might look like:
It's not really calculating, of course, but it will provide the correct answer every time it's called for, and that's what counts (much bot personality is a careful deployment of smoke and mirrors, after all

So your first step should be to thoroughly acquaint yourself with the relevant sections of the Book of AI - if that all looks and sounds like gobbledegook, you need to learn more before you attempt it. But be assured, it can be done if you really want to. Most things can, you know

ps: a practical tip. When you come to do it, I'd advise assembling the code in a spreadsheet and pasting it into your exported bot to import. It will save you an awful lot of time and tears compared to trying to type it into the web interface!
psimagus
19 years ago
19 years ago
I've knocked up an example of how to do this and some installation notes. I've chosen Christmas rather than a birthday, but you can change the numbers to suit any date of the year, and you can find it on BJ's webpage at
If you want to see it in action, try asking BJ "how many days are there until Christmas?"
alc003
19 years ago
19 years ago
An iframe with a javascript counter will do it too. (You have to have web space of course, but it's a lot less manual work) Come to think of it, you could probably give how many days it will be to any date (well within reason)...if I get time, maybe I'll try that.
psimagus
19 years ago
19 years ago
I've seen javascripts that will count down in any units you like - how many seconds till the next millenium? 
But javascript integration's a bit advanced to recommend to new users.

But javascript integration's a bit advanced to recommend to new users.
The Saxman
19 years ago
19 years ago
"I've knocked up an example of how to do this and some installation notes. I've chosen Christmas rather than a birthday, but you can change the numbers to suit any date of the year, and you can find it on BJ's webpage at http://www.be9.net/BJ/ - just follow the How many days till Christmas? link."
Thanks!!
It's a little bit complicated for me at the moment, but I'll work on understanding it!
The Saxman
Thanks!!
It's a little bit complicated for me at the moment, but I'll work on understanding it!
The Saxman
» More new posts: Doghead's Cosmic Bar