News:

MFG's Character of the Month: October 2026 Voting

Main Menu

How to reduce damage to avoid taking 100% health like MK9

Started by DosKillerFighterTrue, May 04, 2025, 07:40:16 PM

Previous topic - Next topic

DosKillerFighterTrue

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.



[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)

WastedCoder

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.

DosKillerFighterTrue

Quote from: WastedCoder on May 04, 2025, 10:41:57 PM
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.


Odb718

This is a basic damage dampener
You need to set up your "var(13)" to what you use

Spoiler (click to show)
;-----------------------------------------------------------------------------
;Combo tira menos sangue

[State -2, AttackMulSet 1]
type = AttackMulSet
triggerall = stateno > 3000
trigger1 = Var(13) >= 0
trigger2 = hitdefattr = SCA, HA, HP
value = 1

[State -2, AttackMulSet 1]
type = AttackMulSet
triggerall = stateno < 3000
trigger1 = Var(13) <= 0
value = 1

[State -2, AttackMulSet 2]
type = AttackMulSet
triggerall = stateno < 3000
trigger1 = Var(13) = [1,4] 
value = 0.7

[State -2, AttackMulSet 3]
type = AttackMulSet
triggerall = stateno < 3000
trigger1 = Var(13) = [5,8] 
value = 0.4

[State -2, AttackMulSet 4]
type = AttackMulSet
triggerall = stateno < 3000
trigger1 = Var(13) > 8
value = 0.2

;-------------------------------------------------------------------
You can adjust the Value = for each step up and add additional steps if you want. If you dont want to have it be basic hit count, you can add to Var(13) in each move. This way, you could have a stronger move add 3 or 4 and have the system go up higher than 8. 
vVv Gouken718 vVv SabreTooth718 vVv