Sign in to follow this  
Followers 0
Darian Ocana

New Character Sheet based on Beginner's Box Sheets?

23 posts in this topic

I was trying to figure out on my own how to make a character sheet that not only was form fillable (with stat calculation), but also displayed the dice pools as you changed the values of characteristics and skills… no luck. I think there might be some javascript (ie Magic) way to do this, but I am not a code monkey, ape, or gorilla. Anyone have an idea? I think if we can get together the artistic people of the boards (for the layout) and the analytical (for the code) among us, this might become a rather cool project. Any takers?

 

Share this post


Link to post
Share on other sites

I don't have the artistic skills to help, but I wanted to refer the excellent example of character sheets created for WFRP3 (similar dice pool system), available on: http://gitzmansgallery.com/WFRP3_Resources/index.html. The top link is the non-fillable, just under is the fillable.

It is tougher to do for EotE since the dice pool will shift depending on your char or profiency being higher (vs. WFRP3 where they just add to each other), but I'd love indeed if someone could design a character sheet fillable that ressemble the Beginner Box.

Cheers
Ceodryn

Share this post


Link to post
Share on other sites

Wow, those are nice. thanks for the link.

 

As for the dice pool calculation, the calculation is simple in idea if not in execution. Two input variables, one defines the size of the pool and the other defines the number of proficiency symbols that replace the ability dice. I tried using google to find some examples like this, but apparently my search-fu is weak.

Share this post


Link to post
Share on other sites

The code you're looking for is simple:

max(characteristic, skill) - min(characteristic, skill) number of green dice and min(characteristic, skill) number of yellow dice.

or as a JavaScript function:

function dicePool(characteristic, skill) {

var minValue = Math.min(characteristic, skill);

alert(Math.max(characteristic, skill) - minValue + "G" + minValue + "Y");

}

 

Of course, that doesn't contain any range checking or error handling as professional code should, and you probably want it to return something meaningful rather than just display an alert box, but that should give you the right idea.

Share this post


Link to post
Share on other sites

Darian Ocana said:

Gribble,

You are a scholar and a gentleman. Thank you. I will tinker with this and see what falls out. 

No probs - let me know if you need any other help. This is something I'd like to see happen, just don't have the time to do it all myself.

:)

Share this post


Link to post
Share on other sites

 

Ok, here's my first bit of JS for the character sheet. Its a dropdown selection to populate basic stats for each species. Unfortunately, there is an error somewhere in the code which is driving me nuts. If anyone sees the issue I'd appreciate a helping hand. I'm beginning to think I may have bitten off more than I can chew :P

 

var SpeciesName = { Bothan:{ Brawn: "1",

                                            Agility: "2",

                                            Intellect: "2",

                                            Cunning: "3",

                                            Willpower: "2",

                                            Presence: "2",

                                            Wounds: "10",

                                            Strain: "11" },

                                Droid:{ Brawn: "1",

                                            Agility: "1",

                                            Intellect: "1",

                                            Cunning: "1",

                                            Willpower: "1",

                                            Presence: "1",

                                            Wounds: "10",

                                            Strain: "10" },

                                 Gand:{ Brawn: "2",

                                            Agility: "2",

                                            Intellect: "2",

                                            Cunning: "2",

                                            Willpower: "3",

                                            Presence: "1",

                                            Wounds: "10",

                                            Strain: "10" },

                              Human:{ Brawn: "2",

                                            Agility: "2",

                                            Intellect: "2",

                                            Cunning: "2",

                                            Willpower: "2",

                                            Presence: "2",

                                            Wounds: "10",

                                            Strain: "10" },

                              Rodian:{ Brawn: "2",

                                            Agility: "3",

                                            Intellect: "2",

                                            Cunning: "2",

                                            Willpower: "1",

                                            Presence: "2",

                                            Wounds: "10",

                                            Strain: "10" },

                       Trandoshan:{ Brawn: "3",

                                            Agility: "1",

                                            Intellect: "2",

                                            Cunning: "2",

                                            Willpower: "2",

                                            Presence: "2",

                                            Wounds: "12",

                                            Strain: "9" },

                              Twi'lek:{ Brawn: "1",

                                            Agility: "2",

                                            Intellect: "2",

                                            Cunning: "2",

                                            Willpower: "2",

                                            Presence: "3",

                                            Wounds: "11",

                                            Strain: "11" },

                              Wookie:{ Brawn: "3",

                                            Agility: "2",

                                            Intellect: "2",

                                            Cunning: "2",

                                            Willpower: "1",

                                            Presence: "2",

                                            Wounds: "14",

                                            Strain: "8" }},

function SetFieldValues(cSpeciesName)

