animtype options?

Started by Odb718, October 24, 2012, 08:45:30 AM

Previous topic - Next topic

Odb718

What I'm trying to do is...
animtype = ifelse( var(5)=25,Up,heavy)
but it doesnt work.
How can I make it so the animtype can be easily changed?
without making all types of hitdefs... I have 3 "sets" of hitdefs for the 1 move already.
vVv Gouken718 vVv SabreTooth718 vVv


Cyanide

you can't use strings inside ifelse IIRC. Bit of a pain but there you go. Now i HAVE heard that those strings only look at the first value of the string, so you could try
animtype = ifelse( var(5)=25,U,H)
But i really doubt that'll work either.
Double hitdef is the most sensible way to do this.


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.

Byakko

Quote from: Cyanide on October 24, 2012, 10:29:51 AMNow i HAVE heard that those strings only look at the first value of the string, so you could try
animtype = ifelse( var(5)=25,U,H)
I haven't had the opportunity to test it but I think it's worse than that, in the specific parameters that only look at the first character, that includes the ifelse, so it would read just "i".
Multiple hitdefs is the only way to go in these cases.
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.