News:

MFG's Character of the Month: October 2026 Voting

Main Menu

perfect constants coding

Started by Cyan_Blau, June 21, 2008, 07:20:40 AM

Previous topic - Next topic

Cyan_Blau

Hi everyone,

if you know I'm always making private edits and looking for betas of good characters to compare them with the originals and the finished ones. So I wanna use some good constants against every crap overpowered enemy.

I found a code like this: Ceil(0.04 * enemy,Const(data.attack)) * root,var(39)
But IDK what ceil does, and I guess it doesn't really work as constants like this, thought:
[Data]
life=1000
attack=70*Ceil(0.04 * enemy,Const(data.life)) * root,var(39),Ceil(0.01 * enemy,Const(data.life)) * root,var(39)
defence=90
fall.defence_up=1000*Ceil(0.04 * enemy,Const(data.attack)) * root,var(39),Ceil(0.01 * enemy,Const(data.attack)) * root,var(39)
liedown.time=-10
airjuggle=25
sparkno=2
guard.sparkno=40
KO.echo=0
volume=0
IntPersistIndex=0
FloatPersistIndex=40
power=10000

I know it looks noobish, but plz, could anyone help me coding good constands which are based on the opponents life, attack, defence and power?
天 < 黄泉<> 四劫 > 空劫

zweifele nicht!

Cyanide

QuoteCeil(0.04 * enemy,Const(data.attack)) * root,var(39)
Ceil prevents an setting looking for an integer returning a float by rounding the decimal up. Rest is just enemies attack value multiplied by a variable.


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.