News:

MFG's Character of the Month: October 2026 Nominations

Main Menu

Throw code not working

Started by mrgamer123, March 07, 2018, 09:00:20 AM

Previous topic - Next topic

mrgamer123

I am trying to make a throw code for a character. But he/she just won't do the throw.

Code:

;Throw 1
[State -1]
type = ChangeState
value = 800
triggerall = AILevel = 0
triggerall = command = "y"
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != 100
trigger1 = command = "holdfwd"
trigger1 = p2bodydist X < 10
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H
trigger2 = command = "holdback"
trigger2 = p2bodydist X < 10
trigger2 = (p2statetype = S) || (p2statetype = C)
trigger2 = p2movetype != H

Odb718

So this is just the changestate. You're pretty new so I'm not sure of your coding level.
The changestate only get you into the state. The statedef for the throw is in the CNS file.

Add this right about the code you posted

[State -1]
type = ChangeState
value = 800
triggerall = statetype = S
triggerall = ctrl
trigger1 = command = "y"

And see if pressing y will get you into statedef 800. If it does, slowly add all of the triggers back in until it wont work any longer.

If it doesn't and you have a statedef 800, move the changestate I just posted to the top of your changestates in your statedef -1/cmd file. Not at the very top of the file, but make it so it's the first changestate.
If it still doesn't allow you into statedef 800, post your statedef 800 here. (in a spoiler)
vVv Gouken718 vVv SabreTooth718 vVv