YesNoOk
avatar

what's the use of a huge amount of variables? (Read 305 times)

Started by Continuity, September 18, 2009, 09:41:42 pm
Share this topic:
what's the use of a huge amount of variables?
#1  September 18, 2009, 09:41:42 pm
  • ***
  • 我が名は 「ハクメン」、押して参る!
it seems that every decent mugen character's cns code is largely consisted of a huge amount of variables, no matter what the actual sctrl is, their values are always variables as opposed to actual numbers. I have no idea how this helps improve the character, and it also looks very cryptic and complicated, anyone care to explain? thank you
Re: what's the use of a huge amount of variables?
#2  September 18, 2009, 09:45:44 pm
  • ******
How do variables help improving the character ? They store numbers to be used later. If something has its value set according to a variable, it means this variable was given a value earlier and the author needed to remember this value, to use it on that something afterward. Just fucking look for what the variable represents.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.
Last Edit: September 18, 2009, 09:49:31 pm by Byakko
Re: what's the use of a huge amount of variables?
#3  September 18, 2009, 09:50:36 pm
  • ***
  • 我が名は 「ハクメン」、押して参る!
I meant something like this
[mcode]poweradd = 70*(1000+var(24))/1000*ifelse((var(15)||var(16)),0,1)*(10+(var(59)*6))/10[/mcode]
are lines like these exactly neccessary? Doesn't a simple number do the same job? I really don't know so.....
Re: what's the use of a huge amount of variables?
#4  September 18, 2009, 09:55:20 pm
  • ******
:omg:
Okay, again, look for what these variables represents, and try to switch them for their value. See if you can.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.
Re: what's the use of a huge amount of variables?
#5  September 18, 2009, 10:10:36 pm
  • ******
  • [E]
    • Mexico
I meant something like this
[mcode]poweradd = 70*(1000+var(24))/1000*ifelse((var(15)||var(16)),0,1)*(10+(var(59)*6))/10[/mcode]
are lines like these exactly neccessary? Doesn't a simple number do the same job? I really don't know so.....

no,a simple number does not do the job.
Re: what's the use of a huge amount of variables?
#6  September 18, 2009, 10:13:41 pm
  • ***
  • I feel used, abused, and I'm not amused.
It might look complicated but it has its purpose...

Sig Provided by Matrimelee
Re: what's the use of a huge amount of variables?
#7  September 18, 2009, 11:47:16 pm
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/
It makes more sense to people who know what the variables' value ares and the coding represents, that's just a simple math equation.