YesNoOk
avatar

Character wont crouch and crouch related move also wont trigger. (Read 3802 times)

Started by Carmell, September 16, 2020, 04:07:19 pm
Share this topic:
Character wont crouch and crouch related move also wont trigger.
#1  September 16, 2020, 04:07:19 pm
  • ***
    • USA
The crouch related animation absolutely exists but for some reason wont trigger. I think POTS mustve deleted the crouch related code back when I hired him in 2009ish because I didnt have a crouch animation back then and probably told him it wasnt needed. Now that Ive made one like I made one for my last character it doesnt work



Anyway this is how the code segment currently looks.

; Crouching
[Statedef 10]
type= S
physics= N
movetype= I
sprpriority= -1

[State 10, End]
type= changestate
trigger1= 1
value= ifelse(command="holdfwd" ^^ command="holdback", 20, 0)

[Statedef 11]
type= S
physics= N
movetype= I
sprpriority= -1

[State 11, End]
type= changestate
trigger1= 1
value= ifelse(command="holdfwd" ^^ command="holdback", 20, 0)

[Statedef 12]
type= S
physics= N
movetype= I
sprpriority= -1

[State 12, End]
type= changestate
trigger1= 1
value= ifelse(command="holdfwd" ^^ command="holdback", 20, 0)



How do I repair it to a more normal state?




Problem #2

Also I created a new Crouching Strong Punch but even though the new statedef is there it refuses to acknowledge it


;Crouching Strong Punch
[State -1, Crouching Strong Punch]
type = ChangeState
value = 410
triggerall = var(59)<=0
triggerall = command = "z"
triggerall = command = "holddown"
trigger1 = statetype != A
trigger1 = ctrl || stateno=100
trigger2 = (stateno = 200) && time > 5
trigger3 = (stateno = 230) && time > 6


whenever I try to perform the move it just performs regular strong punch. I dont remember doing anything different when I added a new crouch move variant to the last character so I think it might be related to the fact that I cant enter the crouch state?
Last Edit: September 20, 2020, 07:27:49 pm by Carmell
Re: Character wont crouch and crouch related move also wont trigger.
#2  September 18, 2020, 01:50:20 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Mugen\data\common1.cns

Find the crouch code in there and swap it out. Easiest method.

For your move problem. Make sure that changestate is above the one for strong punch.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Character wont crouch and crouch related move also wont trigger.
#3  September 20, 2020, 07:27:19 pm
  • ***
    • USA
Thank you. Both worked but I was curious why the default 410 wasnt working and apparently all I needed to do was change

 trigger1 = statetype != A

to

trigger1 = statetype = S and trigger1 = statetype = C