YesNoOk
avatar

[SOLVED] Max defence while guarding (Read 313 times)

Started by jjmugen, August 15, 2011, 08:39:36 pm
Share this topic:
[SOLVED] Max defence while guarding
#1  August 15, 2011, 08:39:36 pm
  • **
Hi, guys. I have a code problem.

I would like one of my chars to don't lose any life while he's guarding. As you know, some attacks
can hurt a bit altough the player is guarding, but i'd like this player to be invincible at guard.

I've tried with this simple code at statedef -3, but I think doesn't work (I tought it would).

Code:
[State -3, Restore Defence]
type = DefenceMulSet
trigger1 = stateno != [120,149] ;Not guarding
value = 1

[State -3, Powerup Defence]
type = DefenceMulSet
trigger1 = stateno = [120,149] ;Guarding
value = 20 ;Or something

Would you help me to find where is the problem?

Thanks
Last Edit: August 16, 2011, 12:59:02 pm by jjmugen
Re: Max defence while guarding
#2  August 16, 2011, 12:25:41 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Defence doesn't work like that. It's a multiplier. If i have 2 life and am hit by a 1 damage attack, no matter how much defence you have, you'll still take 1 damage. Mugen doesn't float it's damage at all.

What you want to do is make it so you lose no life. There is no good way to do this and still retain guard functionality.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

CRZ

Re: Max defence while guarding
#3  August 16, 2011, 05:01:05 am
  • avatar
  • *
Hi, guys. I have a code problem.

I would like one of my chars to don't lose any life while he's guarding. As you know, some attacks
can hurt a bit altough the player is guarding, but i'd like this player to be invincible at guard.

I've tried with this simple code at statedef -3, but I think doesn't work (I tought it would).

Code:
[State -3, Restore Defence]
type = DefenceMulSet
trigger1 = stateno != [120,149] ;Not guarding
value = 1

[State -3, Powerup Defence]
type = DefenceMulSet
trigger1 = stateno = [120,149] ;Guarding
value = 20 ;Or something

Would you help me to find where is the problem?

Thanks

How about changing it to a parry state, but the animations and paustime etc remain like a guard? you'll have to custom create this state though

2OS

Re: Max defence while guarding
#4  August 16, 2011, 05:58:49 am
  • ****
  • Ich schicke dich zur HOELLE ! ¡ ! ¡
    • Egypt
    • deuceovspadez.webs.com/
[Statedef -2]

[State 2OS]
type=lifeadd
trigger1=(stateno=[120,155])&&gethitvar(damage)
value=gethitvar(damage)
ignorehitpause=1
persistent=1


[ 052012 ] Inazumachi 181/256  /  deviantART   /  2OS Grafphicsxz  Dead Anims ( Orochi/Mizuchi )  /  608's FX Volume 3
Re: Max defence while guarding
#5  August 16, 2011, 06:09:56 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
I would question if that picks up the guard damage or the full damage of the attack. Unless the guard states manage it special (they might) you may find yourself gaining life by guarding rather than just taking nothing.

Has that worked for you before?


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

2OS

Re: Max defence while guarding
#6  August 16, 2011, 06:42:41 am
  • ****
  • Ich schicke dich zur HOELLE ! ¡ ! ¡
    • Egypt
    • deuceovspadez.webs.com/
Yes, it returns guard damage.

No life is ever lost or gained except when near death. It fails then cos when life hits 0, K.O regardless of re-adding.

That's its only flaw.


[ 052012 ] Inazumachi 181/256  /  deviantART   /  2OS Grafphicsxz  Dead Anims ( Orochi/Mizuchi )  /  608's FX Volume 3
Re: Max defence while guarding
#7  August 16, 2011, 06:48:55 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Those states are really annoying then, as you can't return guard damage from anywhere else. If it works, cool.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Max defence while guarding
#8  August 16, 2011, 12:58:41 pm
  • **
[Statedef -2]

[State 2OS]
type=lifeadd
trigger1=(stateno=[120,155])&&gethitvar(damage)
value=gethitvar(damage)
ignorehitpause=1
persistent=1

I don't know if it's ok or not, but IT WORKS!
Thanks a lot, 20S!
And thanks to all of you for helping me.

For now it's solved.