Remove orphaned explods

Started by supercain, July 11, 2020, 09:32:05 PM

Previous topic - Next topic

supercain

Hi,

Is it possible to remove or modify explods if the helper that created them doesnt exist anymore? I have some orphaned explods all over the place and I cant take them out.

Thank you.

Cyanide

If the helper is disappearing it would make sense to run a removeexplod on the helper during its death state. If you don't specify an id it ought to kill all of them.


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.

supercain

Thats the problem. The helper is already dead and only its explods remains. I need to remove them when I execute a custom state.

Nep Heart

 You can always have the helper change to a standby state that won't destroy self until all explods owned by it are removed.

If you don't want to do that, you may have to spawn those explod in statedef -2/-3 whenever the helper is present and then removeexplod when the helper is no longer present.

beterhans

Quote from: supercain on July 11, 2020, 09:32:05 PM
Hi,

Is it possible to remove or modify explods if the helper that created them doesnt exist anymore? I have some orphaned explods all over the place and I cant take them out.

Thank you.

in Mugen 1.1

destroy a helper like this will remove all helpers and explods belongs to that helper

[State 985, End]
type = DestroySelf
trigger1 = xxxx
removeexplods = 1
recursive = 1

supercain

The helper is already destroyed.  I need to destroy its explods after that.

XGargoyle

You have been given different ways to solve your problem, all of them work and it's just a matter for you to choose what works best for you.
A) set the removecplod with the same triggers as the destroyself
B) have the helper go to a vanishing or empty state where he's invisible, remove the explod there and then do the destroyself
C) use mugen 1.1
Or D) spawn the explods through the -2/-3 states as well as the removeexplods

If you don't want to do any of them, there's nothing else we can help you.


XGargoyle: Battle posing since 1979
http://xgargoyle.mgbr.net
http://www.pandorabots.com/pandora/talk?botid=e71c0d43fe35093a  <-- Please click that link
http://paypal.me/XGargoyle  <-- Donations welcome!

supercain

There is actually too many helpers that leave orphaned explods which I need to remove at a given time so I cant just go and modify each of those helpers because it would be overwhelming.  Thats why I need something that can just remove the orphaned explods regardless of the helper. I use mugen 1.1 by the way.

Nep Heart

#8
 Once a helper is destroyed, all explods spawned from it cannot be manipulated in any way afterwards. That's just how it works, there is no simple shortcut for this kind of thing.

If my two suggestions are not something you want to use, the only other suggestion I can give is have a removeexplod with ID = -1 inside every helper and the helper does not destroyself until those explods are no longer present.

supercain

Hmm, I see. If thats the only way around I think I will have to stick to it.

Thank you.

Archimonde

Unless, there is another helper which take part into that helper slot, and that orphane explod might be belong to that new helper. Because both player and helper pointer address is fixed during the match(in mugem memory ofc), so i think imight be had another solution for your question. But it's depend on your luck, bc that orphans explod could be belong to your own helper or enemy helper. Hope it's useful to you.
------Tremble Mortal and Despair. Doom has come to this world------