You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Added database indexing for improved performance
* Changed data tags to reflect newest standard
* Fixed bug relating to calculated AC0 when checking AC
* Fixed ranged weapon magical to-hit bonus due to spells in operation
Copy file name to clipboardExpand all lines: AttackMaster/attackMaster.js
+15-10
Original file line number
Diff line number
Diff line change
@@ -101,12 +101,13 @@
101
101
* v1.038 08/01/2022 Added database indexing for improved performance
102
102
* Changed data tags to reflect newest standard
103
103
* Fixed bug relating to calculated AC0 when checking AC
104
+
* Fixed ranged weapon magical to-hit bonus due to spells in operation
104
105
*/
105
106
106
107
var attackMaster = (function() {
107
108
'use strict';
108
109
var version = 1.038,
109
-
author = 'RED',
110
+
author = 'Richard @ Damery',
110
111
pending = null;
111
112
112
113
/*
@@ -712,9 +713,7 @@ var attackMaster = (function() {
712
713
+'<p>AttackMaster API provides functions to manage weapons, armour & shields, including taking weapons in hand and using them to attack. It uses standard AD&D 2e rules to the full extent, taking into account: ranged weapon ammo management with ranges varying appropriately and range penalties/bonuses applied; Strength & Dexterity bonuses where appropriate; any magic bonuses to attacks that are in effect (if used with <b>RoundMaster API</b> effects); penalties & bonuses for non-proficiency, proficiency, specialisation & mastery; penalties for non-Rangers attacking with two weapons; use of 1-handed, 2-handed or many-handed weapons and restrictions on the number of weapons & shields that can be held at the same time; plus many other features. This API works best with the databases provided with this API, which hold the data for automatic definition of weapons and armour. However, some attack commands will generally work with manual entry of weapons onto the character sheet. The <b>CommandMaster API</b> can be used by the GM to easily manage weapon proficiencies.</p>'
713
714
+'<p>Specification for weapons, armour & shields are implemented as ability macros in specific database character sheets. This API comes with a wide selection of weapon and armour macros, held in databases that are created and updated automatically when the API is run. If the <b>MagicMaster API</b> is also loaded, it provides many more specifications for standard and magic items that are beneficial to melee actions and armour class. The GM can add to the provided items in the databases using standard Roll20 Character Sheet editing, following the instructions provided in the relevant Database Help handout.</p>'
714
715
+'<p><b><u>Note:</u></b> For some aspects of the APIs to work, the <b>ChatSetAttr API</b> and the <b>Tokenmod API</b>, both from the Roll20 Script Library, must be loaded. It is also <i>highly recommended</i> to load all the other RPGMaster series APIs: <b>RoundMaster, InitiativeMaster, MagicMaster and CommandMaster</b>. This will provide the most immersive game-support environment</p>'
715
-
+'<h2>Syntax of AttackMaster calls</h2>'
716
-
+'<p>The AttackMaster API is called using !attk.</p>'
717
-
+'<pre>!attk --help</pre>'
716
+
+'<h2>Syntax of AttackMaster calls</h2>' +'<p>The AttackMaster API is called using !attk.</p>' +'<pre>!attk --help</pre>'
718
717
+'<p>Commands to be sent to the AttackMaster API must be preceded by two hyphens <b>\'--\'</b> as above for the <b>--help</b> command. Parameters to these commands are separated by vertical bars \'|\', for example:</p>'
+'<p>If optional parameters are not to be included, but subsequent parameters are needed, use two vertical bars together with nothing between them, e.g.</p>'
@@ -3904,15 +3903,16 @@ var attackMaster = (function() {
"description": "AttackMaster API for AD&D 2E provides functions to manage weapons, armour & shields, including taking weapons in hand and using them to attack, ranged weapon range and ammo management; penalties & bonuses for non-proficiency, proficiency, specialisation & mastery; 1-handed, 2-handed or many-handed weapons, and multi-weapon attacks.\n[AttackMaster Documentation](https://wiki.roll20.net/Script:AttackMaster) \n\n### Related APIs\nThis API works best with the RPGMaster series of APIs\n[RPGMaster Documentation](https://wiki.roll20.net/RPGMaster) \n###Getting Started\n* After installation, add the commans `!attk --menu` and `!attk --other-menu` as Ability Macros on Character Sheets of Characters, NPCs & Monsters that will use the API, and tick 'Show as Token Action'. These menus will then be available to Players controlling those sheets and give access to all common commands used in game-play.",
0 commit comments