YesNoOk
avatar

How to reduce damage to avoid taking 100% health like MK9 (Read 1846 times)

Started by DosKillerFighterTrue, May 04, 2025, 07:40:16 pm
Share this topic:
How to reduce damage to avoid taking 100% health like MK9
#1  May 04, 2025, 07:40:16 pm
  • avatar
  • **
    • Argentina
Hi, I need help with the damage output for Liu Kang or another char in MK9. I was annoyed that he could eliminate the opponent with 100% damage, which was ridiculous. I want to reduce the damage to avoid dealing excessive damage. I'm not sure if I explained myself well. Here it is.



This is my char code.

I set damage = 200 to make the problem noticeable.

Code:

[State ]
type = Hitdef
trigger1 = !movecontact
damage = 200,30
getpower = 0,0
givepower = 0,0
pausetime = 2,2
attr = S,SA
guardflag = M
animtype = light
air.animtype = back
priority = 4, hit
sparkno = -1
guard.sparkno = -1
sparkxy = 0, 0
hitsound = 5,0
guardsound = 5,14
ground.type = high
air.type = high
ground.slidetime = 24
ground.hittime = 30
guard.hittime = 24
ground.velocity = 0, 0
air.velocity = 0, -6
guard.velocity = 0
air.velocity = -5, -3
air.cornerpush.veloff = 0
ground.cornerpush.veloff = 0
yaccel = .5
air.fall = 1
fall.recover = 0
fall.xvelocity = 0
fall.yvelocity = 0
kill       = 0;(Var(9) = 0)
fall.kill  = (Var(9) = 0)
guard.kill = (Var(9) = 0)
forcestand = 1

[State ]
type = Hitdef
trigger1 = anim = 2003
triggerall = !movecontact
damage = 200, 10
getpower = 0,0
givepower = 0,0
pausetime = 2,2
attr = S,SA
guardflag = M
animtype = light
air.animtype = back
priority = 4, hit
sparkno = -1
guard.sparkno = -1
sparkxy = 0, 0
hitsound = 5,0
guardsound = 5,14
ground.type = high
air.type = high
ground.slidetime = 24
ground.hittime = 30
guard.hittime = 24
ground.velocity = 0, 0
air.velocity = 0, -6
guard.velocity = 0
air.velocity = -5, -3
air.cornerpush.veloff = 0
ground.cornerpush.veloff = 0
yaccel = .5
air.fall = 1
fall.recover = 0
fall.xvelocity = 0
fall.yvelocity = 0
kill       = 0;(Var(9) = 0)
fall.kill  = (Var(9) = 0)
guard.kill = (Var(9) = 0)
forcestand = 1

[State 1000, 10]
type = HitDef
trigger1 = anim = 2004
triggerall = !movecontact
attr = S, SA
animtype  = back
damage    = 200, 30
guardflag = HL
hitflag = MAF
pausetime = 0,0
sparkno = -1
p2facing = 1
guard.sparkno = -1
hitsound = 5,0
guardsound = 5,14
ground.type = High
ground.slidetime = 24
ground.hittime  = 24
ground.velocity =0, -10
air.velocity = 0, -10
air.hittime = 12
yaccel = 0.8
fall = 1
fall.recover = 0
kill       = (Var(9) = 0)
fall.kill  = (Var(9) = 0)
guard.kill = (Var(9) = 0)
hitonce = 1

I don't know what else I can say.


If anyone helps me I will appreciate it

(I apologize for my English, I use Google Translator)
Last Edit: May 04, 2025, 09:21:12 pm by DosKillerFighterTrue
Re: How to reduce damage to avoid taking 100% health like MK9
#2  May 04, 2025, 10:41:57 pm
  • **
    • Ukraine
Many characters use damage dampeners for that purpose, you may look for some in other characters. Maybe anyone has a char like that in mind. Or if you're capable, you may code your own.
Re: How to reduce damage to avoid taking 100% health like MK9
#3  May 05, 2025, 12:04:05 am
  • avatar
  • **
    • Argentina
Or if you're capable, you may code your own.


Unfortunately, I'm still a beginner; I still don't fully understand Mugen's codes. I'm constantly learning new things and understanding the codes in Mugen or Ikemengo.