Hello everyone, I am not sure if something like this exists, as I have not been able to find anything as of yet, but I am looking for some sort of plugin that allows attacks to deal a set amount of damage based on 1 of 6 possible options. (Think a 6 sided dice block, but instead of your standard [1,2,3,4,5,6] it could be customized to any group of numbers like [0,1,1,2,2,10]. Does anyone know of any plugins that would allow for something like this?
Dice Damage Formula?
● ARCHIVED · READ-ONLY
-
-
No plugin required, you can do it in the damage formula of the skill.
If you want to have it deal damage picked randomly from a list, this is one way to do it.
Code:Define the list of possible values, generate a random number, then pick that random value and output as damage.var vals = [0,1,5,7,9,10]; var rand = Math.floor(Math.random()*vals.length); vals[rand]; -
Thank you so much for this! You are my hero right now! Issue solved!
-
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.