Virtual Humans Forum
Virtual Humans Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Virtual Humans
Partner website:
Chatbots.org
 All Forums
 Virtual Humans
 Programming
 Ramdonizer
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

kickem
Curious Member



USA
1 Posts

Posted - Feb 11 2012 :  11:38:39  Show Profile
Question....Can anyone tell me how to program my Kari to randomly answer a question. I understand the "I Say You Say function," but I am looking to program her randomly with %'s.
Example: May I Leave?
Kari answers (yes 70% of the time, no 30% of the time)
I appreciate any programming help.

mikmoth
Moderator



2010 Posts

Posted - Feb 12 2012 :  01:51:18  Show Profile  Visit mikmoth's Homepage  Reply with Quote
This sounds like a cool advanced feature to include in the ISayUSay plugin for the future.

What you can do now is not use the ISayUSay plugin but use the regular engine. Teach her things like this for example:

The question is: What are you thinking about?

Then teach her this:

You are thinking about the beach.
You are thinking about holding my hand.
You are thinking about kissing me.
You are thinking about your Ai mind.
You are thinking about our relationship.
etc.

Type it in like that so she learns it. Then when you ask, What are you thinking? any of those might come up: I am thiking about kissing you.

It's worth a try anyway.

Cya.

 http://lhandslide.com
Don't be afraid of your own holodeck. A dream by day, a dream by night.
Go to Top of Page

HologenicKid
Moderator



USA
31 Posts

Posted - Mar 23 2012 :  02:32:32  Show Profile
asuming that you can get in to the code, you might be able to corolate with the time. for example,
10:37=1037, is an odd number so that could be a no.
4:22=422, even, so yes.

Or you could go further and multiply the time by pi, and see what it comes up with. For example,
11:36=1136 x pi= 3567(.04) the last whole number is 7 so no.

not exactly percents but you will defenitly will get a random answer.

HologenicMan's Son
"Smile. It makes everyone wonder what your up to"
-unknown
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Virtual Humans Forum © V.R.Consulting Go To Top Of Page
This page was generated in 0.05 seconds. Snitz Forums 2000