Coder Social home page Coder Social logo

score-roller's Introduction

5e Ability Score Roller

Score Roller - Give it a try

5e Ability Score Roller is an ability score roller for Dungeons and Dragons ( D&D DnD etc. ) 5e. It generates 6 ability scores. By default, each ability score is created by rolling four six sided (d6) dice and dropping the lowest value. You may change this to roll only 3d6 in settings.

Each time you roll the Point Buy cost will be displayed for each ability score and a total will be displayed towards the bottom of the screen. Scores of 8 or lower have a zero cost, 9-13 have a 1 point cost and scores of 14 or higher have a cost of 2. You can change the cost of low and high scores in settings, making scores below 8 have a negative cost and/or causing scores above 15 to only cost one point.

Point Buy Range

If you want sets of scores within a certain Point Buy range you can use the Point Cost Range slider to set a given range. If, for instance, you wanted only scores that cost the standard 27 points, you could set both the minimum and maximum to 27 and then all sets generated would be of that cost.

Running Locally

Note that you will need to have Node.js installed.

Get started

Install the dependencies...

cd svelte-app
npm install

...then start Rollup:

npm run dev

Navigate to localhost:5000. You should see your app running. Edit a component file in src, save it, and reload the page to see your changes.

By default, the server will only respond to requests from localhost. To allow connections from other computers, edit the sirv commands in package.json to include the option --host 0.0.0.0.

If you're using Visual Studio Code we recommend installing the official extension Svelte for VS Code. If you are using other editors you may need to install a plugin in order to get syntax highlighting and intellisense.

Building and running in production mode

To create an optimised version of the app:

npm run build

You can run the newly built app with npm run start. This uses sirv, which is included in your package.json's dependencies so that the app will work when you deploy to platforms like Heroku.

score-roller's People

Contributors

dhatcher avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.