{

this.getField("Brawn").value = SpeciesName[cSpeciesName].Brawn;

this.getField("Agility").value = SpeciesName[cSpeciesName].Agility;

this.getField("Intellect").value = SpeciesName[cSpeciesName].Intellect;

this.getField("Cunning").value = SpeciesName[cSpeciesName].Cunning;

this.getField("Willpower").value = SpeciesName[cSpeciesName].Willpower;

this.getField("Presence").value = SpeciesName[cSpeciesName].Presence;

this.getField("Wounds").value = SpeciesName[cSpeciesName].Wounds;

this.getField("Strain").value = SpeciesName[cSpeciesName].Strain;

}

Share this post


Link to post
Share on other sites

Darian Ocana said:

 

Ok, here's my first bit of JS for the character sheet. Its a dropdown selection to populate basic stats for each species. Unfortunately, there is an error somewhere in the code which is driving me nuts. If anyone sees the issue I'd appreciate a helping hand. I'm beginning to think I may have bitten off more than I can chew :P

 

 

Two issues:

  1. You can't have a single quote (') character in the property name Twi'lek - you'll need to remove this. For display purposes you can always add a property that holds the full name as a string. i.e.:
                                  Twilek:{ DisplayName: "Twi'lek",
                                                Brawn: "1",
                                                Agility: "2",
                                                Intellect: "2",
                                                Cunning: "2",
                                                Willpower: "2",
                                                Presence: "3",
                                                Wounds: "11",
                                                Strain: "11" },
  2. You have a stray trailling comma (,) after the final curly brace (}) of the SpeciesName variable declaration. 

Fix those and it should work.

Share this post


Link to post
Share on other sites

Actually, in JavaScript, you can have a quote in the key for "Twi'lek". Just wrap the keys in quotes. Either single-quotes, and 'escape' the inner quote (i.e: 'Twi'lek'), or just use double-quotes, and you don't have to escape the inner single-quote.

 

species = {
    // …
    "Twi'lek": {
        Brawn:      1,
        Agility:    2,
        Intellect:  2,
        Cunning:    2,
        Willpower:  2,
        Presence:   3,
        Wounds:     11,
        Strain:     11
    },
    // …
};
 

Share this post


Link to post
Share on other sites

 

 

 

 

Well, here's the newest code. Thanks for the advice guys. I appreciate it. Only issue I'm having now is a "SpecData[Characteristics] is undefined" error in the debugger.  I'm about to pull a Han and shoot the **** computer than deal with this anymore ;)

 

 

var SpecData = { Bothan:{ brawn: "1", agility: "2", intellect: "2", cunning: "3", willpower: "2", presence: "2", wounds: "10", strain: "11" },

                               Droid:{ brawn: "1", agility: "1", intellect: "1", cunning: "1", willpower: "1", presence: "1", wounds: "10", strain: "10" },

                               Gand:{ brawn: "2", agility: "2", intellect: "2", cunning: "2", willpower: "3", presence: "1", wounds: "10", strain: "10" },

                           Human:{ brawn: "2", agility: "2", intellect: "2", cunning: "2", willpower: "2", presence: "2", wounds: "10", strain: "10" },

                           Rodian:{ brawn: "2", agility: "3", intellect: "2", cunning: "2", willpower: "1", presence: "2", wounds: "10", strain: "10" },

                   Trandoshan:{ brawn: "3", agility: "1", intellect: "2", cunning: "2", willpower: "2", presence: "2", wounds: "12", strain: "9" },

                         "Twi'lek":{  brawn: "1", agility: "2", intellect: "2", cunning: "2", willpower: "2", presence: "3", wounds: "11", strain: "11" },

                           Wookie:{ brawn: "3", agility: "2", intellect: "2", cunning: "2", willpower: "1", presence: "2", wounds: "14", strain: "8" }}

function SetFieldValues(Characteristics)

{

  this.getField("cBrawn").value = SpecData[Characteristics].brawn;

  this.getField("cAgility").value = SpecData[Characteristics].agility;

  this.getField("cIntellect").value = SpecData[Characteristics].intellect;

  this.getField("cCunning").value = SpecData[Characteristics].cunning;

  this.getField("cWillpower").value = SpecData[Characteristics].willpower;

  this.getField("cPresence").value = SpecData[Characteristics].presence;

  this.getField("cWounds").value = SpecData[Characteristics].wounds;

  this.getField("cStrain").value = SpecData[Characteristics].strain;

}

 

 

 

Share this post


Link to post
Share on other sites

Darian Ocana said:

Well, here's the newest code. Thanks for the advice guys. I appreciate it. Only issue I'm having now is a "SpecData[Characteristics] is undefined" error in the debugger.  I'm about to pull a Han and shoot the **** computer than deal with this anymore ;)

Looks ok at first glance - how are you attempting to use the code above when you get the error?

Share this post


Link to post
Share on other sites

Its used via a dropdown list for the species line. Select a specific species and the code is supposed to populate the individual characteristic bubbles as well as the add to the wound and strain areas. I have some minor code that erases the bubbles when the blank area of the dropdown is selected, and that works fine. My wish is make this a fully customizable character sheet, but these little code gremlins are really pissing me off. I've included the sheet with the code in the link below.

https://dl.dropbox.com/u/45811452/EotE%20Form%20Fillable%20CS%20v2.pdf

Share this post


Link to post
Share on other sites

Darian Ocana said:

Its used via a dropdown list for the species line. Select a specific species and the code is supposed to populate the individual characteristic bubbles as well as the add to the wound and strain areas. I have some minor code that erases the bubbles when the blank area of the dropdown is selected, and that works fine. My wish is make this a fully customizable character sheet, but these little code gremlins are really pissing me off. I've included the sheet with the code in the link below.

Sorry man, code embedded in PDFs is starting to get outside my territory… however I suspect that what is happening is that the SpecData array is out of scope when it's being referenced - hence my question. Are you sure that the error is coming from the function, or are you referencing the the SpecData array elsewhere that may be the source of the error?

Can you provide the full debugging trace? That might help…

:)

