#1
Posted by DosKillerFighterTrue
in make shao kahn have protection his body only performs a special move like MK9 (Started by DosKillerFighterTrue May 06, 2024, 09:33:26 amBoard: M.U.G.E.N Development Help
I will use char from shao kanh by Serega_Stryker's as an example
look at the comparison between mugen and mk9
As you saw, In Mugen, it is easier to defeat Shao Kahn because his special moves and punches are very immune to attacks. While in MK9, when Scorpion tries to hit Shao Kahn, he performs special moves and the attacks are not immune to Shao Kahn due to the protection on his body. Shao Kahn sends Scorpion flying, but he glows yellow and can take life, although that doesn't stop him from hitting him. The only time he is immune is when he performs a taunt.
code example, I will use "Upward Shoulder" move special as the protection
Code:
;tackle - knee
[StateDef 1210]
type = A
movetype=A
physics = N
juggle = 4
ctrl=0
anim = 1300
[State 1000, Bounf]
type = velset
trigger1 = animelem = 3
x = 8;10
y = -5;-6
[State 1000, w]
type = PlaySnd
trigger1 = Time = 2
value = 4, 10+5*(random%2)
channel = 3
[State 1000,w]
type = PlaySnd
trigger1 = Time = 0
value = 20, 4
volumescale = 200
[State 1000, 10]
type = HitDef
trigger1 = !movecontact
attr = S, SA
animtype = back
damage = 270, 50
guardflag = HL
hitflag = HAF
pausetime = 1.1
priority = 8,hit
sparkno = -1
guard.sparkno = -1
hitsound = 5.0
guardsound = 5.14
ground.type = High
ground.slidetime = 12
ground.hittime = 12
ground.velocity = -6,-3
air.velocity = -6,-3
air.hittime = 12
yaccel = 0.5
fail = 1
fail.recover = 0
kill = (Var(9) = 0)
fall.kill = (Var(9) = 0)
guard.kill = (Var(9) = 0)
hitence = 1
[State 1000, Bounf]
type = null;nothitby
trigger1 = animelemno(0) = 3
value = A,NA
[State 1000, Bounf]
type = null;helper
trigger1 = Movehit
stateno = 7150
pos = 60,-70
facing = -1
persistent = 0
ignorehitpause = 1
[State 1000, Bounf]
type = screenbound
trigger1 = 1
value = 1
movecamera = 1.0
[State 1000, Bounf]
type = velset
trigger1 = movecontact
trigger2 = animelem = 4
x = 0
y = -1
ignorehitpause = 1
[State 1000, Bounf]
type = targetstate
trigger1 = Moveguarded
value = 280
persistent = 0
ignorehitpause = 1
[State 1000, Bounf]
type = envshake
trigger1 = Movecontact
ampl = 6
time = 16
freq = 70
persistent = 0
ignorehitpause = 1
[State 1000, BounceOff]
type = selfState
trigger1 = Time >= 15 || p2dist x < -35
trigger1 = !movecontact
trigger2 = movecontact > 12
value = 1211
One day I will start doing Mortal Kombat 9 in Mugen to do with all the characters be very similar to mk9.
If anyone helps me I will appreciate it
(I apologize for my English, I use Google Translator)