Noobish Questions (updated frequently)
#29
Darian,Mar 23 2006, 04:44 PM Wrote:Modifier to crushing blow chance ($cm): if ((CL * 5) < DEF)), ((CL * 5) - (DEF * .02)), else 0
- in other words, if your defense is below 300 at level 60, or 295 at 59, etc., you suffer a 2% penalty -- reflected in an increased chance of getting crushed -- per point of defense below your maximum unbuffed defense.
[right][snapback]105302[/snapback][/right]

You got your conditionals mucked up here and a bad paren on the true condition, should be.

if (DEF < (CL*5)) , (((CL * 5) - DEF) * 0.02) , else 0

at least that matches your explanation. Your formula says, If your max possible defense for you level is less than your current defense you have a crushing blow modifier of your max possible defense for you level minus 2% of your current defense. Or an example if you had 290 def at L60 you would have a CB modifier of 294.2%. Well actually it would be zero based on the error in the conditional because 300 is not less than 290. :)
---
It's all just zeroes and ones and duct tape in the end.
Reply


Messages In This Thread
Noobish Questions (updated frequently) - by Lissa - 03-22-2006, 06:11 AM
Noobish Questions (updated frequently) - by Lissa - 03-23-2006, 03:05 PM
Noobish Questions (updated frequently) - by Kevin - 03-23-2006, 05:01 PM
Noobish Questions (updated frequently) - by Lissa - 03-23-2006, 06:39 PM
Noobish Questions (updated frequently) - by Kevin - 03-23-2006, 07:39 PM
Noobish Questions (updated frequently) - by Kevin - 03-23-2006, 10:34 PM
Noobish Questions (updated frequently) - by Kevin - 03-24-2006, 02:55 AM
Noobish Questions (updated frequently) - by Lissa - 03-24-2006, 03:00 PM
Noobish Questions (updated frequently) - by Kevin - 03-24-2006, 04:38 PM
Noobish Questions (updated frequently) - by teske - 04-03-2006, 10:11 PM
Noobish Questions (updated frequently) - by Kevin - 04-04-2006, 07:26 PM
Noobish Questions (updated frequently) - by Kevin - 04-05-2006, 01:48 AM
Noobish Questions (updated frequently) - by Quark - 04-05-2006, 11:09 AM
Noobish Questions (updated frequently) - by Quark - 04-19-2006, 05:50 PM
Noobish Questions (updated frequently) - by Quark - 04-24-2006, 07:05 PM
Noobish Questions (updated frequently) - by Hedon - 04-30-2006, 07:17 AM
Noobish Questions (updated frequently) - by Yurup - 04-30-2006, 05:27 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)