YesNoOk
avatar

Minus Life Constantly without Gethit or State (Read 24579 times)

Started by BoyBoyz, July 18, 2015, 08:25:47 pm
Share this topic:
Minus Life Constantly without Gethit or State
New #1  July 18, 2015, 08:25:47 pm
  • ***
So I'm trying to implement this poison move that minuses the enemy's life constantly WITHOUT the enemy flinching to any hitdef or entering any state.

I've tried targetlifeadd or lifeadd of enemy in a state, but thing is I don't want enemy to be in a state or stuck.  I want the enemy to be able to move normally but still have the life minusing constantly.  This was achieved in Pokemon Type Wild, poison move.

Any ideas?
Last Edit: July 20, 2015, 06:11:34 pm by BoyBoyz
Re: Minus Life Constantly without Gethit or State
#2  July 18, 2015, 08:38:53 pm
  • *****
  • ???
    • UK
    • Skype - koopakootmugen
You could try with a custom get hit state that has an active hitbox, and a helper with a reversaldef. This allows the helper to affect the target whilst they are able to move.
Re: Minus Life Constantly without Gethit or State
#3  July 18, 2015, 08:40:57 pm
  • ***
Holy shit... that was wicked.  Only the pros can think of such things.  I'll try it out.
Re: Minus Life Constantly without Gethit or State
#4  July 19, 2015, 01:57:06 am
  • ****
  • Hey, I'm Grump!
    • USA
    • soldier.ucoz.net/
Impossible outside of a full-game. It would have to be coded in each individual character. For example, you'd have to make it so that  the poisoner sets a var when poisoning an enemy and said poisoned character has a lifeadd that reduces their health based on when the poisoner's var is active. And it also has to read that it's fighting the poisoner or else it'll read everyone's var. I've never tried it myself so you'll probably have to work out a few things, but that's the gist of it.

(Youtube) (WIP) (Mediafire) (New Anime Shop) My Manga Reviews! Personal favorite Patreon! Check her out!

"There is nothing either good or bad, but thinking makes it so."
Re: Minus Life Constantly without Gethit or State
#5  July 19, 2015, 02:11:27 am
  • ****
  • Robotics Engineer
    • USA
    • altoiddealer@gmail.com
I'm not sure offhand when a target gets dropped... whether immediately after recovering from hit, or when they are hit by something else...

But IF the latter, then you could TargetLifeAdd in State -2... but u would need to use an ifelse on all your other ID parameters to prevent the ID from changing lol

So if the poison hitdef ID is 1000;

Id = IfElse(numtarget(1000),1000,240)

Then TargetDrop when poison expires


However I think targets drop sooner than this to work

Re: Minus Life Constantly without Gethit or State
#6  July 19, 2015, 06:20:21 am
  • ****
  • Hey, I'm Grump!
    • USA
    • soldier.ucoz.net/
Actually, I managed to set a var to the target's id when it exists and it lasts indefinitely. It's how I use my Doom effect on my Agrias. I never considered that. I could test out a poison effect with that var.
Yeah it's not possible. It would have to interrupt the opponent in order for poison to work. Meaning it can't work.

(Youtube) (WIP) (Mediafire) (New Anime Shop) My Manga Reviews! Personal favorite Patreon! Check her out!

"There is nothing either good or bad, but thinking makes it so."
Last Edit: July 19, 2015, 06:29:51 am by Noctis
Re: Minus Life Constantly without Gethit or State
#7  July 19, 2015, 10:52:34 am
  • ***
Oh man... means the closest I can get is setting a full screen helper to hit the enemy and minus the life, at gametime%100 for example, so that p2 can still move around normally.  Sucky poison move :(
Re: Minus Life Constantly without Gethit or State
#8  July 19, 2015, 03:38:55 pm
  • *****
  • ???
    • UK
    • Skype - koopakootmugen
Re: Minus Life Constantly without Gethit or State
#9  July 19, 2015, 04:28:54 pm
  • ***
Yes I need help. With the custom state below, enemy can only stand still and not flinch as the poison ticks away.  However, if enemy moves around or jumps, he still gets hit.  I've no idea how to continue.  Is it I must create more custom states for every gethit?

[State 200, ]
type = HitDef
trigger1 = gametime%10 = 0
attr = A, SP
damage = 2,0
numhits = 0
animtype = light
hitflag = MAFD
pausetime = 0,0
sparkno = s-1
sparkxy = -6, -76
ground.type = High
ground.slidetime = 0
ground.hittime  = 0
ground.velocity = 0
guard.hittime  = 0
guard.ctrltime = 0
air.velocity = 0
air.fall = 0
ID = 243
kill = 0
p2stateno = 244
;---------------------------------------------------------------------------
Poisoned
[Statedef 244]
type = S
movetype = H
physics = N
velset = 0,0

[State 1020, 1]
type = PlayerPush
trigger1 = 1
value = 0

[State 1020, 2]
type = ChangeAnim2
trigger1 = time = 0
value = 244

[State 1300, ReversalDef]
type = ReversalDef
trigger1 = time = 0
reversal.attr = SCA, AA, AT, AP
pausetime = 0,0
p2stateno = 244

[State 1020, 5]
type = selfstate
trigger1 = time = 1
value = 0
ctrl = 1
Re: Minus Life Constantly without Gethit or State
#10  July 19, 2015, 06:22:27 pm
  • ****
  • Hey, I'm Grump!
    • USA
    • soldier.ucoz.net/
If it works then good for you, Boyz!
But to my knowledge it was impossible to have your opponent lose health consistently as if poisoned without interrupting their attacks and whatnot before. How is it suddenly possible now?

(Youtube) (WIP) (Mediafire) (New Anime Shop) My Manga Reviews! Personal favorite Patreon! Check her out!

"There is nothing either good or bad, but thinking makes it so."
Last Edit: July 19, 2015, 07:39:09 pm by Noctis
Re: Minus Life Constantly without Gethit or State
#11  July 19, 2015, 06:30:07 pm
  • ***
It's working.  I'm just missing something in the code above.  Hope Koop enlightens us soon xD
Re: Minus Life Constantly without Gethit or State
#12  July 19, 2015, 07:40:17 pm
  • ****
  • Target Acquired.
    • Ukraine
    • mugencoder.com
If it works then good for you, Boyz!
But to my knowledge it was impossible before. How is it suddenly possible now?

It's possible only through the exploit of a bug in mugen. I think it's been there since WinMUGEN. Elecbyte never chose to fix it because people were using it as a feature. They're also lazy and don't fix much, lol.

-[Все слова это только слова.]-
Re: Minus Life Constantly without Gethit or State
#13  July 20, 2015, 07:24:47 am
  • *****
  • Shame on you!
    • USA
Look at my Metroid Ultra in my Samus (linked in the signature)
It does exactly what you want. You do have to HIT the enemy 1 time. but you could make a custom state that's 1 tic and selfstates so you wouldnt notice it too much.

----
If you dont recognize Samus, she's the second character....
vVv Ryuko718 Updated 10/31/22 vVv
Re: Minus Life Constantly without Gethit or State
#14  July 20, 2015, 06:11:23 pm
  • ***
Thanks all!! Finally got it.