Git Product home page Git Product logo

swrpg-web-dice-roller's Introduction

SWRPG-Web-Dice-Roller

A Web App Companion for the SWRPG

#Installation and Setup

  1. First you will need to have NodeJS installed on your machine. You can find the latest version here
  2. Click "Clone or Download" at the top of this page. Click "Download Zip" and extract the files.
  3. Next Create a firebase project for the WebApp [here]https://console.firebase.google.com/
  4. Click "Add Project"
  5. Name your project
  6. From the project console, click "Add Firebase to your web app"
  7. Copy var config = {xxxxxxx}; (8 lines total)
  8. Open src/config.js from from step 2 with a text editor program of your choice.
  9. Paste var config = {xxxxxxx}; in space marked "Paste var config = {xxxxxxx}; here"
  10. Open command line and navigate to folder from step 2
  11. $ npm install
  12. $ npm install -g firebase-tools
  13. $ firebase login
  14. $ firbase deploy
  15. terminal will give you a website to go to

swrpg-web-dice-roller's People

Contributors

skyjedi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

swrpg-web-dice-roller's Issues

Adding features similar to the ones in Roll20

The code used by Roll20: https://ghostbin.com/paste/2n67m
Documentation: https://wiki.roll20.net/Dice_Reference

  • addition, subtraction, multiplication, division, modulo, exponentiation
  • floor, ceil, round, abs
    • Abilities are expanded (meaning the definition of the ability is placed in the formula anywhere that ability appears).
      Macros are expanded, including nested macros up to 99 levels deep.
      Variables are substituted
      Roll queries are executed (the player making the roll is asked to provide a value for each query, and that value is substituted in where the roll query appears in the formula)
      All previous steps are repeated until there are no longer any unresolved abilities, macros, variables, or queries. This allows for nesting (e.g. putting an attribute in a macro).
      Inline rolls are executed, starting with the most deeply nested inline roll working upward. The overall result of the inline roll is substituted in place where it appeared in the formula.
      The remaining roll is executed: first, dice are rolled for any dice (e.g. "2d6" is rolled; including any special dice such as dropped or exploding), then the result of that roll is substituted into the formula. Next, floor() and ceil() functions are executed. Finally, the entire remaining formula is evaluated, including observing proper math order of operations (parentheses first, then multiplication/division, then addition/subtraction).

  • All Types Of Dice
    • Basic Roll of NdX
    • Fate/Fudge Roll NdF
    • Computed Dice Roll (N+Y)dX or Nd(X+Y)
  • All Roll Modifiers
    • Target Number / Successes (B,F) - CP
    • Failures (B,F) - fCP
    • Exploding Dice (B,F) !CP
    • Compounding Dice (B,F) !!CP
    • Penetrating Dice (B,F) !pCP
    • Dice Matching m and mt
    • Keep / Drop Dice (B,F) khN or klN or dhN dlN
    • Rerolling Dice (B,F) rCP
    • Sorting Dice (B,F) sa or sd
    • Order of Operations for Modifiers
      • Exploding, Compounding, Penetrating, Rerolls
        These are applied while the dice are still rolling. imagine that you roll some exploding 6d6 on your table and the instant one of them settles as a 6 another die is rolled
        Keep, Drop, Success, Failure, Sorting
        These are applied after all of the dice have "settled" and all of the result values are known.

  • Grouped Rolls
  • Grouped Roll Modifiers
    • Keep / Drop khN or klN or dhN or dlN
    • Target Number / Successes (B,F) CP
    • Failures (B,F) fCP

Adaptability to bigger screens

Hi!

I have noticed that the "rolled list" dosn't adapt to the screen: after few rolls you alredy need to scroll with the lateral bar:

dice

It is possible to adapt it to the screen so one can see more rolls?

Thank you!

Blank page with firebase

Hi,
I just follow all the #Installation and Setup.
The website on firebase just display the index page SWRPG Web Dice Roller with no element, picture or script.
I tried on my local computer with "NPM start" and it was ok.
I do not know what i forgot.

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.