YesNoOk
avatar

help with AI coding -- Helper activation ??? (Read 288 times)

Started by Zodiac Uchiha, October 22, 2010, 06:28:05 pm
Share this topic:
help with AI coding -- Helper activation ???
#1  October 22, 2010, 06:28:05 pm
  • **
    • Germany
hi there !
i am currently learning how to code AI

i understood the activation of the AI variable. correct me pls if i am wrong.

1. define impossible commands in the command definition. i will do 50 - 70 (at the start of the CMD)
2. under this , you write a varset containing all the commands from above as triggers. and setting a variable from 0 - 59 to any value i wish.
3. in State Entry, i copy the movestates and add the trigger : triggerall = var(59) > 0. thats to say Mugen that the AI is active.

but what i dont understand is the following :
i saw another method. what is an AI helper and how does it work ?
how is the state -3 connected to the variable and helper activation ?
are there other things i need to know ?
Re: help with AI coding -- Helper activation ???
#2  October 22, 2010, 07:52:29 pm
  • ***
  • 見ろ! これが執念の力だ!
    • Somalia
About AI that is coded in statedef -3. I saw different authors code in -3 some chars and specific attacks and moveset's.
Based on that your character's AI knows how x char is going to attack and react and from what distance and what type of attack will he use, and how x char will guard against certain attacks.
Eg: char x is gonna attack with a low kick. Reaction: char y will guard low.
char x is gonna use a super move. Reaction: char y is gonna guard it at first, and the moment a chance appears, he is gonna counter char x.
何故諦める必要がある? 何を迷うことがある奪い取れ。今は悪魔が微笑む時代なんだ。
Re: help with AI coding -- Helper activation ???
#3  October 22, 2010, 08:23:06 pm
  • **
    • Germany
i see. yes that makes sense indeed.

does anyone of you know a good tutorial where all possibilities are explained well ?
that would be much of help for me. then i could read it, and make my questions more precise and write them here in this thread again. until now, i only found the variable thing. but i already understood that. now i have to learn other things that can be done. for example that thing lordmike mentioned.
Re: help with AI coding -- Helper activation ???
#4  October 22, 2010, 10:41:11 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
This is in the code library. Winane's method is an everything to make the activation faster.

Of course if you use 1.0 you can just use the ailevel trigger and not worry about any of it.


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: help with AI coding -- Helper activation ???
#5  October 22, 2010, 10:43:22 pm
  • **
    • Germany
yes i know . with that trigger its very easy. but i wanna know the other methods , too in order to make my chars work in both winmugen plus and 1.0

but thx for the advice. i will take a look on winanes tut.