YesNoOk
avatar

AI Making tutorial? (Read 4987 times)

Started by Jazriel, November 14, 2007, 05:52:44 pm
Share this topic:
AI Making tutorial?
#1  November 14, 2007, 05:52:44 pm
  • avatar
  • *
Is there one? And if AI is labourious to make, has anyone made an updated KFM AI? I'm going to make every fighter fight KFM to balance them but his AI's a bit weak.
Re: AI Making tutorial?
#2  November 14, 2007, 07:52:21 pm
  • ****
  • Coming Soon?
Go to the home page and click on Winane's button pretty sure he has one there...hell I think he's the one responsible for AI's existing at all
Latest Yoshi alpha ready for feedback Aug 15th check here for details...
Re: AI Making tutorial?
#3  November 14, 2007, 08:49:17 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Winanes is about activating it. Not making it work.

Problem is an AI tutorial just can't be all encompassing. We can tell you how to turn it on, and how to make it work for a couple of move types. As every character is different AI is unique on a per character basis. Not everyone uses state 1000 for a projectile for example.

AI works on the trigger random mostly. You then set up really specific circumstances for the CPU with a var set to use this move. You can get the character to play like the game this way but it will take some time.

Here's an example of custom AI activating an anti air move

[state -3]
type = changestate
triggerall = var(1) = 1 && statetype = S
trigger1 = p2bodydist X< 50 && ctrl
trigger1 = p2dist Y< 0 && random < 100
value = 1000

so 10% of the time (that's quite a lot in mugen terms) if p2 is near to you and above you, while you have control and are in a standing state, you'll use your anti air


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

hjk

Re: AI Making tutorial?
#4  November 14, 2007, 09:50:02 pm
  • ****
  • Watch my fro grow as you go, go, go, go, go.
    • Afghanistan
And if AI is labourious to make, has anyone made an updated KFM AI? I'm going to make every fighter fight KFM to balance them but his AI's a bit weak.

That depends on what kind of KFM.

Luis made an edited KFM ith AI.
Winane made some halfish KFM AIs.
There are some others that I can't remember  :-\


Making AIs sucks so much ass... unless you're going to half ass them.
Otherwise it's long, it's annoying, it sucks, it takes forever, and you'll constantly be updating it millions of times after you think you're done :omg: :omg:  :omg:
LOL, Caddie's the man!! ;)

I'm as real as the runnin, I just happen to rap, Nigaas London, Japan, and i'm scared of dat tap.

I suggest extending my banning, cuz when I come back, it's gonna be hell. You think I was annoying before, oh man, it's on now :)
hjk vs. 99% of MFG. I will win.

RIP Poo Bear Tell my Dead Homie isson, for the year my partner.
Last Edit: November 14, 2007, 09:57:43 pm by Tee Hee Hee
Re: AI Making tutorial?
#5  November 14, 2007, 09:58:45 pm
  • avatar
  • *
And if AI is labourious to make, has anyone made an updated KFM AI? I'm going to make every fighter fight KFM to balance them but his AI's a bit weak.

That depends on what kind of KFM.

Luis made an edited KFM ith AI.
Winane made some halfish KFM AIs.
There are some others that I can't remember  :-\


Making AIs sucks so much ass... unless you're going to half ass them.
Otherwise it's long, it's annoying, it sucks, it takes forever, and you'll constantly be updating it millions of times after you think you're done :omg: :omg:  :omg:

Just an updated AI. I don't want a modified KFM, I just want improved AI.
Re: AI Making tutorial?
#6  November 14, 2007, 10:43:25 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Default KFM has mugen ai, which = random moves and button presses.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: AI Making tutorial?
#7  November 15, 2007, 03:46:46 pm
  • ***
  • I never really was on your side.
    • www.mugenguild.com/~davidgee
Um yeah, KFM with improved AI = a modified KFM. The custom AI is just scripting that forces a computer-controlled character to do what the programmer tells them to do. Like:

IF someone is trying to jump kick you THEN anti-air them.
IF you hit someone THEN follow up with a 10 hit combo.