YesNoOk
avatar

CMD problem. Move not working. (SOLVED) (Read 5286 times)

Started by Momotaro, July 08, 2022, 11:03:05 pm
Share this topic:
CMD problem. Move not working. (SOLVED)
New #1  July 08, 2022, 11:03:05 pm
  • *****
  • A.K.A. NED
  • I like to draw fighting game characters...
(SOLVED)
Working on a custom Chun-Li. Based on the masterpiece by JMorphman.

Right now, I try to restore her Tenshokyaku as a Normal Chun-Li move.
Giving a dragon punch motion + Kick.

But the move cannot be done.
I already removed the mode detect variable for this move var40
But there is still a problem.

(I already managed to restore her Super : Hanzan Tenshokyaku, but I cannot restore the special move)

This is the edited code : (What's wrong ?)

Code:
[State -1, Tenshokyaku ajout]
type = ChangeState
value = 1400
triggerAll = !AILevel
;command = "dragon punch"
triggerAll = (ifElse(P2dist x < 0, Facing = -1, Facing = 1) && NumExplod(90010203)) || (ifElse(P2dist x < 0, Facing = 1, Facing = -1) && NumExplod(90010301))
;a / b / c
triggerAll = NumExplod(90000230) || NumExplod(90000235) || NumExplod(90000240) || NumExplod(90000245) || NumExplod(90000250) || NumExplod(90000255)
triggerAll = RoundState = 2 && StateType != A && !NumProjID(131035)
trigger1 = ctrl || StateNo = 40 || StateNo = 52 || (StateNo = [100,101])
trigger2 = var(6)

Seems like an input problem, because the AI can do it. (with this code)
Code:
[State -1, Tenshokyaku]
type = ChangeState
value = ifElse(Power >= 500 && Random < 133 && var(20) <= 60, 1430, 1400)
triggerAll = AILevel && NumEnemy;;;;;;;;;;;;;;;;;; && var(40)
triggerAll = RoundState = 2 && StateType != A && !NumProjID(131035)
triggerAll = !var(16) && (var(15) < 1 || var(20))
triggerAll = P2StateType != L && (P2Dist y = [-120,0])
triggerAll = ((P2BodyDist x = [-30,30]) && P2StateType != A) || ((P2BodyDist x = [0,120]) && P2StateType = A)
trigger1 = (ctrl || StateNo = 52 || (StateNo = [100,101])) && Random < (25 * (AILevel ** 2 / 64.0))
trigger2 = var(6) && MoveHit && Random < (100 * (AILevel ** 2 / 64.0))
trigger2 = EnemyNear, GetHitVar(HitTime) >= 3
trigger3 = (StateNo = 5120 || StateNo = 5201) && !AnimTime && Random < (50 * (AILevel ** 2 / 64.0))

I'm pretty sure it's a stupid thing I didn't noticed... But I have no clue right now.
Last Edit: July 10, 2022, 04:35:18 pm by Momotaro
Re: CMD problem. Move not working.
#2  July 10, 2022, 06:41:03 am
  • ***
    • USA
    • r.coburn08@yahoo.com
[State -1, Tenshokyaku ajout]
type = ChangeState
value = 1400
triggerAll = !AILevel
triggerAll = command = "dragon punch"
triggerAll = (ifElse(P2dist x < 0, Facing = -1, Facing = 1) && NumExplod(90010203)) || (ifElse(P2dist x < 0, Facing = 1, Facing = -1) && NumExplod(90010301))
;a / b / c
triggerAll = NumExplod(90000230) || NumExplod(90000235) || NumExplod(90000240) || NumExplod(90000245) || NumExplod(90000250) || NumExplod(90000255)
triggerAll = RoundState = 2 && StateType != A && !NumProjID(131035)
trigger1 = ctrl || StateNo = 40 || StateNo = 52 || (StateNo = [100,101])
trigger2 = var(6)
Re: CMD problem. Move not working.
New #3  July 10, 2022, 11:27:29 am
  • *****
  • A.K.A. NED
  • I like to draw fighting game characters...
[State -1, Tenshokyaku ajout]
type = ChangeState
value = 1400
triggerAll = !AILevel
triggerAll = command = "dragon punch"
triggerAll = (ifElse(P2dist x < 0, Facing = -1, Facing = 1) && NumExplod(90010203)) || (ifElse(P2dist x < 0, Facing = 1, Facing = -1) && NumExplod(90010301))
;a / b / c
triggerAll = NumExplod(90000230) || NumExplod(90000235) || NumExplod(90000240) || NumExplod(90000245) || NumExplod(90000250) || NumExplod(90000255)
triggerAll = RoundState = 2 && StateType != A && !NumProjID(131035)
trigger1 = ctrl || StateNo = 40 || StateNo = 52 || (StateNo = [100,101])
trigger2 = var(6)

Thanks for your help but his is not a problem due to the fact this line is disabled.
;triggerAll = command = "dragon punch"

actually "dragon punch" is not even a valid command. I just wrote it here as a placeholder

This character use the "Explodsive" buffering system you can see in some of JMorphman characters.
So, the input are based on helpers. here dragon punch when facing right and when facing left.

;R, D, DR:               (F, D, DF)         90010203
;L, D, DL:               (B, D, DB)         90010301

------------------------------------------EDIT

(SOLVED !!!)
I managed to get where was the problem.

the CMD file was missing the actual helper.
I think JMM deleted it (for optimisation) because initially, Chun-Li don't need a dragon punch motion.

It works! Finally ^^
Last Edit: July 10, 2022, 04:36:49 pm by Momotaro