Character coding is kinda obscur to me, and I need some help to understand (and succed) my little goal there:
I wish an attack of the character I am editing have several possible animations. Picked randomly between several animations (ll wiht the same hitboxes and frame amount)
I do not find much explanations about this on the web, but I am looking into characters who had similar stuff in there code.
I do looked into the code of "SHANG TSUNG MK1" by "OMEGAPSYCHO"
His reptile form had a stand animation what randomly alternate between two:
[State 0, 1] ;REPTILE
type = ChangeAnim
triggerall = Var(38) = 1
trigger1 = !time
value = ifelse(random<=500,18000,18002)
18000 and 18002 are the two stand animations, but what is the value 500 there ? (there is a anim 500 in the air file, but it is not related to reptile)
Because I do tryed to use that code on the character I am working on :
[statedef 1310]
type = s
movetype = a
physics = s
anim = ifelse(random<=500,1400,1401)
ctrl = 0
velset = 0,0
(the anim 1400 & 1401 are two of the wished anims I made)
So, with this code, it worked. The attack had two different animations, picked randomly, however I still don't kow what the "500" mean there...
But when I tried to had 8 possible aniomations (yes, this is my goal there) it crashed
[statedef 1310]
type = s
movetype = a
physics = s
anim = ifelse(random<=500,1400,1401,1402,1403,1404,1405,1406,1407,1408)
ctrl = 0
velset = 0,0
So, what is wrong between 2 alt anims and 8 there ? Is it the "500" what is the problem there ?