Special effect random, 0-10 or 15

Hulkman508
01 Oct 2011, 06:21
I was wondering if you can take the random function a little further. I mean achieving something like a special effect in a fight (well thats what I would be using it for). If I have a heavy attack option I wan't the player to be able to deal more damage overall but have the ability for the enemy to get a good attack, so like from 0-10 or 15, skipping out 11-14 altogether. Likewise with a defensive attack to deal lower damage but have the ability to completely miss enemy attacks.

To me this would add alot to combat, and if its possible any help would be appreciated. :)

Pertex
01 Oct 2011, 15:55
use random 0-11 and then
if value=11 then value=15

Hulkman508
04 Oct 2011, 07:08
Oh true, that will work. Thanks :)