Merge pull request #2583 from timothystone/feature-havoc

Paul 'Havoc' Stein alternate WFRP2E character sheet
This commit is contained in:
Phil
2017-05-08 16:14:53 -06:00
committed by GitHub
7 changed files with 7240 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
# Warhammer Fantasy Roleplay 2e Character Sheet
version 0.1-Havoc
Complete rewrite by Paul "Havoc" Stein!
## API Scripting Required
If you are a player, you enjoy the benefits of your GM's Pro account. If your GM does not have a Pro account, consider gifting him/her one.
### Installing API scripts
As a Pro, do the following:
1. From the My Campaigns, select View Details.
2. From the View Details page, select API Scripts
3. For each script listed below, copy and paste the contents into a New Script window.
Scripts
1. wfrp2e-api.js
2. splitArgs.js
Please submit bugs and feature requests to https://github.com/timothystone/roll20-character-sheets. Pull requests are
welcome.
+8
View File
@@ -0,0 +1,8 @@
{
"html": "wfrp2e-sheet.html",
"css": "wfrp2e-sheet.css",
"authors": "Paul \"Havoc\" Stein",
"roll20userid": "55273",
"preview": "wfrp2e-preview-v0.1-havoc.png",
"instructions": "A WFRP2E Character Sheet by Paul Stein. Requires the the wfrp2e-api script (available under the System Toolbox subsection in the Roll20 API Script Library)."
}
+56
View File
@@ -0,0 +1,56 @@
var bshields = bshields || {};
bshields.splitArgs = (function() {
'use strict';
var version = 1.1;
function splitArgs(input, separator) {
var singleQuoteOpen = false,
doubleQuoteOpen = false,
tokenBuffer = [],
ret = [],
arr = input.split(''),
element, i, matches;
separator = separator || /\s/g;
for (i = 0; i < arr.length; i++) {
element = arr[i];
matches = element.match(separator);
if (element === '\'') {
if (!doubleQuoteOpen) {
singleQuoteOpen = !singleQuoteOpen;
continue;
}
} else if (element === '"') {
if (!singleQuoteOpen) {
doubleQuoteOpen = !doubleQuoteOpen;
continue;
}
}
if (!singleQuoteOpen && !doubleQuoteOpen) {
if (matches) {
if (tokenBuffer && tokenBuffer.length > 0) {
ret.push(tokenBuffer.join(''));
tokenBuffer = [];
}
} else {
tokenBuffer.push(element);
}
} else if (singleQuoteOpen || doubleQuoteOpen) {
tokenBuffer.push(element);
}
}
if (tokenBuffer && tokenBuffer.length > 0) {
ret.push(tokenBuffer.join(''));
}
return ret;
}
return splitArgs;
}());
String.prototype.splitArgs = String.prototype.splitArgs || function(separator) {
return bshields.splitArgs(this, separator);
};
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+5
View File
@@ -1515,6 +1515,11 @@ warhammerfantasy2e:
- "Warhammer Fantasy: 2nd Edition"
- "Warhammer"
warhammerfantasy2e_havoc:
- "WFRP2E-Havoc"
- "Warhammer Fantasy: 2nd Edition (Havoc)"
- "Warhammer"
classictraveller:
- "Classic_Traveller"
- "Classic Traveller"