Stargate RPG v.1.73 remove history skill

This commit is contained in:
Andreas Johansson
2021-08-09 18:28:53 +03:00
parent 2e04e3d682
commit 0a701bfcfd
6 changed files with 26 additions and 25 deletions
+5 -1
View File
@@ -1,9 +1,13 @@
## Stargate RPG
Offical Roll20 Character sheet for "Stargate RPG" by Wyvern Gaming (Quickstart/Beta Sheet: February 2020, GenCon Release: Aug 2020) created by Andreas J. [@anduh_](https://twitter.com/anduh_)
Offical Roll20 Character sheet for "Stargate RPG" by Wyvern Gaming, sheet created by Andreas J. [@anduh_](https://twitter.com/anduh_)
- [Stargate Core Rulebook](https://stargatetherpg.com/files/file/74-stargate-sg-1-roleplaying-game-core-rulebook/)
### Changelog
**v.1.73 (2021-08-09)**
* Remove History Skill (was skill in old beta rules)
**v.1.72(2021-06)**
* update in-sheet changelog
* page navigation made always visible
+1 -1
View File
@@ -4,7 +4,7 @@
"authors": "Andreas J.",
"roll20userid": "1223200",
"preview": "stargate_preview.png",
"instructions": "Official character sheet for the 'Stargate RPG' by Wyvern Gaming.\n\n* [Character Sheet Documentation](https://wiki.roll20.net/Stargate)",
"instructions": "Official character sheet for the [Stargate RPG](https://stargatetherpg.com/) by Wyvern Gaming.\n\n* [Character Sheet Documentation](https://wiki.roll20.net/Stargate)\n* Get [Stargate Core Rulebook](https://stargatetherpg.com/files/file/74-stargate-sg-1-roleplaying-game-core-rulebook/)",
"useroptions": [
{
"attribute": "show_name",
+6 -7
View File
@@ -1,11 +1,11 @@
//current sheet version
const currentversion = "1.72";
const currentversion = "1.73";
const int = score => parseInt(score, 10) || 0;
const stats = ["str", "dex", "con", "wis", "int", "cha"];
const skillslist = ["acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "history", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival"];
const skillslist = ["acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival"];
const statmods = ["str_mod", "dex_mod", "con_mod", "wis_mod", "int_mod", "cha_mod", "prof"];
// Sheet Version
@@ -116,7 +116,7 @@ skillslist.forEach(skillcheckbox => {
console.log("xbox defined");
console.log("xbox is " + xbox);
let getlist = [ xbox, "acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "history", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival", "acrobatics_c", "animalhandling_c", "athletics_c", "culture_c", "deception_c", "engineering_c", "history_c", "insight_c", "intimidation_c", "investigation_c", "medicine_c", "nature_c", "perception_c", "performance_c", "persuasion_c", "pilot_c", "science_c", "sleight_c", "stealth_c", "survival_c", "prof"];
let getlist = [ xbox, "acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival", "acrobatics_c", "animalhandling_c", "athletics_c", "culture_c", "deception_c", "engineering_c", "history_c", "insight_c", "intimidation_c", "investigation_c", "medicine_c", "nature_c", "perception_c", "performance_c", "persuasion_c", "pilot_c", "science_c", "sleight_c", "stealth_c", "survival_c", "prof"];
console.log("def getlist");
getAttrs(getlist, values => {
@@ -188,7 +188,7 @@ on(`change:prof`, eventInfo => {
console.log("prof change");
let profold = int(eventInfo.previousValue);
console.log("eventinfo: " + eventInfo.previousValue);
let getlist = ["acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "history", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival", "acrobatics_c", "animalhandling_c", "athletics_c", "culture_c", "deception_c", "engineering_c", "history_c", "insight_c", "intimidation_c", "investigation_c", "medicine_c", "nature_c", "perception_c", "performance_c", "persuasion_c", "pilot_c", "science_c", "sleight_c", "stealth_c", "survival_c", "str_save", "dex_save", "con_save", "wis_save", "int_save", "cha_save","str_save_c", "dex_save_c", "con_save_c", "wis_save_c", "int_save_c", "cha_save_c", "prof", "determination", "determination_max"];
let getlist = ["acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival", "acrobatics_c", "animalhandling_c", "athletics_c", "culture_c", "deception_c", "engineering_c", "history_c", "insight_c", "intimidation_c", "investigation_c", "medicine_c", "nature_c", "perception_c", "performance_c", "persuasion_c", "pilot_c", "science_c", "sleight_c", "stealth_c", "survival_c", "str_save", "dex_save", "con_save", "wis_save", "int_save", "cha_save","str_save_c", "dex_save_c", "con_save_c", "wis_save_c", "int_save_c", "cha_save_c", "prof", "determination", "determination_max"];
getAttrs(getlist, values => {
@@ -210,7 +210,7 @@ on(`change:prof`, eventInfo => {
console.log("profold:" + profold + " profnew:" + profnew + " proffdiff: " + profdiff);
let xboxlist = ["acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "history", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival","str_save", "dex_save", "con_save", "wis_save", "int_save", "cha_save"];
let xboxlist = ["acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival","str_save", "dex_save", "con_save", "wis_save", "int_save", "cha_save"];
xboxlist.forEach(number => {
@@ -250,7 +250,7 @@ statmods.forEach(statmod => {
console.log("old mod: " + oldstatmod);
let getlist = ["str_mod", "dex_mod", "con_mod", "wis_mod", "int_mod", "cha_mod", "acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "history", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival", "str_save", "dex_save", "con_save", "wis_save", "int_save", "cha_save", "prof", "init", "moxie", "ac", "ac_extra", "determination","determination_max"];
let getlist = ["str_mod", "dex_mod", "con_mod", "wis_mod", "int_mod", "cha_mod", "acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival", "str_save", "dex_save", "con_save", "wis_save", "int_save", "cha_save", "prof", "init", "moxie", "ac", "ac_extra", "determination","determination_max"];
getAttrs(getlist, values => {
@@ -289,7 +289,6 @@ statmods.forEach(statmod => {
break;
case "int_mod":
update["engineering"] = int(values["engineering"]) + moddiff;
update["history"] = int(values["history"]) + moddiff;
update["investigation"] = int(values["investigation"]) + moddiff;
update["nature"] = int(values["nature"]) + moddiff;
update["science"] = int(values["science"]) + moddiff;
+6 -3
View File
@@ -1,5 +1,5 @@
//- SHEET VERSION
- var version = "1.72";
- var version = "1.73";
input(type="hidden" name="attr_version" value=`${version}`)
//- variables & mixin
- var url = "https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Stargate-RPG/images/";
@@ -7,7 +7,7 @@ input(type="hidden" name="attr_version" value=`${version}`)
- var pages = ["character", "background", "npc", "settings"];
//- var attr-abr = ["str", "dex", "con", "wis", "int", "cha"]; //- kye-value instead?
- var attrnames = {str: "strength", dex: "dexterity", con: "constitution", wis: "wisdom", int: "intelligence", cha: "charisma"};
- var skills = [{"attr": "acrobatics","name": "Acrobatics","keyattr": "dex"},{"attr": "animalhandling","name": "Animal Handling","keyattr": "wis"},{"attr": "athletics","name": "Athletics","keyattr": "str"},{"attr": "culture","name": "Culture","keyattr": "wis"},{"attr": "deception","name": "Deception","keyattr": "cha"},{"attr": "engineering","name": "Engineering","keyattr": "int"},{"attr": "history","name": "History","keyattr": "int"},{"attr": "insight","name": "Insight","keyattr": "wis"},{"attr": "intimidation","name": "Intimidation","keyattr": "cha"},{"attr": "investigation","name": "Investigation","keyattr": "int"},{"attr": "medicine","name": "Medicine","keyattr": "wis"},{"attr": "nature","name": "Nature","keyattr": "int"},{"attr": "perception","name": "Perception","keyattr": "wis"},{"attr": "performance","name": "performance","keyattr": "cha"},{"attr": "persuasion","name": "Persuasion","keyattr": "cha"},{"attr": "pilot","name": "Pilot","keyattr": "dex"},{"attr": "science","name": "Science","keyattr": "int"},{"attr": "sleight","name": "Sleight of Hand","keyattr": "dex"},{"attr": "stealth","name": "Stealth","keyattr": "dex"},{"attr": "survival","name": "Survival","keyattr": "wis"}];
- var skills = [{"attr": "acrobatics","name": "Acrobatics","keyattr": "dex"},{"attr": "animalhandling","name": "Animal Handling","keyattr": "wis"},{"attr": "athletics","name": "Athletics","keyattr": "str"},{"attr": "culture","name": "Culture","keyattr": "wis"},{"attr": "deception","name": "Deception","keyattr": "cha"},{"attr": "engineering","name": "Engineering","keyattr": "int"},{"attr": "insight","name": "Insight","keyattr": "wis"},{"attr": "intimidation","name": "Intimidation","keyattr": "cha"},{"attr": "investigation","name": "Investigation","keyattr": "int"},{"attr": "medicine","name": "Medicine","keyattr": "wis"},{"attr": "nature","name": "Nature","keyattr": "int"},{"attr": "perception","name": "Perception","keyattr": "wis"},{"attr": "performance","name": "performance","keyattr": "cha"},{"attr": "persuasion","name": "Persuasion","keyattr": "cha"},{"attr": "pilot","name": "Pilot","keyattr": "dex"},{"attr": "science","name": "Science","keyattr": "int"},{"attr": "sleight","name": "Sleight of Hand","keyattr": "dex"},{"attr": "stealth","name": "Stealth","keyattr": "dex"},{"attr": "survival","name": "Survival","keyattr": "wis"}];
- var condition = {1: "Disadv ability checks", 2: "Speed Halved", 3: "Disadv Attacks, Saves", 4: "Max HP Halved", 5: "Speed Zero", 6: "Death"};
//- var skill-at = [];
//- var skill-name = [];
@@ -190,7 +190,7 @@ main.character
input.w110.mr15(name=`attr_attack${num}_special` type="text")
//- ---------------------------------------------------------------------------------
//- --------------------------- BACKGORUND ----------------------------------------------
//- --------------------------- BACKGROUND ----------------------------------------------
//- ---------------------------------------------------------------------------------
main.background
section.racial_abilities.columnflex.nowrap.center
@@ -277,6 +277,9 @@ main.settings
button.txt-btn(name="roll_help" type="roll" value="@{whisper}&{template:stargate} {{title=[(Link)Sheet Userguide](https://wiki.roll20.net/Stargate) }} {{subtitle=Roll20 Wiki}} {{desc= (Right-click to open in a new tab)\n**Official Stargate RPG**\n**Roll20 Character Sheet**\n created by **Andreas J.**([@anduh_](https://twitter.com/anduh_)) }}") Sheet Documentation
br
h1 Changelog
label "v.1.73 (Aug 9th)"
span
|* Remove History Skill (was skill in old beta rules)
label "v.1.72 (June)"
span
|* code refactor
+8 -13
View File
@@ -1,5 +1,5 @@
<input type="hidden" name="attr_version" value="1.72"/>
<input type="hidden" name="attr_version" value="1.73"/>
<div class="tab-buttons middle center">
<input class="npctoggle" type="hidden" name="attr_npc" value="0"/>
<button class="pc" type="action" name="act_character">Character</button>
@@ -119,11 +119,6 @@
<input class="w30" name="attr_engineering" type="number" title="@{engineering}" value="0"/>
<button class="txt-btn" name="roll_engineering" type="roll" value="@{whisper}&amp;{template:stargate} {{title=Engineering Check}} @{show_name} {{[[d20+(@{engineering})]]=[[d20+(@{engineering})]]}}">Engineering</button><span>(int)</span>
</div>
<div class="rowflex nowrap">
<input name="attr_history_c" type="checkbox" value="1"/>
<input class="w30" name="attr_history" type="number" title="@{history}" value="0"/>
<button class="txt-btn" name="roll_history" type="roll" value="@{whisper}&amp;{template:stargate} {{title=History Check}} @{show_name} {{[[d20+(@{history})]]=[[d20+(@{history})]]}}">History</button><span>(int)</span>
</div>
<div class="rowflex nowrap">
<input name="attr_insight_c" type="checkbox" value="1"/>
<input class="w30" name="attr_insight" type="number" title="@{insight}" value="0"/>
@@ -526,6 +521,7 @@
**Roll20 Character Sheet**
created by **Andreas J.**([@anduh_](https://twitter.com/anduh_)) }}">Sheet Documentation</button><br/>
<h1>Changelog</h1>
<label>"v.1.73 (Aug 9th)"</label><span>* Remove History Skill (was skill in old beta rules)</span>
<label>"v.1.72 (June)"</label><span>* code refactor<br/> * page navigation made always visible</span>
<label>"v.1.70 (May)"</label><span>* replace page buttons<br/> * add datalists for race, origin, class<br/> * refactor sheet in PUG &amp; SCSS<br/> * update the sheet to work with CSE</span>
<label>"v.1.55(Nov. 3rd)"</label><span>* more stats to track on Settings page</span>
@@ -624,12 +620,12 @@
</rolltemplate>
<script type="text/worker">
//current sheet version
const currentversion = "1.72";
const currentversion = "1.73";
const int = score => parseInt(score, 10) || 0;
const stats = ["str", "dex", "con", "wis", "int", "cha"];
const skillslist = ["acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "history", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival"];
const skillslist = ["acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival"];
const statmods = ["str_mod", "dex_mod", "con_mod", "wis_mod", "int_mod", "cha_mod", "prof"];
// Sheet Version
@@ -740,7 +736,7 @@ skillslist.forEach(skillcheckbox => {
console.log("xbox defined");
console.log("xbox is " + xbox);
let getlist = [ xbox, "acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "history", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival", "acrobatics_c", "animalhandling_c", "athletics_c", "culture_c", "deception_c", "engineering_c", "history_c", "insight_c", "intimidation_c", "investigation_c", "medicine_c", "nature_c", "perception_c", "performance_c", "persuasion_c", "pilot_c", "science_c", "sleight_c", "stealth_c", "survival_c", "prof"];
let getlist = [ xbox, "acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival", "acrobatics_c", "animalhandling_c", "athletics_c", "culture_c", "deception_c", "engineering_c", "history_c", "insight_c", "intimidation_c", "investigation_c", "medicine_c", "nature_c", "perception_c", "performance_c", "persuasion_c", "pilot_c", "science_c", "sleight_c", "stealth_c", "survival_c", "prof"];
console.log("def getlist");
getAttrs(getlist, values => {
@@ -812,7 +808,7 @@ on(`change:prof`, eventInfo => {
console.log("prof change");
let profold = int(eventInfo.previousValue);
console.log("eventinfo: " + eventInfo.previousValue);
let getlist = ["acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "history", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival", "acrobatics_c", "animalhandling_c", "athletics_c", "culture_c", "deception_c", "engineering_c", "history_c", "insight_c", "intimidation_c", "investigation_c", "medicine_c", "nature_c", "perception_c", "performance_c", "persuasion_c", "pilot_c", "science_c", "sleight_c", "stealth_c", "survival_c", "str_save", "dex_save", "con_save", "wis_save", "int_save", "cha_save","str_save_c", "dex_save_c", "con_save_c", "wis_save_c", "int_save_c", "cha_save_c", "prof", "determination", "determination_max"];
let getlist = ["acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival", "acrobatics_c", "animalhandling_c", "athletics_c", "culture_c", "deception_c", "engineering_c", "history_c", "insight_c", "intimidation_c", "investigation_c", "medicine_c", "nature_c", "perception_c", "performance_c", "persuasion_c", "pilot_c", "science_c", "sleight_c", "stealth_c", "survival_c", "str_save", "dex_save", "con_save", "wis_save", "int_save", "cha_save","str_save_c", "dex_save_c", "con_save_c", "wis_save_c", "int_save_c", "cha_save_c", "prof", "determination", "determination_max"];
getAttrs(getlist, values => {
@@ -834,7 +830,7 @@ on(`change:prof`, eventInfo => {
console.log("profold:" + profold + " profnew:" + profnew + " proffdiff: " + profdiff);
let xboxlist = ["acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "history", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival","str_save", "dex_save", "con_save", "wis_save", "int_save", "cha_save"];
let xboxlist = ["acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival","str_save", "dex_save", "con_save", "wis_save", "int_save", "cha_save"];
xboxlist.forEach(number => {
@@ -874,7 +870,7 @@ statmods.forEach(statmod => {
console.log("old mod: " + oldstatmod);
let getlist = ["str_mod", "dex_mod", "con_mod", "wis_mod", "int_mod", "cha_mod", "acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "history", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival", "str_save", "dex_save", "con_save", "wis_save", "int_save", "cha_save", "prof", "init", "moxie", "ac", "ac_extra", "determination","determination_max"];
let getlist = ["str_mod", "dex_mod", "con_mod", "wis_mod", "int_mod", "cha_mod", "acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival", "str_save", "dex_save", "con_save", "wis_save", "int_save", "cha_save", "prof", "init", "moxie", "ac", "ac_extra", "determination","determination_max"];
getAttrs(getlist, values => {
@@ -913,7 +909,6 @@ statmods.forEach(statmod => {
break;
case "int_mod":
update["engineering"] = int(values["engineering"]) + moddiff;
update["history"] = int(values["history"]) + moddiff;
update["investigation"] = int(values["investigation"]) + moddiff;
update["nature"] = int(values["nature"]) + moddiff;
update["science"] = int(values["science"]) + moddiff;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 360 KiB

After

Width:  |  Height:  |  Size: 374 KiB