News:

MFG's Character of the Month: October 2026 Voting

Main Menu

[SOLVED] code to insert to check if..

Started by Maistral, June 22, 2011, 07:41:01 PM

Previous topic - Next topic

Maistral

what is the correct trigger to be used to check if your character is hit?


MUGEN CHARACTERS
Sabaku no Temari [100%] = RELEASED!
Akasuna no Sasori [100%] = RELEASED!
Namikaze Minato [5%] = ON HOLD
Uzumaki Naruto [5%] = Coding basic attacks


Ricepigeon

Quote from: temaridaikamaitachi on June 22, 2011, 07:41:01 PM
what is the correct trigger to be used to check if your character is hit?

movetype

Cyanide



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.

Maistral

i used movetype = H in order to cause the helper to be animated into something. problem now is, since the "lying-down" state is also a type = H, the helper animates repeatedly until the root would stand up.

is there another tag that can be placed in the triggers such that it would detect a hit,

OR

is there a way to limit the number of times the helper would be animated, even if the root is still in the "lying-down" H state?


MUGEN CHARACTERS
Sabaku no Temari [100%] = RELEASED!
Akasuna no Sasori [100%] = RELEASED!
Namikaze Minato [5%] = ON HOLD
Uzumaki Naruto [5%] = Coding basic attacks


Алексей

You could add an additional trigger to check if the player is not in state 5110 (the lying down after hit) and 5150 state (lying down after defeated). This should cover the lying down states.


triggerall = stateno != 5110 && stateno!= 5150

Of course this would be with your other triggers in State -2

-[Все слова это только слова.]-

Maistral

#5
though, the helper is still loop-animating.

is there no trigger that can be used to detect a hit?

other than movetype = H ??




just clarifying, i wanted to ask if there is a trigger available in order to detect a move HIT, not a hit state..


MUGEN CHARACTERS
Sabaku no Temari [100%] = RELEASED!
Akasuna no Sasori [100%] = RELEASED!
Namikaze Minato [5%] = ON HOLD
Uzumaki Naruto [5%] = Coding basic attacks


Алексей

You could check against damage and hitcount using GetHitVar. Generally, if a move has hit you, there will be some amount of damage and a hitcount of at least 1.

-[Все слова это только слова.]-

Cyanide

trigger1 = teammode = 1 && enemy, movehit
trigger2 = teammode = 2 && (enemynear(0), movehit || enemnear(1), movehit)

I think i have my syntax on teammode wrong. Please check it in docs BEFORE you use it. Designed to differ between single and simul.


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.

Maistral



MUGEN CHARACTERS
Sabaku no Temari [100%] = RELEASED!
Akasuna no Sasori [100%] = RELEASED!
Namikaze Minato [5%] = ON HOLD
Uzumaki Naruto [5%] = Coding basic attacks