YesNoOk
avatar

How to make normal attacks destroy projectiles? (Read 1987 times)

Started by Mr. Giang, May 19, 2018, 05:04:25 am
Share this topic:
How to make normal attacks destroy projectiles?
#1  May 19, 2018, 05:04:25 am
  • ***
  • The Illusionary Wanderer
  • I have a dream
    • Vietnam
I want to make a character able to destroy projectiles using normal command attacks but I have no idea where to start (maybe an invisible helper with clsn to tank the projectiles?). How can I do this?
Re: How to make normal attacks destroy projectiles?
#2  May 19, 2018, 05:52:27 am
  • ****
  • Cute Bounty Hunter
That's really easy.  Just add a "P" in the hitflag of the HitDef.
Re: How to make normal attacks destroy projectiles?
#3  May 19, 2018, 06:00:03 am
  • avatar
  • **
    • USA
This is something I've thought about before, so I just tested it.  If you add P (for projectile) to the hitflag of your attacks, they will cancel a projectile successfully.  Not tested on helper projectiles, though.  Maybe you'll also need to use NP instead of NA for an attr?
Re: How to make normal attacks destroy projectiles?
#4  May 19, 2018, 07:17:57 am
  • ***
  • The Illusionary Wanderer
  • I have a dream
    • Vietnam
Re: How to make normal attacks destroy projectiles?
#5  May 19, 2018, 12:48:44 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Helper projectiles will depend entirely on code. Normally if the person has allowed them to be hit its based on the attr line of the hitdef. So np sp or hp. To counter you can actually create your own 0 damage projectile with numhits = 0 in the hitdef with the required parameters that sits within yor characters clsn boxes.


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.
Re: How to make normal attacks destroy projectiles?
#6  May 19, 2018, 04:22:43 pm
  • ***
  • The Illusionary Wanderer
  • I have a dream
    • Vietnam
Helper projectiles will depend entirely on code. Normally if the person has allowed them to be hit its based on the attr line of the hitdef. So np sp or hp. To counter you can actually create your own 0 damage projectile with numhits = 0 in the hitdef with the required parameters that sits within yor characters clsn boxes.

Doesn't work I'm afraid (or maybe I messed it up somewhere):
Spoiler, click to toggle visibilty
Re: How to make normal attacks destroy projectiles?
#7  May 20, 2018, 05:11:39 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Your attr is NA. Thats not what hit override works with. Try HP instead. Should counter everything ASSUMING that the code is in your opponent. If they don't let their helper get hit you're out of luck


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.
Re: How to make normal attacks destroy projectiles?
#8  May 20, 2018, 05:56:25 am
  • ***
  • The Illusionary Wanderer
  • I have a dream
    • Vietnam
It works! Thanks a lot!