Skip to content

ImportWeapon.js

kyleady edited this page Jun 26, 2017 · 2 revisions

Purpose

When writing a custom character, with custom weapons, this API Command will convert the weapon into an Roll20 Ability for use with TheAttack.

Usage

!Import Weapon <weapon name> (<weapon details>)

Uses INQWeaponNoteParser.js to make an INQWeapon out of your input. It then uses INQWeapon.prototype.toAbility() to give every selected character an ability to use that weapon.

If no character is selected, the API Command will warn the user and abort.

Requirements

Clone this wiki locally