Advertisement
Eliwan

Snips

Apr 13th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. M=(100+a.mat*4-b.mdf*3);if v[NN]>=6;(1+((v[NN]-5)/10.0))*M;elsif v[NN]>=1;(1-(v[NN]/10.0))*M;end;
  2. [formula 1]
  3.  
  4. (100.0+a.mat*4-b.mdf*3)*(1+(v[1749]/10.0))
  5. [formula 2, requiring range -5~5 for your desired effect instead of original 1~10]
  6.  
  7. M=100+a.mat*4-b.mdf*3;P=1+(v[NN]/10);if P>1.5;1.5*M;elsif P>0.5;0.5*M;else;P*M;end;
  8. [formula 3, which is formula 2 with capping]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement