News:

MFG's Character of the Month: October 2026 Nominations

Main Menu

Revival code

Started by Ichisennen, November 28, 2010, 01:34:36 PM

Previous topic - Next topic

Ichisennen

Quote from: DUCTRUONG on December 01, 2010, 04:37:06 PM
I dont think messing around with sysvars is a good idea, especially since only sysvar(0) and sysvar(1) are actually used and supported.

Either way, theres no reason why such a code should bug if you're fighting yourself and it works otherwise
I know, and that's what made me ask professional help  :'( If you think about it, if it works against other characters it should work against you... But it just confuses me why not lol.

Sysvar(1) ++ aint supported? Why not?

Quote from: leandro1412 on December 01, 2010, 02:44:24 PM
Ok then we go to improve that with a var ;D

;---------------------------------------------------------------------------
; HITG_SHAKE
[Statedef 5000]
type    = S
movetype= H
physics = N
velset = 0,0

[State 0, LifeSet]
type = LifeSet
triggerall = !Sysvar(4)
trigger1 = Gethitvar(Damage) >= Life
value = 1
ignorehitpause = 1

[State 0, AssertSpecial]
type = AssertSpecial
triggerall = !Sysvar(4)
trigger1 = Gethitvar(Damage) >= Life
flag = noko
ignorehitpause = 1

[State 0, VarSet]
type = VarSet
trigger1 = !SysVar(4) || Life <= 1
sysvar(4) = 1


Whit this switch you should fix just for one time the not one hit kill :D don't care the damage amount.

Sorry but i can't understand why you are using this code (first posted), what are u looking with that, ahh by the way you cant do that in -2 or -3 because that starts detection from tic 1 (Time = 1) so we cant detect the time 0 codes... lifeadd and hold the gethitvar(damage) jeje XD for that you must to edit all Gethit shake states (for example 5000) its like and armor mode XD


Thanks again leandro XDXD , gonna try this out tommorow morning... I'll edit if anything else wrong comes up.

leandro1412

Quote from: Ichisennen on December 02, 2010, 04:08:20 PM
Sysvar(1) ++ aint supported? Why not?

I don't have any idea if these vars aren't spported XD but in winmugen and mugen 1.0 works fine  :sugoi: and i don't know why elecbyte recommend don't use them...
[

Nice userbars no? :P Make click & Download something nice for your Mugen!!!
________________________________

Ricepigeon

If youre going to use a sysvar for that purpose, then you might as well be using a normal variable. In fact, there is absolutely no reason not to.

Ichisennen

Got it working. The solution was simpler than i thought lol.

[State -2]
Type=VarSet
Trigger1=1
var(37)=((movetype=H) && (var(37)>0)) || (Life>1)
ignorehitpause=1

Thanks to all that gave me solutions and help  :sugoi: