Sending a chat or emote using the agent name?

AI discussion, ideas, and SDK help.
Post Reply
User avatar
SunTzu
Lux Cartographer
Posts: 1586
Joined: Sat Jan 14, 2006 1:48 am
Location: Maryland

Sending a chat or emote using the agent name?

Post by SunTzu » Fri Aug 31, 2007 1:54 pm

For the methods board.sendChat() & board.sendEmote(), in addition to just a string message, you can specify it to use the agent name using LuxAgent sender.

For the life of me, though, I can't figure out what to put as the sender...

User avatar
RandomGuy
Lux Veteran
Posts: 1463
Joined: Mon Mar 05, 2007 12:02 am
Location: Central American Jungle
Contact:

Post by RandomGuy » Fri Aug 31, 2007 2:17 pm

I haven't implemented it yet, but try

board.sendChat("whatever", this);

because your bot should implement the LuxAgent class, that the method is looking for.

User avatar
SunTzu
Lux Cartographer
Posts: 1586
Joined: Sat Jan 14, 2006 1:48 am
Location: Maryland

Post by SunTzu » Fri Aug 31, 2007 2:39 pm

That worked, thanks!

Post Reply