YesNoOk
avatar

A question about variables. (Read 3557 times)

Started by Trololo, July 08, 2018, 10:16:33 am
Share this topic:
A question about variables.
#1  July 08, 2018, 10:16:33 am
  • ****
  • Objection! Sustained!
    • Russia
    • mitia.pogorelov1@yandex.ru
I have a little question here.
I do know that it is possible to make Variable unresetable between matches of Arcade. But no matter what you do with them, if you lose and take a continue after that, then these variables will be reset to 0. So, is it possible to somehow prevent this from happening? And no, I'm not talking about "constant" variables, I need a variable, that CAN be changed through triggers, but that would keep its value between matches even after a loss.
Re: A question about variables.
#2  July 08, 2018, 12:16:26 pm
  • *****
  • Shame on you!
    • USA
Through mugen, no.
It _MAY_ be possible through a front-end program or Cheat Engine or something like that. But not between matches inside of mugen.
I don't think it'd be very feasible.
vVv Ryuko718 Updated 10/31/22 vVv
Re: A question about variables.
#3  July 10, 2018, 04:34:43 am
  • ****
    • USA
    • twitter.com/inktrebuchet
You can have them not reset between rounds but not matches.

I haven’t tried survival mode though. They might carry over there.
Re: A question about variables.
#4  July 10, 2018, 04:41:44 am
  • ****
  • Objection! Sustained!
    • Russia
    • mitia.pogorelov1@yandex.ru
You can have them not reset between rounds but not matches.

I haven’t tried survival mode though. They might carry over there.

No, man, They CAN be unreset between matches of Arcade Mode. Just make IntPersistIndex and FloatPersistIndex equal to the necessary number and null in the State 5900 codes that reset variables. That way variables won't be reset and even can be used for some good counting. But they WILL be reset if you're doing Arcade anew, any mode with conception of 1 Match (Like VS Modes, where every match is Match 1) and if you'll lose and use continue. How to prevent last from happening is a really interesting question since that could open some new possibilities for Arcade mode.
Re: A question about variables.
#5  July 10, 2018, 04:47:27 am
  • ****
    • USA
    • twitter.com/inktrebuchet
What! I thought that was just for rounds. The continue thing is weird, I’ll have to check this out. Definitely interesting.


What’s the variable for? Is it a simple on/off. 0/1 kind of thing?
Last Edit: July 10, 2018, 04:52:15 am by ink
Re: A question about variables.
#6  July 10, 2018, 05:09:40 am
  • ****
  • Objection! Sustained!
    • Russia
    • mitia.pogorelov1@yandex.ru
Could you rephrase your question, please?
Re: A question about variables.
#7  July 10, 2018, 05:24:02 am
  • ****
    • USA
    • twitter.com/inktrebuchet
I was curious if you were saving an actual amount of just setting the var to 1 or 0.

But it does look impossible either way.
Re: A question about variables.
#8  July 10, 2018, 05:31:47 am
  • ****
  • Objection! Sustained!
    • Russia
    • mitia.pogorelov1@yandex.ru
No, dude. By NULLING codes I meant THIS stuff:

If you want- you may delete them either, but I prefer to nullify them.
It seems I just can't understand you here though...
Re: A question about variables.
#9  July 10, 2018, 10:32:02 am
  • **
  • Sr. Símio Enfermo
    • Brazil
    • www.facebook.com/people/Manson-Rees/100027897993934
It seems I just can't understand you here though...

He want to know how you are (or want to) use your var, the range specifically.
Probably he has a idea if you want to use your var just to setting things to ON/OFF or TRUE/FALSE. Well, I guess you got the ideia now...
Re: A question about variables.
#10  July 10, 2018, 01:32:37 pm
  • ******
  • Loyal to the Game
    • USA
    • http://jesuszilla.trinitymugen.net/
You can have them not reset between rounds but not matches.

I haven’t tried survival mode though. They might carry over there.

You can do all of this actually. How do you think points systems work?
Re: A question about variables.
#11  July 10, 2018, 01:49:13 pm
  • ****
  • Objection! Sustained!
    • Russia
    • mitia.pogorelov1@yandex.ru
It seems I just can't understand you here though...

He want to know how you are (or want to) use your var, the range specifically.
Probably he has a idea if you want to use your var just to setting things to ON/OFF or TRUE/FALSE. Well, I guess you got the ideia now...

Well, indeed. I'd like to have that specific unresetable variable ON/OFF type.
Re: A question about variables.
#12  September 04, 2018, 03:00:05 pm
  • ****
    • USA
    • twitter.com/inktrebuchet
I thought about this more, maybe not exactly what you are looking for but it could be a good starting point.

If you order your characters in select.def, I think you could compare matchno to the character's expected order. If matchno doesn't match the expected order of the enemy you would know that a continue occurred at some point.
Last Edit: September 04, 2018, 03:34:21 pm by ink
Re: A question about variables.
#13  September 04, 2018, 04:09:50 pm
  • ****
  • Cute Bounty Hunter
I have to be honest, the only way I can think of to prevent variables getting reset after a continue is to use DosMUGEN.  Way back then, continuing there didn't brought you back to character selection and instead restarted the match right away with no way for you to select a different character; however, all the variables remained the same with no complete resets happening.

I remember this much because of Splode's Randy.  I could play as him in RPG mode and continue as much as I want while still keeping his progress; couldn't quite do the same thing in WinMUGEN as one loss and continue there made me select a character again, and picking Randy again meant having to start him over from square one when I'm probably fighting a final boss by that point.