The Mugen Fighters Guild

Help => M.U.G.E.N Development Help => Topic started by: Nep Heart on September 20, 2018, 04:48:21 am

Title: Counter Hit and First Attack Issues
Post by: Nep Heart on September 20, 2018, 04:48:21 am
 So, recently, I've installed a First Attack and Counter Hit mechanic into my character, which does exactly as you'd expect from them. With normal attacks, these two systems work perfectly fine in every way, but when it comes to helpers, they fail to activate like as if the hits never occurred in the first place. After finding out that helpers cannot read negative states (where I have the systems coded in), I resorted to actually coding them into each helper. The problem is that now each mechanic triggers twice instead when a helper and non-helper attack both meet the conditions.

 What would be the most efficient way to code the systems so that MUGEN reads the code between helpers and non-helpers equally?
Title: Re: Counter Hit and First Attack Issues
Post by: Nep Heart on September 24, 2018, 04:06:05 am
 Bumping just to garner needed attention for my issue.
Title: Re: Counter Hit and First Attack Issues
Post by: MGMURROW on September 24, 2018, 04:14:47 am
easiest way is to set a variable to detect when the first attack is triggered and this will stop the second "first attack" from triggering

hope this helps

MGMURROW
Title: Re: Counter Hit and First Attack Issues
Post by: Nep Heart on September 24, 2018, 10:41:46 am
 Okay, I think I found the solution. The variable conditions were too low for counter hit and first attack occurrences. Bumping them up a value higher each actually prevented them from activating twice when a helper and non-helper both meet the conditions.

 Thanks for your input anyway, I still appreciate your response.