Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Two Agents interacting

1 view
Skip to first unread message

Steven Lord

unread,
Jan 29, 1998, 3:00:00 AM1/29/98
to

How can I get two Agents to interact synchronously? I'm using VB5. If I load
two Agents and try to carry on a "conversation" between the two of them, the
first .speak actions for both happen at the same time.
Is there a workaround for this? Thanks.
Steve Lord

Adam Hooker

unread,
Jan 29, 1998, 3:00:00 AM1/29/98
to

Steven Lord wrote in message ...

You can set up the agents speech to not execute until another action is
complete... the command goes something like Agent1.wait Agent2.speak, and
you can get a good example of it by looking at the code on Microsoft's Agent
page... the main demo where all three of the Agents interact.

Good luck!
Adam

Stephen Travis

unread,
Jan 30, 1998, 3:00:00 AM1/30/98
to

Another good source of information is Argo's Agent InfoSpace at
http://www.argolink.com/agent/devcorner/wtiptech/tip-12-22-97.html

Mike Rauch

unread,
Jan 30, 1998, 3:00:00 AM1/30/98
to

The agent programming manual contains
an entire section on how to do this...
Did you miss it when you read the documentation?
==========================================
Mike Rauch
Cranbury Software Development Center, Inc.
(609)275-0171

mi...@cranbury.com


Steven Lord wrote in message ...
>How can I get two Agents to interact synchronously? I'm using VB5. If I
load
>two Agents and try to carry on a "conversation" between the two of them,
the
>first .speak actions for both happen at the same time.
>Is there a workaround for this? Thanks.

>Steve Lord
>
>

Mike Rauch

unread,
Jan 30, 1998, 3:00:00 AM1/30/98
to
It is at the Microsoft Agent site.
==========================================
Mike Rauch
Cranbury Software Development Center, Inc.
(609)275-0171
mi...@cranbury.com
Mike wrote in message <#uvFZ0YL...@uppssnewspub05.moswest.msn.net>...
Please,
Where does one find this programming manual and documentation?

 

Mike Rauch wrote in message ...

thrint

unread,
Jan 30, 1998, 3:00:00 AM1/30/98
to

Or buy the disk and manual - "Developing for Microsoft Agent" ISBN
1-572321-720-5. $30US at your local Barnes and Noble or equivalent.

Chris Marts

unread,
Feb 6, 1998, 3:00:00 AM2/6/98
to

To do this, you have to set global Request variables... You can't just have
an agent wait for another one to stop something... you have to have the
second agent wait for a "variable" that has the 1st agent talking assigned
to it like:

DIM MerlinRequest

' then... you have Merlin do something and assign it to this request:

Set MerlinRequest = Merlin.Speak ("Hello. I am talking right now.")

' then, you have another agent "wait" until that request is finished and
then speak:

Genie.Wait MerlinRequest
Genie.Speak "Hello. Now I am talking."

That should do it. Then you can reassign the MerlinRequest to his next
sentence and start again... You need to define Request variables for each
character and sometines more than one for each character.

- Chris

0 new messages