News:

MFG's Character of the Month: October 2026 Nominations

Main Menu

Counter question...

Started by jailuis, December 30, 2009, 11:29:03 PM

Previous topic - Next topic

jailuis

Well im working on a counter on my char, but I want this counter to be as a Combo Breaker, so it must be activated when u r in gethit state (movetype=H)...The problem is that its not working...im trying to do like this:

[State -1, Combo Breaker!]
type = hitoverride
value=9013
triggerall=movetype=H
triggerall = power >= 1000
trigger1 = command = "HyperA"
trigger1=ctrl

;-----------THE CODE----------

[Statedef 9013, Combo Breaker!]
type    = S
movetype= A
physics = N
juggle  = 1
ctrl = 0
anim = 202
poweradd = -1000
sprpriority = 2

[State 0, HitOverride]
type = HitOverride
trigger1 =1
attr = S,NA
stateno = 250
time =-1

[State 0, ChangeState]
type = ChangeState
trigger1 =animtime=0
value =991
ctrl = 1
;--------------------------------

So that state activates and get me to a Hitting state...so But it WONT activate the state...

Cyanide

Hitoverride doesn't work like your first one. You either want a changestate there. Or you need to read this

hitoverride

IMO your state -1 is totally wrong.


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.

jailuis

lol srry! that wasnt my state -1 xD

[State -1, Combo Breaker!]
type = changestate
value=9013
triggerall=movetype=H
triggerall = power >= 1000
trigger1 = command = "HyperA"
trigger1=ctrl

BTW do I need hittoverride instead of changestate in STATE -1??

Cyanide

It looked like a state -1. I doubt you typed them so it's a copy paste job.

Is the one above still in state -1? What's happening with it as a changestate? Turn on debug, do the move during a combo and tell me if it enters 9013, even if it's only for a fraction of a second.


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.

jailuis

Well I got to do it...but I dont know if its "talking as coder" well...I just used a CtrlSet in state 5000(getting hitstate), then use a hittoverride when the Ctrl=1...I dont know if I should do that..what do u think..

PS: PLZ dont say "if its work for u then its RIGHT!" cuz I want YOUR oppinion as coder...that maybe useful or not?

Byakko

I don't understand what you want to know by making this topic. Do you want to know if your code is clean enough ?
As far as coding goes, I don't understand why you need to give control then trigger your changestate with ctrl. If you want a move where you break out of a gethit state, you don't need to care about having control, all you need is "be in gethit", "do this command" and "have enough power", possibly "don't be in the air". Besides, it's way too dangerous, since all of your other moves probably just require ctrl and don't check if you're not in a gethit move.
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.

jailuis

when in stateno 5000-5010,etc...you got NO CONTROL, so u CANT do any of these attack...thats why I set ctrl..

Byakko

.....
Ctrl is just a flag that is on or off. In your statedef -1, you set up changestates with various triggers. You may or may not want to use ctrl as a trigger.
If you don't have control, you CAN set up a changestate that does NOT check if you have control. Just... REMOVE the line that says "trigger1 = ctrl", and you'll see, you'll be able to perform the move even if you don't have control.
Chances are, you DO NOT want to be able to perform a regular light punch or any other special attack when you are in a gethit state. So you don't want to have control while in gethit state.
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.

jailuis

U got no Idea of HOW THANKFULL am I! :)