News:

MFG's Character of the Month: October 2026 Nominations

Main Menu

Weight values

Started by FirenLF2, January 17, 2015, 03:52:27 AM

Previous topic - Next topic

FirenLF2

Hi there, I wanted to know if it's possible to make a weight system on mugen.
For example,if I wanted to use a (MVCish) launcher on Ryu and Zangief, but wanted Zangief not to fly as high.
Is it possible to create a value (maybe variable) for Zangief that can be accessed by the opponent/one who launched and have, then, one launching height for each character (or character weight)

Niitris

It can be done.

Feasibly, it'd only be possible in a full game or in your own personal mugen. Doing that for every character in mugen would obivously be a pain.

Bannana

Do you mean something like constant gravity whenever you're in an air state?

FirenLF2

Bannana:
It's not gravity. It's literally mass. Characters that are light-weight (will receive great knockback, easier to push) and heavy-weight (receive little knockback, harder to push)
Niitris:
I don't mind. Actually it was for a Smash Bros-like mugen, so I expect patching lots of characters.
I wanted to something like:
Hitdef:
ground/air.velocity = X *(varweight), Y*(varweight)
The problem is that I don't know how to access enemy variables (or even if it's possible).
Maybe stateno? Cuz I can use p2stateno, so it would be a way to acccess information from the opponent. I dont know, I feel kind of lost.

Bannana

Enemy variables can be accessed by putting

enemy, var(x) or target, var(x)

Niitris

Alternatively, a universal State (like the common.cns) dedicated to that could work. You could also use name triggers, but you'd have to list every single solution.

FirenLF2

Wow, thanks guys.
I have a working Damage Dampening code, I'll use it as a base.
So I'll have a weight value multiplied (Damage Dampening code) by a knockback variable. So characters will start getting knock out of combo range, just like Smash comboes.


     Posted: January 17, 2015, 05:50:49 AM
Quote from: Fubini on January 17, 2015, 05:28:59 AM
Messatsu(?) made a bunch of standards (looks, gender, nationality) detecting specific animations, to save vars and time writing down a gazillion enemyname/authorname triggers. Too bad nobody used 'em :P. The idea's still good though, it's a nice workaround if you're low on variables.
That's nice, but I think I'll stick to using vars. Since I'll use only one (maybe two) there's no need for saving vars

Mr. I

You can base (kind of) a character's weight by using a combination of:

(ground.front + ground.back) * height
The double-curse of Blue Beard Baboon lies in these words you see. Read them once, then read them twice and your island is history.

FirenLF2

Quote from: Mr. I on January 17, 2015, 01:39:02 PM
You can base (kind of) a character's weight by using a combination of:

(ground.front + ground.back) * height
But then I would have Mario weighting the same as Mr Game and Watch. but still, it's worth taking a look

XGargoyle

You can also check the enemy's contants for the head axis and calculate the distance to the foot axis. Taller characters usually have more mass than shorter ones


XGargoyle: Battle posing since 1979
http://xgargoyle.mgbr.net
http://www.pandorabots.com/pandora/talk?botid=e71c0d43fe35093a  <-- Please click that link
http://paypal.me/XGargoyle  <-- Donations welcome!