YesNoOk
avatar

Remove orphaned explods (Read 3925 times)

Started by supercain, July 11, 2020, 09:32:05 pm
Share this topic:
Remove orphaned explods
#1  July 11, 2020, 09:32:05 pm
  • avatar
  • **
    • Germany
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.
Re: Remove orphaned explods
#2  July 12, 2020, 03:46:46 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/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.
Re: Remove orphaned explods
#3  July 12, 2020, 04:45:49 am
  • avatar
  • **
    • Germany
Thats the problem. The helper is already dead and only its explods remains. I need to remove them when I execute a custom state.
Re: Remove orphaned explods
#4  July 12, 2020, 05:08:40 am
  • ****
  • CPU Purple Heart
    • USA
    • https://www.pixiv.net/en/users/8108265
 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.
Re: Remove orphaned explods
#5  July 12, 2020, 04:16:25 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
Code:
[State 985, End]
type = DestroySelf
trigger1 = xxxx
removeexplods = 1
recursive = 1
Re: Remove orphaned explods
#6  July 12, 2020, 06:06:48 pm
  • avatar
  • **
    • Germany
The helper is already destroyed.  I need to destroy its explods after that.
Re: Remove orphaned explods
#7  July 12, 2020, 07:26:24 pm
  • ******
  • Hedgehog Whisperer
  • Red Bull addict
    • Spain
    • xgargoyle.mgbr.net
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!
Re: Remove orphaned explods
#8  July 12, 2020, 08:30:14 pm
  • avatar
  • **
    • Germany
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.
Re: Remove orphaned explods
#9  July 12, 2020, 09:30:14 pm
  • ****
  • CPU Purple Heart
    • USA
    • https://www.pixiv.net/en/users/8108265
 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.
Last Edit: July 12, 2020, 11:13:20 pm by Nep Heart
Re: Remove orphaned explods
#10  July 12, 2020, 11:11:24 pm
  • avatar
  • **
    • Germany
Hmm, I see. If thats the only way around I think I will have to stick to it.

Thank you.
Re: Remove orphaned explods
#11  June 15, 2021, 02:04:58 am
  • avatar
  • **
    • Vietnam
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------