From f56676ab56c80e82cfbc4dfd5f00fa9f49063f4a Mon Sep 17 00:00:00 2001
From: Yord
We always loved creating diverse characters for role playing games.
- And (maybe much like yours?) the vast of our characters remained concepts and were never played.
+ And (maybe much like yours?) the vast of our characters remain concepts and are never played.
So when you are creating lots and lots of characters you need tools that make your life easier.
- This character generator is built to support you in exactly this task!
+ This character generator is built to support you in exactly that!
- It allows you to fill out parts of the character sheet automatically instead of typing them yourself which will save you time in e.g. deciding which career combinations you want to have.
- However, it is not meant to be a full blown character manager which helps you with spending XP over the lifetime of your character.
- This is what makes it different from the Excel Generator also available for IKRPG, but at the same time this focus makes it much easier to maintain.
- Although it is still in beta, a lot of its features already work and much more features will be available in future versions.
- So what does the generator help you with right now?
+ It allows you to fill out parts of the character sheet automatically instead of filling all values yourself (e.g. it will autofill weapons and spells) which saves you time.
+ However, it is not meant to be a full blown character manager that would help you spending XP after character creation.
+ Here it differs from the Excel Generator also available for IKRPG.
+ This is not an oversight but a design choice which makes it much easier to maintain and extend the generator.
+ Here is a list of what the character generator does for you:
Character Generator BETA
+Character Generator
-
- We plan to include all other books as well in the future, when the generator is better tested. - More features and data will be provided in the future in our free time. - But in the meantime: Have fun creating your Full Metal Fantasy characters! + Have fun creating your IKRPG characters!
Beware: diff --git a/ikrpg.appcache b/ikrpg.appcache index 1760674..d0ce4f6 100644 --- a/ikrpg.appcache +++ b/ikrpg.appcache @@ -1,5 +1,5 @@ CACHE MANIFEST -# 2015-10-10 v4 +# 2015-10-10 v5 CACHE: diff --git a/index.html b/index.html index 06abb84..f1c5a59 100644 --- a/index.html +++ b/index.html @@ -157,7 +157,7 @@ tags: [ Version 4 ]
Additionally, we offer a character generator for the character sheets that you can use to quickly test your character ideas! - It is still in beta but already includes a lot of features and all character data from the Full Metal Fantasy Core Rules. + It includes all races, castes, archetypes, careers, career options, and adventuring companies from the index. Have fun creating your IK characters!
diff --git a/static/javascripts/generator.js b/static/javascripts/generator.js index 7a55f3f..67d09bd 100644 --- a/static/javascripts/generator.js +++ b/static/javascripts/generator.js @@ -5450,9 +5450,70 @@ var ikrpg = ikrpg || {}; $.each(ikrpg.generator.races, addOption("#race-select")); $.each(ikrpg.generator.castes, addOption("#caste-select")); $.each(ikrpg.generator.archetypes, addOption("#archetype-select")); - $.each(ikrpg.generator.careers, addOption("#career1-select")); - $.each(ikrpg.generator.careers, addOption("#career2-select")); - $.each(ikrpg.generator.adventuringCompanies, addOption("#adventuring-company-select")); + + + var index = ikrpg.index.data; + + function addOptionsGroupedByPublication(selector, data, publications, category, subcategories) { + + var groups = { "Other Publications": [] }; + + $.each(publications, function(i, publication) { + groups[publication] = []; + }); + + $.each(index, function(i, entry) { + if(entry.category == category && $.inArray(entry.subcategory, subcategories) > -1 && data.hasOwnProperty(entry.name)) { + if(groups.hasOwnProperty(entry.publication)) { + groups[entry.publication].push(entry.name); + } else { + groups["Other Publications"].push(entry.name); + } + } + }); + + var html = ""; + + $.each($.merge(publications, ["Other Publications"]), function(i, publication) { + if(groups[publication]) { + html += '\n'; + } + }); + + var old = $(selector).html(); + $(selector).html(old + html); + } + + addOptionsGroupedByPublication( + "#adventuring-company-select", + ikrpg.generator.adventuringCompanies, + ["Core Rules", "Urban Adventure", "Kings, Nations, and Gods", "Unleashed Core Rules", "Skorne Empire"], + "Character Creation", + ["Adventuring Company"] + ); + addOptionsGroupedByPublication( + "#career1-select", + ikrpg.generator.careers, + ["Core Rules", "Urban Adventure", "Kings, Nations, and Gods", "Unleashed Core Rules", "Skorne Empire"], + "Character Creation", + ["Career", "Career Option"] + ); + addOptionsGroupedByPublication( + "#career2-select", + ikrpg.generator.careers, + ["Core Rules", "Urban Adventure", "Kings, Nations, and Gods", "Unleashed Core Rules", "Skorne Empire"], + "Character Creation", + ["Career", "Career Option"] + ); + + + //$.each(ikrpg.generator.careers, addOption("#career1-select")); + //$.each(ikrpg.generator.careers, addOption("#career2-select")); + //$.each(ikrpg.generator.adventuringCompanies, addOption("#adventuring-company-select")); })();