Infinity MUGEN Team

IMT Main => M.U.G.E.N Help => Topic started by: STNeish on July 29, 2018, 01:34:30 AM

Title: Wondering about AI
Post by: STNeish on July 29, 2018, 01:34:30 AM
I've been building a roster of characters, and many of them are downright incredible... but nearly unplayable.  Even at lowest level in the first match of the game, they will blitz me before I can even move, bounce me into the air and endlessly juggle me until I'm dead, or do 1232093820982309823 move combos until I'm dead, and there's no way to fight back (I honestly don't know how anyone can enjoy playing against characters like this).

It's just not any fun.

What I wanted to know is two things.

First, is there a way to take away the custom AI of such characters, so they use the default MUGEN AI?
Second, is there a way to make the default AI a BIT better?  As it is, opponents are either laughably weak, or unreasonably impossible.

Any thoughts or advice would be welcome.
Title: Re: Wondering about AI
Post by: STNeish on August 22, 2018, 08:39:04 PM
Been about a month, but no replies.
I'll bump this question this once, in case anyone can offer some advice.

 >:(
Title: Re: Wondering about AI
Post by: O Ilusionista on August 22, 2018, 09:31:03 PM
Depends on how the character was coded and which version it was coded for.
If its a Mugen 1.0 chracter, you can look for the trigger "AiLevel" and disable it.
But needs some knowledge about how to code for Mugen.

About the defautl AI, no. You would need to code a custom AI for that.
Title: Re: Wondering about AI
Post by: mulambo on August 24, 2018, 01:51:58 PM
beside that suggestion above, you can lurk into the char's CMD and if that char uses winane's AI method, you can   remove any parts of the CMD code like:

 
Code: [Select]

;-| AI |------------------------------------------------------
[Command]
name = "CPU1"
command = U, D, F, U, D, F
time = 0

[Command]
name = "CPU2"
command = U, B, F, U, D, F
time = 0

[Command]
name = "CPU3"
command = U, D, D, U, D, F
time = 0

[Command]
name = "CPU4"
command = U, F, U, B, U, D, F
time = 0

[Command]
name = "CPU5"
command = B, B, B, U, B, U, D, F
time = 0

[Command]
name = "CPU6"
command = U, D, B, U, B, U, D, F
time = 0

[Command]
name = "CPU7"
command = F, F, B, U, B, U, D, F
time = 0

[Command]
name = "CPU8"
command = U, D, U, U, B, U, D, F
time = 0

[Command]
name = "CPU9"
command = F, B, B, U, B, U, D, F
time = 0

[Command]
name = "CPU10"
command = F, F, B, B, U, B, U, D, F
time = 0

and

Code: [Select]

[State -1, Activate AI]
type = Varset
triggerall = var(59) != 1
trigger1 = command = "CPU1"
trigger2 = command = "CPU2"
trigger3 = command = "CPU3"
trigger4 = command = "CPU4"
trigger5 = command = "CPU5"
trigger6 = command = "CPU6"
trigger7 = command = "CPU7"
trigger8 = command = "CPU8"
trigger9 = command = "CPU9"
trigger10 = command = "CPU10"
v = 59
value = 1

Then obviously erase all the controllers like, example:

Code: [Select]
;ATTACKS
[State -1,PUNCH]
type = ChangeState
triggerall = statetype = S
[b]triggerall = (roundstate = 2) && (var(59) != 0)[/b] ;<---- this trigger here means this is an AI controller
trigger1 = random = [0,1300]
trigger1 = p2movetype != A
trigger1 = p2bodydist x <=20                   
trigger1 = statetype =S
value = 200
trigger1 = ctrl = 1
trigger1 = time = 0

Just make a backup before doing it, though.

If it's using different methods, I don't know how to help you.

Or else, you can make those chars weaker by just editing their [Data] values (from their CNS file).
SimplePortal 2.3.5 © 2008-2012, SimplePortal