The Mugen Fighters Guild

M.U.G.E.N Central => M.U.G.E.N Discussion => Development => Topic started by: Vinnie on August 03, 2018, 04:59:53 am

Title: Healing a Partner.
Post by: Vinnie on August 03, 2018, 04:59:53 am
So I found that there's a method to heal a partner. And that's to paste these code to the [statedef -2] of the character that need to heal.
For instance, I'll take Tsunade as a healer and Naruto as a partner. So I'll go to Naruto.cns and paste these to the statedef -2 :

;----
[State 0, PowerAdd]
type = lifeadd
triggerall=partner,name="Tsunade"
triggerall=partner,stateno=1600
trigger1=timemod=10,0
value = 10
;-----
And yeah, it works perfectly.
But the thing is, I think that there must be a command that can heal your partner WITHOUT pasting these codes to your partner. It's impossible to do it for EVERY SINGLE characters and who ever gonna do that ? Or maybe that's the only method that can solve the problem.
Title: Re: Healing a Partner.
Post by: XGargoyle on August 03, 2018, 10:19:02 am
The only way to achieve that is to turn your partner into a target, and then use TargetLifeAdd
Title: Re: Healing a Partner.
Post by: beterhans on December 09, 2018, 12:19:26 pm
if u write the partner
you can heal it whatever you want

if u want to heal a random character who is your parner

you need

1 make a attack move
2 hitdef says this attack only attack your home team not enemy
3 after hit your teammate put it into a custom state
4 use targetlife add at your side with positive number.