Infinity MUGEN Team

IMT Main => M.U.G.E.N Help => Topic started by: A! on April 24, 2016, 09:25:05 AM

Title: Helper only hits once
Post by: A! on April 24, 2016, 09:25:05 AM
I am currently having trouble making a helper hit more than once.

This is the helper code.

(click to show/hide)

It's coded the way P.O.T.S does his helpers.

Any help would be appreciated.

If there is any confusion, just ask.
Title: Re: Helper only hits once
Post by: Cyanide on April 24, 2016, 11:42:24 PM
Have you read state 3006 through? The hitdef that works (the other one does nothing, don't even know why it's there) only works if anim is 3001. You change to 3006 as soon as the state starts. The helper LEAVES the state if it's anim isn't 3001. Basically, you never reach the hitdef, it enters the state and instantly moves on to 3007
Title: Re: Helper only hits once
Post by: A! on April 25, 2016, 05:48:23 AM
Have you read state 3006 through? The hitdef that works (the other one does nothing, don't even know why it's there) only works if anim is 3001. You change to 3006 as soon as the state starts. The helper LEAVES the state if it's anim isn't 3001. Basically, you never reach the hitdef, it enters the state and instantly moves on to 3007

Why is it not reaching the hitdefs? The helper does exist and it does work it just doesn't hit more than once. Sorry, I'm not really sure what you mean.

If you could quote what is wrong that would be appreciated.

EDIT: While pressing Ctrl + D, I noticed that state 3000 wouldn't changeanim to 3001 when helper 3005 hits the opponent, maybe that's the problem.

Title: Re: Helper only hits once
Post by: Cyanide on April 26, 2016, 04:22:02 AM
That's because it doesn't. It has a changeanim at pretty much the start of the state that sends you to anim 3006.

[State 3006, Anim]
type = changeanim
trigger1 = anim != 3006
value = 3006

What animation did you think it was using cos i can't see anything to indicate it was, or should have been 3001. I mean, even if you set nothing it would be using 3005 from the previous state.
Title: Re: Helper only hits once
Post by: A! on April 26, 2016, 07:46:15 AM
That's because it doesn't. It has a changeanim at pretty much the start of the state that sends you to anim 3006.

[State 3006, Anim]
type = changeanim
trigger1 = anim != 3006
value = 3006

What animation did you think it was using cos i can't see anything to indicate it was, or should have been 3001. I mean, even if you set nothing it would be using 3005 from the previous state.

I'm getting confused here. State 3006 is a helper state which activates after 3005 has hit the opponent.  Changeanim to State 3001 isn't working in state 3000, I don't know why, I'm even using infinite's direct method.

I apologize if I'm sounding stupid, I have been stuck on this for a while.
Title: Re: Helper only hits once
Post by: Cyanide on April 27, 2016, 02:12:13 AM
Go to statedef 3006.

Scroll down a little bit. You will find the code i referenced. That is setting you TO animation 3006. That's what changeanim does. If you have 3006 and want it used, you need to change the references to 3001 to 3006. If you don't have 3006, swap it to 3001. If you don't have either, you need to add one or the other in and modify the code to make use of it.

And, you haven't posted state 3000 at all? Is that the one you copied this off? If you did, you need to change all references, not just some of them. State 3006 if you look (and we are working with 3005,3006 here because that's what you've posted) references anim 3001 both for the hitdef and the changestate out. And you're not USING anim 3001 anywhere.
Title: Re: Helper only hits once
Post by: A! on April 27, 2016, 04:18:33 AM
This is state 3000
(click to show/hide)
Title: Re: Helper only hits once
Post by: Cyanide on April 27, 2016, 04:23:55 AM
That's all stuff that affects the character. Your hitdef AND changestate in state 3006 should not be referencing anim 3001 at all. As that's the helper. Unless you redirect them to the root/parent for example

trigger1 = parent, anim = 3001

In the hitdef, this won't function properly.
Title: Re: Helper only hits once
Post by: A! on April 28, 2016, 03:55:56 PM
That's all stuff that affects the character. Your hitdef AND changestate in state 3006 should not be referencing anim 3001 at all. As that's the helper. Unless you redirect them to the root/parent for example

trigger1 = parent, anim = 3001

In the hitdef, this won't function properly.

My bad, forgot to reply back.

I got it fixed. For some reason time does not work, animelem worked perfectly. I honestly don't know where to start but i changed a lot. It works great now thanks a lot for your patience with me.
SimplePortal 2.3.5 © 2008-2012, SimplePortal