Share this post


Link to post
Share on other sites

Darian Ocana said:

Its used via a dropdown list for the species line. Select a specific species and the code is supposed to populate the individual characteristic bubbles as well as the add to the wound and strain areas. I have some minor code that erases the bubbles when the blank area of the dropdown is selected, and that works fine. My wish is make this a fully customizable character sheet, but these little code gremlins are really pissing me off. I've included the sheet with the code in the link below.

https://dl.dropbox.com/u/45811452/EotE%20Form%20Fillable%20CS%20v2.pdf

I don't get anything when trying out the sheet… :(

Share this post


Link to post
Share on other sites

aljovin said:

Darian Ocana said:

 

Its used via a dropdown list for the species line. Select a specific species and the code is supposed to populate the individual characteristic bubbles as well as the add to the wound and strain areas. I have some minor code that erases the bubbles when the blank area of the dropdown is selected, and that works fine. My wish is make this a fully customizable character sheet, but these little code gremlins are really pissing me off. I've included the sheet with the code in the link below.

https://dl.dropbox.com/u/45811452/EotE%20Form%20Fillable%20CS%20v2.pdf

 

 

I don't get anything when trying out the sheet… :(

 

OK, I've managed… I have found your error!

The dropdown have all the names in lowercase, but the index for your SpecData are capitalized.

In Javascript bothan != Bothan

Hope this helps!

Share this post


Link to post
Share on other sites

Little update. I've built a custom sheet repurposing the design elements into a new format. I've included the autofill function for species selection as well as adding an area in the skills section that has fillable ranks and a dice pool area. Dice pools are not coded yet. Still trying to figure out how to output a shape from both characteristics and skills in the code. 

https://dl.dropbox.com/u/45811452/EotE%20Character%20Sheet%20Project%20v1.pdf

Share this post


Link to post
Share on other sites

Darian Ocana said:

Little update. I've built a custom sheet repurposing the design elements into a new format. I've included the autofill function for species selection as well as adding an area in the skills section that has fillable ranks and a dice pool area. Dice pools are not coded yet. Still trying to figure out how to output a shape from both characteristics and skills in the code. 

https://dl.dropbox.com/u/45811452/EotE%20Character%20Sheet%20Project%20v1.pdf

 

Excuse me while geek out for a bit.

This is cool!

Share this post


Link to post
Share on other sites

I think you have the wrong Wound Threshold for Twi'leks. Should be 11 + Brawn by default, yeah? Which would give a starting Wound Threshold (before XP) of 12. You have it listed as 13.

I actually haven't looked at the character folios much … are there plans to incorporate space for miscellaneous gear onto the character sheet? For comlinks, datapads, and what not?

Looks great though, good work so far.

Share this post


Link to post
Share on other sites

Dylan - I'm using Gribble's reference sheets for the numbers as I don't have my book with me. Everything matches in the code with what he's got listed. If you're having issues with the numbers, try selecting the a blank entry for the species to clear everything and try twi'lek again. I've got some work to do to make the wound and strain blocks more customizable. I also plan on making a second page to cover misc gear, obligations, motivations, etc.

TacB - I made the dots in the career and rank fields a little too big. There is some overlap occuring with the different fields which is causing your error. When I get some spare time (on vacation right now) I'll reformat the sheet with smaller dots and hopefully that will fix the problem. In the meantime, try zooming in a bit on the rank areas. That may help.

BTW, I consider this a community project, so if you have any suggestions please let me know. Also, If any of you are acrobat or javascript gurus, you are more than welcome to tinker with the code to make it work better.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0