Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tabletop-api

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tabletop-api

Create D&D Characters

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

TableTopAPI

Rest API for table top gaming, character creation, dice rolls. Currently Supporting AD&D 2.0 Roll MethodsI-IV, plus many other useful calls. Including a new addition of proficiency JSON files.

Overview

app.get('/languages', common.languages);
app.get('/races', common.races);
app.get('/alignment', common.alignment);
app.get('/stats', common.stats);
app.get('/playerClasses', common.playerClasses);
app.get('/roll-hp/:pcClass', dice.hitpoints);

Providing simple REST API for Dice rolls.

Method I Stat Rolls

Method I:

Roll three six-sided dice (3d6); the total shown on the dice is your character’s Strength ability score. Repeat this for Dexterity, Constitution, Intelligence, Wis- dom, and Charisma, in that order. This method gives a range of scores from 3 to 18, with most results in the 9 to 12 range. Only a few characters have high scores (15 and above). /method1

Method II:

Roll 3d6 twice, noting the total of each roll. Use whichever result you prefer for your character‘s Strength score. Repeat this for Dexterity, Constitution, Intelligence, Wisdom, and Charisma. This al- lows you to pick the best score from each pair, generally ensuring that your character does not have any really low ability scores (but low ability scores are not all that bad anyway). /method2

Calls For Basic Character Info

Roll for Hit Points. Options specific for class. Note appending max will automatically return the max HP value for the class in the call.

/roll-hp/mage

/roll-hp/

Max example: /roll-hp/max

Other API Calls
/player
Rolls method I then lets you know what classes are playable with the rolls. /player
Hit point rolls

Array of languages '/languages'

Array of Races '/races'

Alignment '/alignment' Stats '/stats', common.stats);

Player Classes '/playerClasses' '/roll-hp/:pcClass' Options: fighter | rouge | wizard : max Also running list of other that classes based on these 3main classes.

Proficiencies

In the path ./json/proficiency/ are all the AD&D2.0 Proficies, organized by player class.

Keywords

FAQs

Package last updated on 07 Jul 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc