The RPG Maker Resource Kit

Other Game Creation => Game Creation General Chat => Topic started by: Cascading Dragon on March 22, 2010, 04:15:28 PM

Title: AI help
Post by: Cascading Dragon on March 22, 2010, 04:15:28 PM
Well I have hit a big road block. I have my battle system up and running, but there are a few glitches. Namely, my allies will heal the opponent and my opponents will attack themselves or each other. So....that being said, I need help.
If anyone has any experience programming, and can help me with this, please do. Once this step is done, I can start programming the graphics in.
Thank you all :D
Title: Re: AI help
Post by: madriel222 on March 22, 2010, 09:11:57 PM
Holy vagueness, Batman!

Because it sounds like you're using a custom system, there are a bunch of questions that need to get answered to get to the root of your problem...

1) What engine are you using?

2) In your battle system, how is the AI supposed to select targets? Show us the code you are using to set that up.

3) Are there any events that could be altering your targeting system in any way?  Might want to check variables and switches that get reused between multiple parts of your system. 

4) What kind of battle system are we dealing with?  Turn based? ABS? ATB?
Title: Re: AI help
Post by: Cascading Dragon on March 23, 2010, 12:26:49 AM
Yea, sorry, I was very sleepy. Was up all night programming. lol
I am using Python, but any examples in any language would help alot.
The AI has "spells" that have a priority. I check if the AI's health is low. If so, and it has a healing spell, it uses it. Else it uses a high priority "spell".
This is a turn based system.
There are no events that could interfere. This is just a battle system, written in Python, not a RPG Maker or Game Maker
Title: Re: AI help
Post by: Sashikinaroji on March 23, 2010, 06:09:02 PM
could it be that your targeting is messed up, making the healing spells "offensive" and the attacks "defensive."

That is to say, your spells and attacks may be set up so that they are targeting the wrong people, offensive attacks may be set up to affect allies and defensive skills may be set up to affect enemies... At least, that is how it looks from a cursory view...

Then again, I have no idea what Python is, so...
Title: Re: AI help
Post by: Cascading Dragon on March 23, 2010, 08:08:25 PM
I fixed that problem awhile ago. lol. I was being stupid then.

Python is similar to Ruby, except more useful, in my opinion