Giter Site home page Giter Site logo

malceore / dndtools Goto Github PK

View Code? Open in Web Editor NEW
27.0 4.0 3.0 6.49 MB

Dndtools is a simple javascript program works as a powerful soundboard, die roller and loot generator for Dungeons and Dragons campaigns.

JavaScript 97.32% HTML 0.84% CSS 1.84%
dungeons-and-dragons helper music javascript soundboard dndtools sound game mp3

dndtools's Introduction

dndtools

(As part of increasing my coding portfolio I have decided to create a unique Dungeons and Dragons assistant, I've called it Dndtools after an internet resource for DnD that was popular and recently closed.)

As of the most recent update Dndtools features:

  • Customizable Random Loot generator
  • Multiple Dice Rolling Simulation System
  • Powerful and Interactive SoundBoard
  • Writable Note Sheet
  • Working on all Platforms including Windows, Android, IOS and Linux

Dndtools is an open-source Javascript program that you can run in your choice of browsers, it's powered by the amazing and lightweight Howler.js sound library (http://goldfirestudios.com/blog/104/howler.js-Modern-Web-Audio-Javascript-Library). It allows a Dungeon Master to bring a game to life with enchanting music and action packed sound effects players will love. Having a quality die roller is a must for most inspiring DMs and the Loot generation takes the work out of end of encounter loot division. To run the program click on "Index.html" and it will automitically start in your default browser with two basic sound files build in.

==== How do I change Sounds and Music? ====

  • Firstly let's understand the different between the two in this program. Music is played simular to your MP3 player, activated music will fade in and out when a new one is clicked. You could stick in your favorite game OST or battle music into Dndtools to spice up any game. Sounds on the other hand will play separately until completion everytime they are clicked, this is where you would put your sword slashes and magic noise files.

  • Alright, to add sounds to Dndtools you first must drop the files you want to add into the "sounds" subfolder in "dndtools-stable". If you're using Chrome to run Dndtools you can use MP3 file format, for Firefox you will need OGG file format. Once you've done that you will need to edit the "main.js" file, the first part of the file you will see are the Music files in what programmers call a String array to add a file to this you will:

    var BGMusic = [ "Night", "mySongNameHere" ];

(Note the addition of a comma after "Night" and that you will not need the file extention, just the name of the file) Sounds will be added in the same way, but under:

var soundAffects = [
        "Sword_Hit",
        "SoundAffectFilesName"
];

After you're done save changes and refresh your browser to see the changes. Congrats you've added sound or music. Later implimentation may come with sound packs you can download and simply drag and drop.

==== How do I change the Loot generated? ====

  • To edit generated loot you must open "lootGen.js", you can open it with notepad and will see a long list of items. To add items you only need to go to the end of the list of items and:

    ... "Amulet of Vermin: Giant Wasp","800", "Horn of Fog ","1200", "Slippers of Spiderclimb","2000", "Hat of Disguise","900", "Item Of Adding", "200" ];

The syntax for adding something is "Name of item", "gold value of item, do not put gp at the end". Don't forget to add a comma to the item above the one you add. To remove and item simply delete it's entire line from the file. Don't worry, if you break it, just redownload or google the issue. ;)

dndtools's People

Contributors

malceore avatar

Stargazers

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

Watchers

 avatar  avatar  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.