YesNoOk
avatar

Attacks from Helper, then redirect Target to Root? (Read 757 times)

Started by Sheng Long, November 20, 2014, 06:17:59 am
Share this topic:
Attacks from Helper, then redirect Target to Root?
#1  November 20, 2014, 06:17:59 am
  • *****
  • Video Game Veteran
    • USA
    • gcnmario.free.fr
Is it possible that if a helper attacks an opponent, but then disappear or just stays on screen for a bit, is there a way to redirect its target to the root character?

Like for example, helper may put target into a custom state for a bit, but then the target character goes into its own self state. While the helper is no longer there, I would want the root character to put target character into another state without attacking it?

"You must defeat my flaming
dragon punch to stand a chance."
Re: Attacks from Helper, then redirect Target to Root?
#2  November 20, 2014, 07:51:27 am
  • ***
  • Ha hA Haaaaaa.....
    • USA
    • electroslair.blogspot.com/
Let's try this Sheng, why don't you send me the char and tell me what you want and i'll try to make it happen. If I can't do the task then no harm no foul. If I can then you win. I want to explain my idea, but now i'm scared because I couldn't help you in your partner thread, even though i'm sure by myself I could make it happen, but maybe I didn't explain it as well as I should have.
Re: Attacks from Helper, then redirect Target to Root?
#3  November 20, 2014, 02:26:45 pm
  • ****
  • Hey.
    • Ukraine
    • mugencoder.com

  • Online
The only way you can force an enemy into custom states is by hitting them. What you want seems doable though. Basically, it would work like this:

1.) Have this helper hit the enemy and store its ID (target,ID) in a var.
2.) If the var is set, containing the ID of your target, then position the helper on target by redirecting to the player via their ID directly. For example: playerID(var(x)),pos x for their x position.
3.) Now that the helper is basically stuck to the enemy, have the helper hit the target whenever you want them to go into a custom state.

Hope that helps.

-[Все слова это только слова.]-
Re: Attacks from Helper, then redirect Target to Root?
#4  November 20, 2014, 04:20:46 pm
  • **
    • USA
    • altoiddealer@gmail.com
I guess it's also worth mentioning that you can put P2 into a custom state whenever the hell you want, by calling a helper that uses a blank animation w/ a full-screen CLSN box.

See my post here, steps #3 and #4.
Re: Attacks from Helper, then redirect Target to Root?
#5  November 26, 2014, 05:47:55 pm
  • *****
  • Mega Klinklang confirmed
    • USA
    • ricepigeon.webs.com
One workaround that I found involves the use of the Projectile state controller. Since Projectiles created through this controller are immediately owned by the root, even if created by a helper, the root character gains the target information on hit, unlike a Helper-based Projectile.

So yeah, once your Helper makes contact, have the helper spawn a 1x1 projectile that lasts only 1 tick, deals no damage, deals 0 hits, and puts p2 into another custom state. That way the root gains the target info.

<<-- 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: Attacks from Helper, then redirect Target to Root?
#6  November 28, 2014, 12:35:03 pm
  • ***
    • USA
I'm going to need to know that in the future and I'm totally going to forget about this thread... so bookmarked for knowledge.