Last active
December 23, 2015 23:56
-
-
Save vimes1984/cccdb23b96df307ec628 to your computer and use it in GitHub Desktop.
Awefile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| command('roll', function rollfunction(parameters, player){ | |
| // parameters[0] = maxx; | |
| // parameters[1] = modifier; | |
| // parameters = [maxx,modifier,etc,etc,etc]; | |
| var max = parameters[0]; | |
| var modifier = parameters[1]; | |
| var randnumb = Math.random(); | |
| var float = randnumb * maxx; | |
| var number = Math.floor( float ) + modifier; | |
| echo(player, number); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment