ia doesn t use power charge on ikemen with a lot of ancient char

Started by chuiaumax, January 14, 2026, 07:53:35 PM

Previous topic - Next topic

chuiaumax

hi,
I notice that the ia char doesn t power charge on ikemen (watch mode , arcade ect...) while he was doing it in mugen (the match look like very different that create less powerfull attack ) . This happens with almost all my old characters (20/30 char tested ) while char more recent doesn t have that problem .

so if someone know why and how to resolve that would be cool.

i ve found a a starting point for a solution when i put this code in comand state -1 :

[State -1, Power Charge]
type = ChangeState
value = 730     
triggerall = ailevel
triggerall = roundstate = 2
triggerall = power < 3000
triggerall = statetype != A
triggerall = ctrl ||ctrl = 0 &&  stateno = 1500
triggerall =  stateno != 730
trigger1 = random < 250|| p2statetype=L


with this the ia char does power charge but the animation is bugged as if the power charge only do 1 frame   

if someone have solution globale or solution for the animation bug it s cool

(git hub topic https://github.com/ikemen-engine/Ikemen-GO/issues/615#event-14121511253)

VictorCYBR

This code makes the char start the power charge, but not stay on it. You need to find [Statedef 730] to see what is happening.
Try looking for State 730 on the chars that can power charge, look for "ailevel" triggers, and see if you can put something similar on those that are not power charging.

chuiaumax

The char have three [Statedef ] , [Statedef 730] for beginning of power charge , [Statedef 731] for middle and [Statedef 735] for end.

so i check the [Statedef 730] and the only code have impact i think it s this one

[State 0]
type = changestate
trigger1 = animtime = 0
value = 731

if i removed it or change animtime the char powercharge to infiny
if i stay i have the powercharge cut

if you have a idea so that char can hold the power charge that would be great because because it happens on all characters

I specify the power charge work when a player manually do it it s just when ia use it

VictorCYBR

Keep that part as it is, check statedef 731. At the end of the state, see if it changes to 735 and how it is done, it should have something with the commands, like this:

trigger1 = !AILevel && (command != "holdb" || command != "holdy")

This is for the human player, you need to add a trigger for the AI (if there isn't one yet), something like this:

trigger2 = AILevel && (InGuardDist || P2BodyDist x <= 120)

With this the character will stay in the power charge until the enemy gets closer.

chuiaumax

thx my friend that work , all that was needed was to put !AILevel && in front of command = , now the animation is complete thx but I still don't know why ancient char don t do powercharge with ia , I'm going to have to apply the code to each character.


trigger2 = AILevel && (InGuardDist || P2BodyDist x <= 120) where you want i put this ? in the command powercharge ?

VictorCYBR

Nice. That line is just to make the AI stop charging when an enemy gets close. You can add it after the other triggers, on that same part you just added "!AILevel". Just make sure to put the correct number on it, like this:

If the last trigger in your code is trigger1, you will add this line as trigger2.
If the last trigger in your code is trigger2, you will add this line as trigger3.

And so on.