YesNoOk
avatar

An actual working poison effect outside of fullgames? (Read 861 times)

Started by Ricepigeon, March 26, 2010, 05:48:08 am
Share this topic:
An actual working poison effect outside of fullgames?
#1  March 26, 2010, 05:48:08 am
  • *****
  • Mega Klinklang confirmed
    • USA
    • ricepigeon.webs.com
Okay so basically I was fiddling around with ShowBuySpirit's Umbreon, and then noticed something that caught my eye. What this Umbreon intrigues me the most is the fact that it accomplished something that, iirc, was pretty much proven not to work outside of fullgames:

A working poison mechanic

I looked over the code and there are a few irregularities that should prevent it from working but it does anyway (maybe hes taking advantage of a few bugs?). Anyway, it works something like this:

1.) Umbreon uses Toxic, which creates a helper with a single CLSN1 that sends the opponent into a custom state when he/she touches it.
2.) Opponent touches Toxic, and is sent to a custom hitstate with a Hitdef and a single CLSN1 active (despite the fact its in a hitstate, not an attacking state, as its declared as movetype=H)
3.) At the same time, the Toxic helper spawns another helper in an idle state with a single CLSN1 and a reversaldef active. The reversal.attr and the hitdef.attr are identical (C, HP)
4.) The new helper, despite being in an idle state (movetype=I), retains the opponent as a target, and uses a TargetLifeAdd stcrl to decrease the opponent's health, hence the "poison"
5.) opponent is sent back to his/her regular states and is never sent into another custom state or hit by any helpers with any hitdefs active. Poison effect persists.

I have a feeling that this code is exploiting some bug, due to the fact the helper is able to hold a target despite not being in a movetype=A state (same applies for the opponent when he/she is in a movetype=H state, which should not activate any hitdefs at all, thus preventing the Helper's reversaldef from working). Any thoughts?

<<-- Updated 09/14/14

You limit yourself so badly when you try to avoid variables. When you get over your fear of the "complexity" of variables, you will find yourself in a better place: A beautiful world where coding is actually fun.
Re: An actual working poison effect outside of fullgames?
#2  March 26, 2010, 06:17:46 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Yes this works. It's in koopakoots Shiki as well.

Basically, for some fucked up reason the reversaldef allows you to retain a target.

It functions, it's fair, it doesn't spam debug (go figure) and we don't know if elecbyte will rescind it at some point although we hope to have some sort of available poison code before that happens.


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: An actual working poison effect outside of fullgames?
#3  March 26, 2010, 09:49:56 am
  • ***
  • +1 to whoever added Godzilla to the main index.
Theoretically, you only need to hit your partner once to heal him throughout the match.
i think we should call it an "engine" so we don't look like total idiots because otherwise we'd be arguing about a "game" and that would be somehow "dumber" than arguing about an "engine" on the "internet" for countless hours

Iced said:
I for one, do not enjoy round corners!  :bigcry:
But they hurt much less when we accidentally hit them!  :S