YesNoOk
avatar

Possible to trigger a helper have a parent? (Read 12589 times)

Started by beterhans, February 08, 2015, 03:27:17 pm
Share this topic:
Possible to trigger a helper have a parent?
#1  February 08, 2015, 03:27:17 pm
  • ****
if I use
parent,xxxxxx and the parent doesn't exist.

there will be a lots of errors.

Is there possible like ParentExist or NumParent?
Re: Possible to trigger a helper have a parent?
#2  February 08, 2015, 04:20:53 pm
  • ******
  • A living Mugen dinossaur :)
  • 23 years of Mugen O_o
    • Brazil
    • www.brazilmugenteam.com
1- Make the root do the helper check, and let the child set a root variable for that.
2- the child helper should reset that the root variable before it gets destroyed or root does it.
3- Then, the granchild (root > child > granchild) should check that root variable.

For example, lets imagine that your char "RYU" (which is the root) has a helper called CIRCLE (child) who spawns a SQUARE helper (granchild).
Ryu spawns CIRCLE. Circle sets the root var (40) =1. SQUARE checks if the root var is 1. Whenever CIRCLE is destroyed, it sets the root var(40)=0 (or RYU checks it there is any CIRCLE. If not, resets the variable)

So, you will need to add a triggerall = root, var(40) on the granchild.
Last Edit: February 08, 2015, 04:27:34 pm by Mr. White Knight
Re: Possible to trigger a helper have a parent?
#3  February 10, 2015, 06:18:57 am
  • avatar
  • *****
  • Sr. Black Person
  • Mess with the chuchu you get the pewpew
    • USA
    • Kamekaze.world
root,numhelper(x) =1 or >0 as a triggerall

You can check for any helper regardless of who spawned it in the helpers as the helpers are always owned by the root.
Want to feel useful for a useless show? click here
119/150 Chars, I'm not dead yet....the true surprise is in my thread.
Hahahah fuck you photobucket.
Re: Possible to trigger a helper have a parent?
#4  February 10, 2015, 02:48:48 pm
  • ******
  • A living Mugen dinossaur :)
  • 23 years of Mugen O_o
    • Brazil
    • www.brazilmugenteam.com
Are the helpers owned by the root too? Like projectiles does?
Quote
All projectiles created by helpers immediately become owned by the root.
There is no mention about it at the manual.
Re: Possible to trigger a helper have a parent?
#5  February 10, 2015, 02:58:55 pm
  • avatar
  • *****
  • Sr. Black Person
  • Mess with the chuchu you get the pewpew
    • USA
    • Kamekaze.world
I know it's not there but if you check the debug the helper is the root's first and parent's second. My ruby wouldn't exist if this weren't the case lol
Want to feel useful for a useless show? click here
119/150 Chars, I'm not dead yet....the true surprise is in my thread.
Hahahah fuck you photobucket.
Re: Possible to trigger a helper have a parent?
#6  February 10, 2015, 03:10:21 pm
  • ******
  • A living Mugen dinossaur :)
  • 23 years of Mugen O_o
    • Brazil
    • www.brazilmugenteam.com
Now that you are talking, I guess it makes sense (but its not totally right on a programming view) since the parent is owned by the root anyway.
Re: Possible to trigger a helper have a parent?
#7  February 10, 2015, 04:58:04 pm
  • ****
root,numhelper(x) =1 or >0 as a triggerall

You can check for any helper regardless of who spawned it in the helpers as the helpers are always owned by the root.
WOW that's works!

Thank you so much