I will not be editing the mugen code directly (regarding cns code) instead I am using a tool that generates cns code that should help me to standarize the code for all the characters;
Care to give more info about this?
this is samus "cns" code for a basic attack:
parent = vgm_statedef_normal
[State Idle ]
parent = vgm_backToIdle
Trigger1 = !AnimelemTime(5)
parent = vgm_soundNormal
[State Counter Hit Damage]
parent = vgm_counterHitDamage
[State hit ]
parent = vgm_hitdef_normal_weak
Trigger1 = !AnimelemTime(4)
Damage = Floor((29+((random%1)*9.8))*fvar(0)), 0
SparkXY = 0, -75
GuardFlag = L
Type = PosAdd
Trigger1 = AnimElemTime(1) = 0
X = ifelse(((P2BodyDist X)-(EnemyNear,Vel X)-(EnemyNear,GetHitVar(xvel)) )> 10 ,10,floor((P2BodyDist X)-(EnemyNear,Vel X)-(EnemyNear,GetHitVar(xvel))))
words that start with a # are constants that get looked up at another file and then get pasted where the #word was.
state controllers that have this line
parent = X
get their parent looked up at another definition file, the behaviour is that the parent sctrl's values are used, then the parameters that are in the current state sctrl substitute same the parameters from the parent.