I'm trying to create a /roll skript for my server where people can do /roll <number> and it will roll a dice with that number of sides on it and choose a random number from 1 - <number> but I want to max out the <number> to be 100 so people cant do /roll 1000 and can only do max 100 and min 1. Problem is I can't seem to do this, I've tried so many tactics to try and set the max until I finally gave up and came here. Can someone please help me figure out how to set a max number that people cant go over and min number people cant go under?
Skript Code - https://hastebin.com/xexayozuwi.pl
Skript Code - https://hastebin.com/xexayozuwi.pl