Hey!got a small problem, trying to make some custom health bars but my explod doesn't seem to be working correctly, here's what i got:State - 2:Quote[State -2, Health Meter]type = Helpertrigger1 = numhelper(19300) < 1trigger1 = var(58) = 1 ; is Bleach Mugenid = 19300name = "Health Meter"postype = p1pos = -99999999999,-99999999999stateno = 19300helpertype = normalkeyctrl = 0ownpal = 1ontop = 1facing = facing*ifelse(teamside=1,1,-1)sprpriority = 7[State -2, Health]type = Varsettrigger1 = teammode = singletrigger1 = var(58) = 1 ; is Bleach Mugenfvar(10) =(Life/100);ignorehitpause = 1Quote[Statedef 19300]type = Amovetype= Aphysics = Nanim = 19500 ; Blank imagesprpriority = 0[State 19300, Explod] ;Health Bartype = Explodtrigger1 = numexplod(19510) = 0trigger1 = teamside = 1anim = 19510id = 19510postype = leftpos = 0,60ownpal = 1bindtime = -1supermove = 9999999999pausemove = 9999999999ignorehitpause = 1ontop = 1facing = 1sprpriority = 6[State 0, ModifyExplod]type = ModifyExplodId = 19510trigger1 = 1scale =(root,fvar(10)/10),1bindtime = -1problem is the little code in scale, if i leave it at 1,1 it's fine, but if i express it that way which is still 1,1 it doesn't show up at all, any ideas ?
Add a displaytoclipbord and see what the fvar is, not quite sure if this will change anything, but when you split it by 100 and 10, and a float of 0, like this: 100.0 and 10.0
Thanks Anjel, 1st steps sorted, it came out as 0 for some reason, I just used this instead:[State 0, ModifyExplod]type = ModifyExplodId = 19510trigger1 = 1scale =(root,const(data.life)/1000.0),1.0bindtime = -1but now when hit the scale doesn't move, any thoughts ???
const(data.life) is a constant, it's the maximum life the character has, so no doubt the scale doesn't moveJust do as you did I guess, but like this :scale =(root,fvar(10)/10.0),1Notice the 10.0 instead of 10. In fact, using only y=x/10 converts y into an integer, even if x is a float. That's why you have to use y=x/10.0, to keep y as a floating number.
now it doesn't show , also changed:[State -2, Health]type = Varsettrigger1 = teammode = singletrigger1 = var(58) = 1 ; is Bleach Mugenfvar(10) =(Life/100.0)[State 0, ModifyExplod]type = ModifyExplodId = 19510trigger1 = 1scale =(root,fvar(10)/10.0),1bindtime = -1weird? even if i just set fvar(10) = life clipboard says it's 0 ???
yay , works, now a more pressing issue, it works when i removed var(58) , var(58) is set in config.cns like this:[Statedef -2][state -2, varset]type = varsettrigger1 = 1var(58) = 1 ; Is Bleachany reason as to why that would effect it so much, because i'm using this to distinguish from normal mugen and the fullgame ?*Dont worry Fixed*