Author Topic: Adding AI's to minigames.  (Read 1580 times)

How would you add an AiPlayer to a mingame, I tried AddMember, no luck.

I don't believe AIPlayers have a client object.  You'll need to create a fake one, and then addMember should work.

Okay, I'll try that.

Doesn't work or I was probably doing it wrong.
« Last Edit: November 07, 2007, 12:24:35 PM by MrPickle »

Code: [Select]
%bot.client = %bot;
%bot.minigame = MINIGAME ID;

should work in most situations. You could also setShapeName etc so it looks like it is part of the minigame.


Code: [Select]
%bot.client = %bot;
%bot.minigame = MINIGAME ID;

should work in most situations. You could also setShapeName etc so it looks like it is part of the minigame.

Okay, I'll try that, i was just getting a random number  and doing %bot.client = RANDOM NUMBER

Lol, no.  It has to be able to call a valid object.

Well, You know, I'm not as good as you guys =D

We all start somewhere.

Like me. I only sort of understand %bot.client = %bot =P

Doesn't work, they're taking no damage.

Done the minigame thing too?

(%bot.minigame = %client.minigame)

Yes.

Code: [Select]
if(isObject($Mini)){
%bot.minigame = $Mini;
}
« Last Edit: November 07, 2007, 12:59:44 PM by MrPickle »

Hmm.  Try this:

Code: [Select]
%bot.client.minigame = $RPGMini;