YesNoOk
avatar

QN: Target, movetype = H (Read 1229 times)

Started by Redash, February 23, 2018, 01:19:03 pm
Share this topic:
QN: Target, movetype = H
#1  February 23, 2018, 01:19:03 pm
  • avatar
  • **
    • Singapore
Hi,

Wonder when is "target,movetype=H" used?

I thought it is used in triggers to tell if the target is "Hit" but it seems not working...

E.g: under the state controller of a Helper-type projectile CNS coding, (highly simplifed)

Type = changestate
Trigger1 = target,movetype=H ; NOT working...
Value = 0 (my goal here is to recover from firing position to standing pose after Helper-Type projectile hits)
Ctrl = 1

But if i used the below it works...
Type = changestate
Trigger1 = numhelper(####) = 0
Value = 0 ; my char returned to standing pose
Ctrl = 1

Then i tried below it failed again...
Type = changestate
Trigger1 = numhelper(####) = 0
Trigger1 = target,movetype=H ; NOT working...
Value = 0 ; my char STUCK in firing pose anim even AFTER the Helper-type projectile hits...
Ctrl = 1

I had tried p2movetype and it works to some extend but still not reliable in team fight modes.

Hence my qns... need help explaining how target,movetype = H works... cuz i may have misunderstood its intend... any docs will be helpful.

Or in other words, how do we detect a hit for Helper-type projectiles???
Re: QN: Target, movetype = H
#2  February 23, 2018, 01:24:05 pm
  • avatar
  • **
    • Singapore
I seem to see a double.post but it says i cannot delete.my.own posts :^p
Re: QN: Target, movetype = H
#3  February 23, 2018, 02:28:50 pm
  • ******
Because P1 isn't the one who hit the target, that's why he doesn't do anything. The helper is the one that makes contact, so target redirection will only work with that helper.

Use enemy,MoveType=H instead.
Re: QN: Target, movetype = H
#4  February 23, 2018, 03:19:41 pm
  • ******
  • Hedgehog Whisperer
  • Red Bull addict
    • Spain
    • xgargoyle.mgbr.net
if the enemy blocks the hit, it is also counted as movetype=H
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: QN: Target, movetype = H
#5  February 23, 2018, 04:05:44 pm
  • ****
  • Robotics Engineer
    • USA
    • altoiddealer@gmail.com

Re: QN: Target, movetype = H
#6  February 24, 2018, 11:38:44 am
  • avatar
  • **
    • Singapore
Oh it worked. Nv expect a helper hit not same as root hit and a blocking is also a hit... i wasted my time to check for guard states [120,155]...

Nv seen helper(),movehit too.

 Thanks much. Learned something new
Re: QN: Target, movetype = H
#7  February 25, 2018, 09:38:06 am
  • *****
  • Shame on you!
    • USA
Dont forget to press solved at the bottom left of the thread's page when you get the answer(s) you need.
I'll do this one for you.
vVv Ryuko718 Updated 10/31/22 vVv
Re: QN: Target, movetype = H
#8  February 25, 2018, 09:39:30 am
  • avatar
  • **
    • Singapore
Thanks Odb718. Will keep tat in mind.