YesNoOk
avatar

need help on this code for a partner heal (Read 729 times)

Started by WiCloud, March 09, 2010, 06:06:13 am
Share this topic:
need help on this code for a partner heal
#1  March 09, 2010, 06:06:13 am
  • **
  • Thoughts are never Actions unless there Memories
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.
The Wikkens Will Rise!
"To follow our path, to complete our goals, A Wikken's way is truly whole, for we seek the thrill of challenge, none too bleak*too easy* But until the day we all shall peak!"-WiCloud
Last Edit: December 25, 2014, 12:46:31 am by WiCloud
Re: Character AI Configuration
#2  March 10, 2010, 11:47:15 pm
  • avatar
  • ***
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?
Re: Character AI Configuration
#3  March 11, 2010, 03:47:34 am
  • ******
  • all is love in fair and war
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.
Re: Problem Solved
#4  December 25, 2014, 12:45:25 am
  • **
  • Thoughts are never Actions unless there Memories
bumped for the greater good!
The Wikkens Will Rise!
"To follow our path, to complete our goals, A Wikken's way is truly whole, for we seek the thrill of challenge, none too bleak*too easy* But until the day we all shall peak!"-WiCloud