Added "Stun" weapon quality; Updated README

This commit is contained in:
Timothy Yuen
2020-12-29 11:26:00 -07:00
parent a416da2216
commit 11e606eab2
3 changed files with 18 additions and 4 deletions
+7 -1
View File
@@ -5,14 +5,20 @@ Roll20 character sheet for FFG Star Wars; compatible with FFG-SWRPG-Dice-Roller
**Playtesters**: Gene Eilebrecht, Ben Hamill, Aaron Lambers, Zack Morris, Brett Wilson, Timothy Yuen
## Version 1.1
* Added the "Stun" weapon quality. This quality has a numeric rating as opposed to the "Stun Damage" quality which is a flag to indicate whether the weapon has a stun setting.
## Version 1.0.1
* Requires manual initialization of fields. Make sure to set all number fields you want to use to a value with a manual keyboard input the first time you use that field. Not doing so may cause some odd behavior with calculations dependent on those fields receiving an "undefined" value. This includes all Characteristics, Vital Stats, Weapon and Armor stats, and Item encumbrance. There is code to auto-init fields, but it currently won't trigger until Roll20 fixes a bug with the sheet:opened event.
* This sheet will work standalone as a record sheet; if you'd like it to make rolls using the FFG dice, we have a custom branch of the FFG-SWRPG-Dice-Roller in this repository. Install (cut and paste) it as a new/custom API from your game's Settings and restart the API sandbox. It' possible that the main branch of the dice roller will work (which can be found in the Script Library dropdown on the API screen).
---------
This sheet is inspired by and an alternative to the [Star Wars FFG API-Compatible sheet](https://github.com/Roll20/roll20-character-sheets/tree/master/Star%20Wars%20FFG%20API-Compatible). When our small local tabletop FFG Star Wars gaming group moved online to Roll20 during the COVID-19 situation, we started with that sheet. As a GM, I saw an opportunity to taylor the sheet to my group's needs. As a web app interface designer by trade, I found it to be a compelling project during my downtime at home. Rather than branching the original project, I started fresh so I could really learn how the Roll20 sheets work from the ground up. I also saw the chance to utilize some CSS Grid techniques for layout (rather than tables) and take advantage of Roll20 Sheet Workers to power most of the calcs. Plus, there were many things we didn't really need in the short-term -- GM info, Vehicles, Companions, etc. This sheet is focused entirely on a single PC.
Our group has only playtested this a handful of times so far and there are plenty bugs we haven't caught yet, I'm sure. But it seems to have it's legs underneath it after a couple hundred hours of development and is learning to walk.
We also worked a custom branch of the [FFG-SWRPG-Dice-Roller](https://github.com/Roll20/roll20-api-scripts/tree/master/FFG-SWRPG-Dice-Roller) to integrate with the new sheet. Since it has references objects in this sheet in particular and may not be compatible with other sheets, we have kept our own version for now and haven't tried a PR to the main branch of the dice roller.
We also worked a custom branch of the [FFG-SWRPG-Dice-Roller](https://github.com/Roll20/roll20-api-scripts/tree/master/FFG-SWRPG-Dice-Roller) to integrate with the new sheet. Since it has references objects in this sheet in particular and may not be compatible with other sheets, we have kept our own version for now and haven't tried a PR to the main branch of the dice roller. It is in this respository with the name [diceroller.js](https://github.com/Roll20/roll20-character-sheets/blob/master/Star%20Wars%20FFG%20Alternate/diceroller.js).
@@ -1212,7 +1212,7 @@ background: radial-gradient(circle, rgba(82,100,76,1) 38%, rgba(54,64,51,1) 100%
.sheet-weapon_qualities {
display: grid;
grid-template-columns: repeat(3, 1fr 4em);
grid-template-columns: repeat(4, 1fr 4em);
column-gap: 1em;
row-gap: 0.5em;
margin-top: 1em;
@@ -1709,7 +1709,7 @@
</span>
</label>
<input name="attr_weapon_quality_slow_firing_value" type="number" value="0" min="0" max="9" />
<label><span data-i18n="stun">Stun</span><span class="icon_passive" title="Passive" data-i18n-title="passive"></span>
<label><span data-i18n="stun">Stun Damage</span><span class="icon_passive" title="Passive" data-i18n-title="passive"></span>
<span class="icon_help">
<div class="help_info">
<p>Some weapons deal Stun damage instead of regular damage. In this case, the weapon deals damage as strain instead of wounds. This damage is still reduced by a target's soak.</p>
@@ -1723,6 +1723,14 @@
<option data-i18n="yes">Yes</option>
</select>
</div>
<label><span data-i18n="stun">Stun</span><span class="icon_active" title="Active" data-i18n-title="active"></span>
<span class="icon_help">
<div class="help_info">
<p>A weapon with Stun deals strain to the target. When the Stun quality is activated, it inflicts strain equal to the weapon's Stun rating.</p>
</div>
</span>
</label>
<input type="number" name="attr_weapon_quality_stun_value" min="0" max="20" value="0" />
<label><span data-i18n="sunder">Sunder</span><span class="icon_active" title="Active" data-i18n-title="active"></span>
<span class="icon_help">
<div class="help_info">
@@ -2769,6 +2777,7 @@
'weapon_quality_prepare_value': 'Prepare',
'weapon_quality_slow_firing_value': 'Slow-Firing',
'weapon_quality_stun_damage_value': 'Stun Damage',
'weapon_quality_stun_value': 'Stun',
'weapon_quality_sunder_value': 'Sunder',
'weapon_quality_superior_value': 'Superior',
'weapon_quality_unwieldy_value': 'Unwieldy',
@@ -3517,4 +3526,3 @@
</script>
<!-- End Sheet Workers -->