YesNoOk
avatar

Disabling Omega Zero's health regen (Read 3935 times)

Started by Project.13, August 20, 2016, 03:41:09 am
Share this topic:
Disabling Omega Zero's health regen
#1  August 20, 2016, 03:41:09 am
  • ***
    • USA
    • YouTube.com/MugenX000
So in N64Mario's Omega Zero, he has the light beam attack which heals him, which I believe comes from the ZX game he appeared in. Does anyone know the line of code I can find and delete to negate the health regeneration?
Last Edit: August 21, 2016, 02:37:40 am by Project.13
Re: Disabling Omega Zero's health regen
#2  August 20, 2016, 03:48:48 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Most likely you are looking for type = lifeadd

Narrowing down the state and posting the code would help though as there are a couple of other methods available to gain life.


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: Disabling Omega Zero's health regen
#3  August 20, 2016, 03:52:50 am
  • ***
    • USA
    • YouTube.com/MugenX000
The thing is, I'm not sure what kind of code I'm looking for. I can verify that after looking through all of the CNS files and whatnot, there is no "lifeadd" variable, which is odd..
Re: Disabling Omega Zero's health regen
#4  August 20, 2016, 11:28:17 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
It's not a variable. Its an sctrl. But you don't need to know where that is in order to find the state. You can play as the character, use the command. Memorise said command. Find it in the .cmd file. Find which changestate calls it, find that statedef in the cns file. Post it here.


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: Disabling Omega Zero's health regen
#5  August 20, 2016, 10:06:02 pm
  • ***
    • USA
    • YouTube.com/MugenX000
So here's what it says in the cmd file, at least.

Spoiler, click to toggle visibilty

I unfortunately cannot make heads or tails out of this.
Re: Disabling Omega Zero's health regen
#6  August 20, 2016, 11:05:27 pm
  • ***
  • Magna Power
  • Its Hotdog time. Hot.... Dog...time...
    • neofiresonicmugen.webs.com
in the state 1000 which is in the "state-s.cns" there are two helpers "statedef 1010" and "statedef 1015" (which are in "helpers.cns")

theres a couple of variables in them but none of them have the lifeadd sctrl.
You know what i'm gonna do now?
no?
Well too bad I don't know either.
Re: Disabling Omega Zero's health regen
#7  August 21, 2016, 01:39:50 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
I thought it did more than just add life. Anyway In state 1000 there are these

[State 1000, LifeAdd]
type = LifeAdd
triggerall = Anim = 1000
triggerall = TimeMod = 5,0
triggerall = Life < LifeMax
triggerall = RoundState <= 2
triggerall = NumHelper(1015) > 0
trigger1 = Var(55) <= 0
trigger1 = Var(44) > 30 || Time > 30
value = 15

[State 1000, LifeAdd]
type = LifeAdd
triggerall = Anim = 1000
triggerall = TimeMod = 5,0
triggerall = Life < LifeMax
triggerall = RoundState <= 2
triggerall = NumHelper(1015) > 0
trigger1 = Var(55) > 0
trigger1 = Var(44) > 20 || Time > 20
value = 20

You could delete them both, then it would no longer add life. But as that's ALL the move does, and the character has AI...

Find both changestate in the cmd where value = 1000. Replace

type = changestate
with
type = null; changestate

Just in case you want to turn it on again. Alternatively, you can just disable the AI version by doing that to  the changestate which has no command attached to it.


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: Disabling Omega Zero's health regen
#8  August 21, 2016, 02:37:32 am
  • ***
    • USA
    • YouTube.com/MugenX000
The null changestate didn't do anything, but deleting the coding for the LifeAdd fixed it. Thanks for the help!
Re: Disabling Omega Zero's health regen
#9  August 21, 2016, 05:52:53 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Actually it would have. But there is more than one instance. There is the regular version and the AI version, you need to null both.

You've fixed it by removing the code, but now if you want to turn it back on... you need to redownload. Nulling a state out is always better than trashing it when you're modifying a character and you may want to go back.


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.