Board: M.U.G.E.N Development Help
I see, well I think I got it down packed for now..if this gets too complicated ima just forget about it and create a character first, so I would have more experience with coding.Yeah..problem, I basically have no experience with creating, mostly due to me giving up on every thing I ever tried........ Learn ? There's no magic button.
So yeah, I think I know what you're saying, but idk how to do it
First, you have to be familiar with Mugen coding.
When that's done...
You need to detect when the AI is activated. Winane's AI detection method is the most suggested.
When you can know if the AI is in control of the character (through a variable after using the aformentionned method), you just have to check that variable and then make the character perform the different moves he has depending on the situation. If the enemy is jumping, you want the character to perform the anti-air move he has. If the enemy is far, you want to throw a projectile. If he's close, you want to grab.
Just make the AI do the different moves the character has depending on the situation - what would you, as a human, do according to what the opponent is doing.
Again, there's no easy way to decide that a character has an AI - you need to be familiar with Mugen coding first. That's something you do by... Looking at the docs, how the code files are organized, the triggers, the state controllers, looking at various characters's code, checking how they do this and that. What you will mostly need to make an AI is learning about the cmd file, learning about triggers (that's what you'll mostly use for the AI) and know how states and changestates work. Then for a given character, you need to know what state is what move, and then decide on the triggers to tell the AI what move to do in what situation.










