Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.
/ PaladinAura Public archive

A Roll20 API for 5th Edition D&D to quickly apply and remove the bonuses awarded to those around Paladins of 6th level or above.

Notifications You must be signed in to change notification settings

LaytonGB/PaladinAura

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PaladinAura

Version Button Sponsor Button

WARNING: This project is depreciated in favour of the reworked version. This project will not be recieving updates.

A roll20 API for 5E D&D that automatically adjusts the saving throw bonuses of Paladins and those close to them.

The API takes into account the paladin's level, and whether the bonus has already been applied. After rigorous testing there have been no accidental double-applies of bonuses.

Note:

  • The API will only run on the player-ribbon page.
  • The API will not run on pages which have their scale unit set to anything other than "ft".
  • The API may have bad interactions with non-square tokens.

WARNING: This API currently only works with Roll20's 5E OGL D&D Character Sheet and, like all API, requires a Pro Subscription to use.

Installation

To install any API (this one included) navigate to your Roll20 game page and select Settings > API Scripts.

Once there do the following:

  1. Click "New Script".
  2. Name the script. This name does not matter.
  3. Copy the contents of PaladinAura.js.
  4. Paste it into the code section of the script tab you have created on Roll20.

How to Use

The API should be ready to go immediately. However, if you wish to customize the system, or even turn it off, you can do so from the in-game commands (see Configuration below).

Paladin Aura Toggle

Each detected paladin will gain an ability to toggle whether others are affected by their aura. This applies to both NPCs and Characters. The button that activates this ability will be at the top left of the Roll20 interface whenever a paladin token is selected.

First time load

The first time a GM joins the game while the API is active, a few macros will be created:

  • PaladinAuraConfig: Shows a configuration interface.
  • PaladinAuraHelp: Shows a help interface.
  • PaladinAuraToggle: Toggles the API on/off.

These macros will be visible to all, but won't allow players to mess with anything that affects others.

Settings / Configuration

There are only two settings that can be configured (currently).

  1. diagonal_calc_override: This setting overrides the roll20 map settings for diagonal calculations. It has five acceptable values:
  • none: Do not override any settings / use the page's configuration. (Default and Recommended)
  • foure: Use 4E / 5E D&D measuring.
    (See image 1 of the reference below)
  • threefive: Use 3E and below D&D measuring.
    (See image 3 of the reference below)
  • pythagorean: Use real life measuring.
  • manhattan: Use straight line movement only, making diagonal movement count as 2 squares.
    (See image 2 of the reference below)

Diagonal Movement Reference

  1. status_marker: This setting changes what status marker will be applied to tokens when they are under the effect of a paladin's aura.
    Custom status markers will show in the config menu list.

Feedback

Submit an issue report or feature request.

Changelog

1.0.14

  • Fixed an issue with the ToggleAuraTarget paladin ability being given to all non-paladin characters.

1.0.13

  • Code auto-runs when any character's HP is changed to or from 0.
  • Minor bugs fixed to do with NPCs receiving buff.

1.0.12

  • Functions properly with 2x2 and larger tokens.
  • Issues may be present with non-square tokens.

1.0.11

  • Optimized API massively.
  • API will now again only run on the player-ribbon page.
  • Improved code readability.

1.0.10

  • Fixed charactermancer compatibility issues.
  • Reduced chat output when multiple paladins are detected for the first time.

1.0.9

  • Improved first-time-run message.

1.0.8

  • In the config there is now a CLEAR ALL button that allows a GM to clear all PaladinAura settings, attributes, and abilities in the game.
  • NPC saving throw regions no longer show on their sheet when all save bonuses are equal to their relevant attribute modifiers.

1.0.7

  • Fixed status marker config error for clean installs.

1.0.6

  • Paladins now have a Token Ability (ToggleAuraTarget) that allows them to toggle whether NPCs and Players receive a buff to saving throws from their Paladin Aura.

1.0.5

  • API now runs on any page with active player(s).

1.0.4

  • Cleaned up API Output Console feed.

1.0.3

  • Added custom token-status marker integration (use !pa config in Roll20 to change settings).

1.0.2

  • Added a bottom limit to the Aura's bonus (+1).

1.0.1

  • Added token-status marker integration. When the PaladinAura affects a token that token now receives a marker with a number to represent the bonus.

About

A Roll20 API for 5th Edition D&D to quickly apply and remove the bonuses awarded to those around Paladins of 6th level or above.

Resources

Stars

Watchers

Forks

Packages

No packages published