YesNoOk
avatar

[SOLVED] Helpers Hitdef p1stateno to work with other states. (Read 250 times)

Started by KojiroBADNESS, August 16, 2010, 03:13:11 pm
Share this topic:
[SOLVED] Helpers Hitdef p1stateno to work with other states.
#1  August 16, 2010, 03:13:11 pm
  • ***
    • Canada
I am trying to get my characters main state to change when the helper makes contact with the opponent. When I tried "p1stateno" is in the helpers hitdef, as I predicted, it changed the helpers state rather than the character.

I've also tried using a varset but that failed on my part as well. Does anyone know of a better way to handle this?
Last Edit: August 16, 2010, 03:34:16 pm by KojiroBADNESS
Re: Helpers Hitdef p1stateno to work with other states.
#2  August 16, 2010, 03:26:55 pm
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/
You need to use a changestate in the state of your character.

Use the trigger "numhelper(Helper's ID here)" to make sure you have your helper out, and to prevent debug spam. Then you need to use "helper(ID), movecontact" to determine whether your character should change states or not.

It should look something like this:

type - cstate
trigger - numhelper(ID)
trigger - helper(ID), movecontact

You can use other triggers to make sure the opponent didn't parry the attack: "helper(ID),numtarget," etc...
Re: Helpers Hitdef p1stateno to work with other states.
#3  August 16, 2010, 03:33:50 pm
  • ***
    • Canada
Oh geez... I was just that damn close. I tried..

[State 3000, ChangeState]
type = ChangeState
trigger1 = numhelper(3050) && movehit
value = 3205

Well no matter, it works like a charm. Thanks again Rajaa.
Re: [SOLVED] Helpers Hitdef p1stateno to work with other states.
#4  August 16, 2010, 03:41:00 pm
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/
You're welcome.