YesNoOk
avatar

a little help required... (Read 212 times)

Started by blah, September 16, 2009, 03:27:32 pm
Share this topic:
a little help required...
#1  September 16, 2009, 03:27:32 pm
  • ***
Hey,

I'm just starting to do some editing to characters (to understand coding and hopefully able to create my own character in the future) and I'm just wondering how is it possible to make a transformation stay after a round is over? say for example my character transform from A to B and then he wins the round, and I want him to stay in that transformation at the beginning of round 2. But if he loses then I would want him to revert to A instead. At the moment the character reverts back to A every time he engages the next round, regardless of him winning the previous round or not.
 
It would be very helpful if any experts were to guide me as to which block of code I should be looking for in regard to this matter? I know there are a lot of transformation methods out there, but I'm hoping that this is a pretty general solution...or maybe not...? :)

Thanks in advance!
Re: a little help required...
#2  September 16, 2009, 03:57:11 pm
  • ******
  • YOMI
    • www.justnopoint.com/lbends
In the character's constants there is a value that sets the highest variable index to clear after each round.  Lowering that value will stop variable indices above it from being cleared every round.  you can use one of those variables to keep track of your transformation state.

varpersist or something like that, specifics escape me.
Re: a little help required...
New #3  September 16, 2009, 04:43:11 pm
  • ***
varpersist or something like that, specifics escape me.
intpersistindex
thanks for that information ;)

but now I face another problem, that is the introduction during the 2nd round (before "round 2, fight") is for A but I want it for B
however, after the "fight" the character will go back to B, which is correct
I'm just starting to learn so probably these are quite stupid questions ;P I don't know

EDIT: solved the problem. I just had to edit the state 5900 by adding a Varset to determine which transformation the character is in ;)
however, new problem exist :P because the character has some after image during transformation state B and now that the character has lost the first round, he reverts to state A in the second round, but having that after image effect as well...hmm...
Last Edit: September 17, 2009, 08:08:52 am by blah