Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- !! user.ws = function(number,trait,description) {
- var rollstring = number + "d6";
- var hits = 0;
- var output = roll(rollstring).tokens[0].rolls.map(
- function (item)
- {
- if (item.keptValue <= trait)
- {
- hits += 1;
- return '**' + item.keptValue + '**';
- }
- else return '__~~' + item.keptValue + '~~__';
- }
- ).join(', ');
- echo("```Rolling " + description +"...```");
- echo("\n**Rolls:** (" + output + ")");
- echo("\n \n You rolled __**" + rollstring + "**__ for your awesome description and got __**" + hits + "**__ hits!");
- }
Advertisement
Add Comment
Please, Sign In to add comment