Page 1 of 1

Try this Phil

Posted: Fri Aug 07, 2009 10:42 am
by ConvertFromOldNGs
by Philip >> Sun, 9 Jul 2000 4:12:51 GMT

Hmmmm sounds interesting, but the way to get JADE to talk to agent is with a control which I'm still haveing problems with, but I'm trying another way.

Thanks
Phil

Re: Try this Phil

Posted: Fri Aug 07, 2009 10:42 am
by ConvertFromOldNGs
by Rob Wright >> Mon, 13 Nov 2000 22:51:47 GMT

I dont know if you are still wondering about this - but here is some simple code to show using an agent control....I am assuming that you can install the appropriate .acs files for the agents that you are after...this was just a quick knock up I did to show someone about ActiveX - but it may help :)

vars
merlin : IAgentCtlCharacterEx;


begin

//demo of using actors in JADE 5.1.07

create merlin;
agent1.characters.load ("merlin", "c:\windows\msagent\chars\merlin.acs"); merlin:=agent1.characters.character("Merlin");
merlin.show(0);
merlin.speak("Hello there",null);
merlin.moveTo(400,400,1);
//or whatever actions etc take your fancy
end;