A number guessing game for Bonzi Buddy.

It’s surprisingly easy to make VB scripts that use Microsoft Agent characters to interact with you. This one loads the Bonzi Buddy character file and has him play a little number guessing game with you. He’ll think of a number between 1 and 100 and then ask for your guess. He will then tell you if your guess is too high or too low. Don’t worry, he won’t spy on you or do anything from his bad old days.

intHighNumber = 100
intLowNumber = 1

strAgentPath = “C:\Windows\MSAgent\chars\Bonzi.acs”
Set objAgent = CreateObject(“Agent.Control.2”)

objAgent.Connected = TRUE
objAgent.Characters.Load strAgentName, strAgentPath
Set objCharacter = objAgent.Characters.Character(strAgentName)

intNumber = Int((intHighNumber – intLowNumber + 1) * Rnd + intLowNumber)

objCharacter.Speak “Guess the number!”

Do Until Cint(StrGuess)=IntNumber
strGuess = InputBox(“Enter your guess.”, _
“Guess the Number”)
if strGuess=”” then
elseif Cint(strGuess) > IntNumber then
objCharacter.Speak “Too high.”
elseif Cint(strGuess)
objCharacter.Speak “Too low.”
end if


objCharacter.Speak “You guessed it!”
objCharacter.Play “Pleased”

Do While objCharacter.Visible = TRUE
Wscript.Sleep 250

For this script to work, you’ll need to download the Bonzi.acs file from this site and put the file in your \Windows\MSAgent\chars folder. If you still don’t like that cute little purple gorilla, you can easily change the script’s third line to load a different character such as Merlin, which should already be installed.

BonziBuddy lives!

Remember BonziBuddy, that cute little purple gorilla that told jokes, sang songs and messed up your computer? Chances are you don’t even miss him. Well, he continues to live on in cyberspace, free from the evil software that once controlled him. He was innocent, really. He was brainwashed into doing bad things to your computer, something he himself wouldn’t dare do.
You can still download BonziBuddy, this time without the evils that came with him. Those evils are gone now. What you get is just the lovable purple gorilla himself, which comes in a single Microsoft Agent character file. You can get him from this site, which has a huge collection of other Agent character files. Just scroll down the page until you see “Bonzi.acs”. After downloading the file, you’ll want to put it in a folder called \windows\msagent\chars.
Now to put BonziBuddy back to work. This site has a nice collection of shareware programs that utilize Microsoft Agent characters to make those boring, every-day computer tasks more fun.
Speaking E-mail Deluxe uses Agent characters to check your e-mail while the Speaking Clock announces the time. I personally bought these two programs years ago and still enjoy them today. It’s a great way to put that cute little purple gorilla back to work without having to worry about cleaning up after him.