YesNoOk
avatar

How to "All damage taken in this state is added to var69 instead"? (Read 3111 times)

Started by Mimikyutest77, July 09, 2019, 12:13:48 am
Share this topic:
How to "All damage taken in this state is added to var69 instead"?
#1  July 09, 2019, 12:13:48 am
  • avatar
  • **
    • UK
How do I make a move that has no offensive foe-damaging hitbox, but instead has an "All damage that the foe would take in this state is instead added to Variable 69, also this state can't be left until 7 frames after the most recent attack has finished hitting it, and every attack that hits this state refreshes the state's duration and adds more to variable 69" effect?

And how do I code a "This move deals one point of damage, plus the entire Variable 69 number, then sets Var69 back down to 0" move?
Re: How to "All damage taken in this state is added to var69 instead"?
#2  July 09, 2019, 12:54:55 am
  • *****
  • Shame on you!
    • USA
You're going to need a variable for a timer.
You'll need to have a combo-counting type set up in Statedef -2 that will do a VarAdd to that timer.
 
I think the easiest way to count up the hit points/damage, would be to duplicate ALL of your hitdefs and make them only affect your Team, and only trigger if the timer variable is >=2.

You'll be able to watch the Helper's Life value. That'll be your damage. You'll check that value is less than maximum AND if the time variable is OVER 0.
When making the timer, DO NOT RESET IT TO 0 in statedef -2. What ever state you make the final part of the move will reset everything to 0. The Helper will destroy itself, and the counting var will reset to 0.

When testing this, You'll make your helper use animations. Once everything is good, use a blank animation with hitboxes.
vVv Ryuko718 Updated 10/31/22 vVv
Re: How to "All damage taken in this state is added to var69 instead"?
#3  July 09, 2019, 04:08:42 am
  • ****
  • CPU Purple Heart
    • USA
    • https://www.pixiv.net/en/users/8108265
Wait, there's a variable number 69? :P
Re: How to "All damage taken in this state is added to var69 instead"?
#4  July 10, 2019, 10:22:59 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
No. 0-59 for vars 0-39 for fvar and i never bother with sysvar but i think thats 0-4.

69 ain't gonna work.


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 "All damage taken in this state is added to var69 instead"?
#5  July 10, 2019, 03:28:55 pm
  • avatar
  • ***
  • ̢̻̮̫̬̹̞̼̲̪̜̭͇̲͒ͪ̌ͬ̒̄̔̐͘͟ͅ ̢̋ͬ̓͗̏̇̌̑͐ͤ͗̔̊̕͏̴̣͎̟͈̬͚
    • Monaco
http://signavatar.com/32255_s.gif

please visit my request thread. here
bad grammar is art
Re: How to "All damage taken in this state is added to var69 instead"?
#6  July 10, 2019, 10:19:45 pm
  • ****
  • CPU Purple Heart
    • USA
    • https://www.pixiv.net/en/users/8108265