Split off the Code Snippet Archive

Started by bigsexyc420, September 11, 2006, 12:31:19 AM

Previous topic - Next topic

bigsexyc420

so where exactly are these codes to be inputed?

Messatsu


Quote from: Bastard Wolf on May 12, 2008, 05:02:05 PM
Many people risk their lives everyday by having Mugen.

rednavi -RETIRED

Quote from: bigsexyc420 on September 11, 2006, 12:31:19 AM
so where exactly are these codes to be copy-pasted?
as messatsu told you, all of them are context dependent, but basically, they have to be inputed in the cns file or the cmd file, also be sure to add them in a valid state number (not used by any other move :P), the "****" must be replaced by numbers (obviously :P :P)

Kensuke

Wanted to ask about the comment "feel like a brick wall" does this mean super armor?
~Ultimate Kensuke of the True Lightning~

Real Bout High School Battle

Coming.....soon....

Cybaster

In the last version, before this thread was imported here, each post had its own title, which made us know what the code was for exactly, without having to read the whole thing.

May be nice if a mod could change the titles of the posts. :)

Mr. Sand

my brain, it hurts.

Damn CODING.

k.o.t.w.

can some1 tell me how 2 code a SGS



R.I.P Reu  if i had some sprites i would make a pic dedicated to you

Cybaster

Quote from: k.o.t.w. on January 25, 2008, 03:47:04 AM
can some1 tell me how 2 code a SGS
This is not the right place to ask.

TRyu

David you mentioned , you can use lifegain the same way as power gain...

how would you do that?  is the variable lifeadd the one to use? 

like I see this in one character:

[State 6995]
type=lifeadd
trigger1=!time
value=-250


does that add or subtract the life?

ShinAkuma2004

<- The Mugen Amateur ->
The code may be messy, but it works.

Cyan_Blau

I've a question:

Does this code work?
It's a damage code I found
damage = Ceil(0.013 * enemy,Const(data.life)) * root,var(39),Ceil(0.008 * enemy,Const(data.life)) * root,var(39)

I always wanted to find out how to load other constants from p2 life the attack or defense, but IDK how, so could anyone help me?
天 < 黄泉<> 四劫 > 空劫

zweifele nicht!

Anjel

Revive!

Put enemy, then it reads the enemys. It is writen in the exp.html/rtf in the docs.

I'll translate that for you:

damage = Ceil(0.013 * enemy,Const(data.life)) * root,var(39),Ceil(0.008 * enemy,Const(data.life)) * root,var(39))
Would be

damage = Rounded high(0.013 multipled by enemys Constsnt life multipled by players variable 39) , Rounded high(0.008 multipled by enemys Constsnt life multipled by players variable 39)

The thing after the bold comma is guard damage. Noticed the the one that wrote that forgot the ending parhentise.
My shitty mugen stuff:

Cyan_Blau

Quote from: Anjel on June 22, 2008, 12:22:12 PM
Revive!

Put enemy, then it reads the enemys. It is writen in the exp.html/rtf in the docs.

I'll translate that for you:

damage = Ceil(0.013 * enemy,Const(data.life)) * root,var(39),Ceil(0.008 * enemy,Const(data.life)) * root,var(39))
Would be

damage = Rounded high(0.013 multipled by enemys Constsnt life multipled by players variable 39) , Rounded high(0.008 multipled by enemys Constsnt life multipled by players variable 39)


The thing after the bold comma is guard damage. Noticed the the one that wrote that forgot the ending parhentise.

Hey thx, rlly ^^

And the same works with attack from the opponent? What's with the constants, does it work if I write it as a constant?
天 < 黄泉<> 四劫 > 空劫

zweifele nicht!

Anjel

Attack is in the constants. So it would work. You might wanna alter the code though. The normal attack is 100. And the normal life is 1000. So it only does 10% of the damage it would do if you used life.
My shitty mugen stuff:

xian zhi

#14
is there a code for unblockable attacks? ive been playing with the constants and nothing seems to be working nevermind, sorry ;D

chrisboy14

Hello could anyone post a code on how to have a recharging time in a move?Let's say if you would want to make it so that when you use a move you have to wait for example 5 seconds before using it again.I really need that for my Pain.

Anjel

Set a variable in said state (move).
Then make the variable subtract 1 from that every tick (trigger1 = 1) as long as this variable is over 0 (use negative state for this (60*5=300, so the variable should be set at 300)).
Then just put a trigger in the command which says your variable cannot be more than 1.
My shitty mugen stuff:

chrisboy14

That's okay I already figured it out ;D

The Aboriginal One

May I have permission to post this on my Wiki's mugen development section for bookkeeping purposes?
Accusare nemo se debet nisi coram Veridis
DYNOMITE

FrozenDelight

#19
Hi everyone,

I think it would be great if 'Alpha Counter' could be added to this list. I would like to know how to do it. I'm sure everyone knows what it is, but just incase you don't;

You'll find Alpha Counters in games such as Street Fighter Alpha. When you block one of your opponents moves, while you're in block stun, do the alpha counter move (whatever this command may be). You will break out of your block stun and hit your opponent. To make sure this isn't abused, alpha counters usually take a curtain amount of your super bar.

ADDED - Or could someone at least point me to a link where I can find out how to do it? Please?
An anthropomorphic existential nightmare.