Hello!
I trying to make a double condition formula from one I already using.
This is the one I already using and working: Conditon is the bold one
r=a.mat*3-b.mdf*2;x=r*b.element_rate(3);x>=1?v[16]+=v[24]:nil;r
Now I wish to add a second condition at the begining of the formula:
v[34]==1?
And this is the final formula:
v[34]==1?r=a.mat+20*3-b.mdf*2:r=a.mat+999*3-b.mdf*2;x=r*b.element_rate(3);x>=1?v[16]+=v[24]:nil;r
A total of 97 typed caracters.
I dont get error, but damage not changing with the condition.
I using exagerated value of 999 to see well if the damages change.
It takes only the "a.mat+999*3-b.mdf*2" part whatever the variable is 1 or 0.
Thanks in advance.
I trying to make a double condition formula from one I already using.
This is the one I already using and working: Conditon is the bold one
r=a.mat*3-b.mdf*2;x=r*b.element_rate(3);x>=1?v[16]+=v[24]:nil;r
Now I wish to add a second condition at the begining of the formula:
v[34]==1?
And this is the final formula:
v[34]==1?r=a.mat+20*3-b.mdf*2:r=a.mat+999*3-b.mdf*2;x=r*b.element_rate(3);x>=1?v[16]+=v[24]:nil;r
A total of 97 typed caracters.
I dont get error, but damage not changing with the condition.
I using exagerated value of 999 to see well if the damages change.
It takes only the "a.mat+999*3-b.mdf*2" part whatever the variable is 1 or 0.
Thanks in advance.