YesNoOk
avatar

Persistant variable (Read 213 times)

Started by Liero, September 30, 2009, 09:45:07 pm
Share this topic:
Persistant variable
#1  September 30, 2009, 09:45:07 pm
  • **
    • http://rumblepk.tumblr.com/
I have a variable that controls certain actions of a characters attack data.  This variable is set in the character's intro state and cannot change during the course of the fight.  It is essentially a "groove" style similar to the CvS2 system.  The problem is that the variable resets to 0 at the start of the next round.  I don't want the player to be able to alter this variable in any round besides the first.  How can I make the value of this variable carry over into every other round?
Re: Persistant variable
#2  September 30, 2009, 10:22:18 pm
  • ******
  • [E]
    • Mexico
teh cns has a persistant index option. also take a look at state 5900.
Re: Persistant variable
#3  October 01, 2009, 01:39:49 am
  • **
    • http://rumblepk.tumblr.com/
Heh wow ok.  A lot more simple than I thought it would have been.  Thanks for the help.