The Mugen Fighters Guild

Help => M.U.G.E.N Configuration Help => Topic started by: WiCloud on March 09, 2010, 06:06:13 am

Title: need help on this code for a partner heal
Post by: WiCloud on March 09, 2010, 06:06:13 am
Im editing a character right now and have found out she has a partner heal move so i went ahead and threw it in her AI and it works! but with a few problems.

She attempts it when her partner(s) health is 50% or below...even if her partner isn't near her.
I need her to turn toward her partner in case he/she it isn't moving forward.
AI should ignore this if partner ISN'T close enough to heal them.

here's the code:
; Restore Partners Life
[State -1, AI Attack]
type = ChangeState
value = 1810
triggerall = ctrl
triggerall = NumPartner > 0
triggerall = Partner, Alive
triggerall = Partner, Name != "Cream"<--this don't do squat lol, she heals anyone who's her partner.
trigger1 = command = "z" && command = "c"
trigger2 = Partner, Life <= (Partner, LifeMax / 2)<---i figured half way is appropriate to start healing.
trigger3 = RoundState = 2
trigger3 = Var(40) < 0
trigger3 = StateNo > 0
trigger3 = StateNo < 0


It clearly needs an X coordinate atleast but When i tried inserting one i got an error from mugen saying invalid command error parsing on the trigger i put it on i tried triggerall and trigger 1 and 2.

the 2 previous replies were towards Sanada Yukimura's AI not working from years ago. disregard those please.
Title: Re: Character AI Configuration
Post by: じゆう on March 10, 2010, 11:47:15 pm
throughtout the year i've had Mugen now i am still unable to configure Ai for mugen characters. I know what your all thinking...go download an Ai patch if i dislike the current Ai and replace it with the updated Ai. it's good thinking but there's one particular problem im having with Syouga's Sanada Yukimura. I have went and downloaded his Ai patch by Chu-nin and it does not improve his Ai whatsoever in fact it stays the same. In several Youtube videos i have encountered a Yukimura with a tough Ai who has the Chu-nin patch on him so there IS a way to edit his AI if anyone has any info or the answer feel free to post it here.

Now that my question is up other users may post an Ai configuration related question to mugen characters of their concern.

There are plenty of ways to edit or make a character's AI but it requires a lot of knowledge with coding

Perhaps either the character or AI patch is outdated?
Title: Re: Character AI Configuration
Post by: kakkoii superhero on March 11, 2010, 03:47:34 am
maybe it requires you to swap some state file name in def, or even need to swap def itself to apply the ai patch to the character.
Title: Re: Problem Solved
Post by: WiCloud on December 25, 2014, 12:45:25 am
bumped for the greater good!