Hello, I have a very low confidence with scripts. So I just want a thumbs up if Im reading this correctly.
def self.weaponVariance(weapon_id)
case weapon_id
when 1 then return 5
when 2 then return 18
else
return 15
That is saying when calculating (weapon ID "X" then vary the damage by "Y")
and give all other weapons a variance of 15.
So, to customize you would add "when 3,4,5,6 etc..." for any/all weapons you want to have a variance, and if you want zero variance to be the default, you would change "return 15" to " return 0".
Is all this correct?
If not, naturally, please correct me.
Thanks!
MeVII