Obsidian Portal
Menu
Sign In / Create Account
JavaScript is currently disabled. Obsidian Portal has a lot of really cool features that use JavaScript. You should check them out. We think you'll have a much more enjoyable experience.
Home
Campaigns
Games Nearby
Plans
Community
Help
Blog
Star Wars: Universal Automated
Author:
daine_deneith
Slug:
sw_uni_auto_fad
System:
Star Wars: Force and Destiny
DST Source Code
HTML Template
<!-- Star Wars: EotE AoR FaD, Dynamic Style Sheet --> <div class="sw_uni_auto_fad_base"> <!-- Start --> <div class="sw_uni_auto_fad_line"> <ul> <li> <span>Character Name:</span> <span class="dsf dsf_name"></span> </li> <li> <span>Player Name:</span> <span class="dsf dsf_player"></span> </li> </ul> </div> <div class="sw_uni_auto_fad_line"> <ul> <li> <span>Species:</span> <span class="dsf dsf_species"></span> </li> <li> <span>Career:</span> <span class="dsf dsf_career"></span> </li> </ul> </div> <div class="sw_uni_auto_fad_line"> <ul> <li class="sw_uni_auto_fad_span_all"> <span>Specializations:</span> <span class="dsf dsf_specializations"></span> </li> </ul> </div> <div class="sw_uni_auto_fad_attributes"> <!-- Soak --> <div class="sw_uni_auto_fad_attribute_box"> <div class="sw_uni_auto_fad_attribute_box_shadow"></div> <div class="sw_uni_auto_fad_type"> <div class="sw_uni_auto_fad_text"> Soak Value </div> </div> <div class="sw_uni_auto_fad_attribute"> <div class="sw_uni_auto_fad_text"> <span class="dsf dsf_soak_w"></span> </div> </div> </div> <!-- Wounds --> <div class="sw_uni_auto_fad_attribute_box"> <div class="sw_uni_auto_fad_attribute_box_shadow"></div> <div class="sw_uni_auto_fad_type"> <div class="sw_uni_auto_fad_text"> Wounds </div> </div> <div class="sw_uni_auto_fad_attribute"> <div class="sw_uni_auto_fad_text"> <ul> <li><span class="dsf dsf_wound"></span></li> <li class="sw_uni_auto_fad_divider"></li> <li><span class="dsf dsf_wound_current"></span></li> </ul> </div> </div> <div class="sw_uni_auto_fad_split_box"> <div>Threshold</div> <div>Current</div> </div> </div> <!-- Strain --> <div class="sw_uni_auto_fad_attribute_box"> <div class="sw_uni_auto_fad_attribute_box_shadow"></div> <div class="sw_uni_auto_fad_type"> <div class="sw_uni_auto_fad_text"> Strain </div> </div> <div class="sw_uni_auto_fad_attribute"> <div class="sw_uni_auto_fad_text"> <ul> <li><span class="dsf dsf_strain"></span></li> <li class="sw_uni_auto_fad_divider"></li> <li><span class="dsf dsf_strain_current"></span></li> </ul> </div> </div> <div class="sw_uni_auto_fad_split_box"> <div>Threshold</div> <div>Current</div> </div> </div> <!-- Defense --> <div class="sw_uni_auto_fad_attribute_box"> <div class="sw_uni_auto_fad_attribute_box_shadow"></div> <div class="sw_uni_auto_fad_type"> <div class="sw_uni_auto_fad_text"> Defense </div> </div> <div class="sw_uni_auto_fad_attribute"> <div class="sw_uni_auto_fad_text"> <ul> <li><span class="dsf dsf_ranged_def"></span></li> <li class="sw_uni_auto_fad_divider"></li> <li><span class="dsf dsf_melee_def"></span></li> </ul> </div> </div> <div class="sw_uni_auto_fad_split_box"> <div>Ranged</div> <div>Melee</div> </div> </div> <span class="sw_uni_auto_fad_stretch"></span> </div> <div class="sw_uni_auto_fad_attributes"> <!-- Force Pool --> <div class="sw_uni_auto_fad_attribute_box"> <div class="sw_uni_auto_fad_attribute_box_shadow"></div> <div class="sw_uni_auto_fad_type"> <div class="sw_uni_auto_fad_text"> Force Pool </div> </div> <div class="sw_uni_auto_fad_attribute"> <div class="sw_uni_auto_fad_text"> <ul> <li><span class="dsf dsf_forcepool"></span></li> <li class="sw_uni_auto_fad_divider"></li> <li><span class="dsf dsf_forcepool_current"></span></li> </ul> </div> </div> <div class="sw_uni_auto_fad_split_box"> <div>Committed</div> <div>Available</div> </div> </div> <!-- Force Rating --> <div class="sw_uni_auto_fad_attribute_box"> <div class="sw_uni_auto_fad_attribute_box_shadow"></div> <div class="sw_uni_auto_fad_type"> <div class="sw_uni_auto_fad_text"> Force Rating </div> </div> <div class="sw_uni_auto_fad_attribute"> <div class="sw_uni_auto_fad_text"> <span class="dsf dsf_forcerating_w"></span> </div> </div> </div> <!-- Encumbrance --> <div class="sw_uni_auto_fad_attribute_box"> <div class="sw_uni_auto_fad_attribute_box_shadow"></div> <div class="sw_uni_auto_fad_type"> <div class="sw_uni_auto_fad_text"> Encumbrance </div> </div> <div class="sw_uni_auto_fad_attribute"> <div class="sw_uni_auto_fad_text"> <ul> <li><span class="dsf dsf_encumbrance"></span></li> <li class="sw_uni_auto_fad_divider"></li> <li><span class="dsf dsf_encumbrance_current"></span></li> </ul> </div> </div> <div class="sw_uni_auto_fad_split_box"> <div>Threshold</div> <div>Current</div> </div> </div> <span class="sw_uni_auto_fad_stretch"></span> </div> <div class="sw_uni_auto_fad_strike"> <div> <div class="sw_uni_auto_fad_section_title">Characteristics</div> </div> </div> <div class="sw_uni_auto_fad_stats"> <div class="sw_uni_auto_fad_stat_block" sw_uni_auto_fad_key="BR"> <div class="sw_uni_auto_fad_stat"> <div class="sw_uni_auto_fad_stat_background"></div> <div class="sw_uni_auto_fad_text"> <!-- Value --> <span class="dsf dsf_brawn"></span> </div> </div> <div class='sw_uni_auto_fad_type'> <div class='sw_uni_auto_fad_text'> <!-- Description --> brawn </div> </div> </div> <div class="sw_uni_auto_fad_stat_block" sw_uni_auto_fad_key="AG"> <div class="sw_uni_auto_fad_stat"> <div class="sw_uni_auto_fad_stat_background"></div> <div class="sw_uni_auto_fad_text"> <!-- Value --> <span class="dsf dsf_aglity"></span> </div> </div> <div class='sw_uni_auto_fad_type'> <div class='sw_uni_auto_fad_text'> <!-- Description --> agility </div> </div> </div> <div class="sw_uni_auto_fad_stat_block" sw_uni_auto_fad_key="INT"> <div class="sw_uni_auto_fad_stat"> <div class="sw_uni_auto_fad_stat_background"></div> <div class="sw_uni_auto_fad_text"> <!-- Value --> <span class="dsf dsf_intellect"></span> </div> </div> <div class='sw_uni_auto_fad_type'> <div class='sw_uni_auto_fad_text'> <!-- Description --> intellect </div> </div> </div> <div class="sw_uni_auto_fad_stat_block" sw_uni_auto_fad_key="CUN"> <div class="sw_uni_auto_fad_stat"> <div class="sw_uni_auto_fad_stat_background"></div> <div class="sw_uni_auto_fad_text"> <!-- Value --> <span class="dsf dsf_cunning"></span> </div> </div> <div class='sw_uni_auto_fad_type'> <div class='sw_uni_auto_fad_text'> <!-- Description --> cunning </div> </div> </div> <div class="sw_uni_auto_fad_stat_block" sw_uni_auto_fad_key="WIL"> <div class="sw_uni_auto_fad_stat"> <div class="sw_uni_auto_fad_stat_background"></div> <div class="sw_uni_auto_fad_text"> <!-- Value --> <span class="dsf dsf_willpower"></span> </div> </div> <div class='sw_uni_auto_fad_type'> <div class='sw_uni_auto_fad_text'> <!-- Description --> willpower </div> </div> </div> <div class="sw_uni_auto_fad_stat_block" sw_uni_auto_fad_key="PR"> <div class="sw_uni_auto_fad_stat"> <div class="sw_uni_auto_fad_stat_background"></div> <div class="sw_uni_auto_fad_text"> <!-- Value --> <span class="dsf dsf_presence"></span> </div> </div> <div class='sw_uni_auto_fad_type'> <div class='sw_uni_auto_fad_text'> <!-- Description --> presence </div> </div> </div> <span class="sw_uni_auto_fad_stretch"></span> </div> <div class="sw_uni_auto_fad_strike"> <div> <div class="sw_uni_auto_fad_section_title"> Skills </div> </div> </div> <div class="sw_uni_auto_fad_skills_headers"> <div class="sw_uni_auto_fad_table"> <div class="sw_uni_auto_fad_tr"> <div class="sw_uni_auto_fad_td sw_uni_auto_fad_th"> <span>Skill</span> </div> <div class="sw_uni_auto_fad_td sw_uni_auto_fad_th"> <span>Skill Type</span> </div> <div class="sw_uni_auto_fad_td sw_uni_auto_fad_th"> <span>Car</span> </div> <div class="sw_uni_auto_fad_td sw_uni_auto_fad_th"> <span>Rank</span> </div> <div class="sw_uni_auto_fad_td sw_uni_auto_fad_th"> <span></span> </div> </div> <div class="sw_uni_auto_fad_tr"> <div class="sw_uni_auto_fad_td sw_uni_auto_fad_th"> <span>Skill</span> </div> <div class="sw_uni_auto_fad_td sw_uni_auto_fad_th"> <span>Skill Type</span> </div> <div class="sw_uni_auto_fad_td sw_uni_auto_fad_th"> <span>Car</span> </div> <div class="sw_uni_auto_fad_td sw_uni_auto_fad_th"> <span>Rank</span> </div> <div class="sw_uni_auto_fad_td sw_uni_auto_fad_th"> <span></span> </div> </div> </div> </div> <div class="sw_uni_auto_fad_skills"> <div class="sw_uni_auto_fad_table sw_uni_auto_fad_skill"></div> </div> <div> <div class="sw_uni_auto_fad_skill_additional"> <div class='sw_uni_auto_fad_type'> <div class='sw_uni_auto_fad_text'> <!-- Description --> Additional Skills </div> </div> <div class="sw_uni_auto_fad_skill_additional_value"> <span class="dsf dsf_skills_additional"></span> </div> </div> </div> <div class="sw_uni_auto_fad_strike"> <div> <div class="sw_uni_auto_fad_section_title"> Weapons </div> </div> </div> <div class="sw_uni_auto_fad_weapons"> <table class="sw_uni_auto_fad_weapon"> <thead> <tr> <th><a href="javascript:void(0)" title="Add New Weapon">+</a></th> <th>Weapon</th> <th>Skill</th> <th>Damage</th> <th>Range</th> <th>Crit</th> <th>Special</th> </tr> </thead> <tbody></tbody> </table> </div> <div class="sw_uni_auto_fad_strike"> <div> <div class="sw_uni_auto_fad_section_title">Experience</div> </div> </div> <div class="sw_uni_auto_fad_experience"> <div class="sw_uni_auto_fad_attribute_box"> <div class="sw_uni_auto_fad_attribute_box_shadow"></div> <div class="sw_uni_auto_fad_type"> <div class="sw_uni_auto_fad_text"> Total XP </div> </div> <div class="sw_uni_auto_fad_attribute"> <div class="sw_uni_auto_fad_text"> <span class="dsf dsf_earned_xp"></span> </div> </div> </div> <div class="sw_uni_auto_fad_campaign_box"> <span>Campaign: </span><span class="dsf dsf_campaign"></span> </div> <div class="sw_uni_auto_fad_attribute_box"> <div class="sw_uni_auto_fad_attribute_box_shadow"></div> <div class="sw_uni_auto_fad_type"> <div class="sw_uni_auto_fad_text"> Available XP </div> </div> <div class="sw_uni_auto_fad_attribute"> <div class="sw_uni_auto_fad_text"> <span class="dsf dsf_unspent_xp"></span> </div> </div> </div> <span class="sw_uni_auto_fad_stretch"></span> </div> <div class="sw_uni_auto_fad_character_description_container"> <div class="sw_uni_auto_fad_character_description"> <div class="sw_uni_auto_fad_type"> <div class="sw_uni_auto_fad_text"> Character Description </div> </div> <div> <div class="sw_uni_auto_fad_character_descriptions"> <div><span>Gender: </span><span class="dsf dsf_gender"></span></div> <div><span>Age: </span><span class="dsf dsf_age"></span></div> <div><span>Height: </span><span class="dsf dsf_height"></span></div> <div><span>Build: </span><span class="dsf dsf_build"></span></div> <div><span>Hair: </span><span class="dsf dsf_hair"></span></div> <div><span>Eyes: </span><span class="dsf dsf_eyes"></span></div> <div><span>Notable Features: </span><div class="sw_uni_auto_fad_text"><span class="dsf dsf_notable"></span></div></div> </div> </div> </div> <div class="sw_uni_auto_fad_spacer"></div> <div class="sw_uni_auto_fad_critical_injuries_container"> <div class="sw_uni_auto_fad_critical_injuries"> <div class="sw_uni_auto_fad_type"> <div class="sw_uni_auto_fad_text"> <a href="javascript:void(0)" title="Add Critcal Injury">+</a> Critical Injuries </div> </div> <div class="sw_uni_auto_fad_critical_injury_list"> <ul></ul> </div> </div> </div> </div> <div class="sw_uni_auto_fad_motivations_container"> <div class="sw_uni_auto_fad_motivations"> <div class="sw_uni_auto_fad_type"> <div class="sw_uni_auto_fad_text"> <a href="javascript:void(0)" title="Add Motivation">+</a> Motivation </div> </div> <div class="sw_uni_auto_fad_motivation_list"> <ul></ul> </div> </div> </div> <div class="sw_uni_auto_fad_obligations_container"> <div class="sw_uni_auto_fad_obligations"> <div class="sw_uni_auto_fad_type"> <div class="sw_uni_auto_fad_text"> <a href="javascript:void(0)" title="Add Obligation">+</a> Obligation, Duty, and Morality </div> </div> <div class="sw_uni_auto_fad_obligation_list"> <ul></ul> </div> </div> </div> <div class="sw_uni_auto_fad_equipment_container"> <div class="sw_uni_auto_fad_equipment"> <div class="sw_uni_auto_fad_type"> <div class="sw_uni_auto_fad_text"> Equipment Log </div> <div class="sw_uni_auto_fad_credits"> <span>Credits:</span><span class="dsf dsf_credits"></span> </div> </div> <div> <div class="sw_uni_auto_fad_log"> <!--<div><div class="sw_uni_auto_fad_title">Weapons & Armor</div><div class="sw_uni_auto_fad_text"><span class="dsf dsf_weapons_and_armor"></span></div></div> <div><div class="sw_uni_auto_fad_title">Personal Gear</div><div class="sw_uni_auto_fad_text"><span class="dsf dsf_personal_gear"></span></div></div>--> <div><div class="sw_uni_auto_fad_title">Weapons & Armor</div><div class="sw_uni_auto_fad_text"><li class="dsf dsf_weapons_and_armor"></li></div></div> <div><div class="sw_uni_auto_fad_title">Personal Gear</div><div class="sw_uni_auto_fad_text"><li class="dsf dsf_personal_gear"></li></div></div> <span class="sw_uni_auto_fad_stretch"></span> </div> </div> </div> </div> <div class="sw_uni_auto_fad_talents_container"> <div class="sw_uni_auto_fad_talents"> <div class="sw_uni_auto_fad_type"> <div class="sw_uni_auto_fad_text"> <a href="javascript:void(0)" title="Add Talent">+</a> Talents and Special Abilities </div> </div> <div class="sw_uni_auto_fad_talent_list"> <table class="sw_uni_auto_fad_talent" cellpadding="2" cellspacing="0"> <thead> <tr> <th> </th> <th>Name</th> <th>Page#</th> <th>Summary</th> </tr> </thead> <tbody></tbody> </table> </div> </div> </div> <div class="sw_uni_auto_fad_bio_container"> <div class="sw_uni_auto_fad_bio"> <div class="sw_uni_auto_fad_type"> <div class="sw_uni_auto_fad_text"> Bio </div> </div> <div class="sw_uni_auto_fad_bio_text"> <span class="dsf dsf_bio"></span> </div> </div> </div> <input type="file" class="sw_uni_auto_fad_eote_export_file" /> <a href="javascript:void(0);" class="sw_uni_auto_fad_process_xml_button" title="Future Functionality!">Import XML File</a> <div class="sw_uni_auto_fad_author">Dynamic Style Sheet Author: <span class="dsf dsf_dst_author"></span></div> </div> <!-- ds_ffsw -->
CSS
.sw_uni_auto_fad_base { font-family: Arial; position:relative; background-color:white; z-index: 2; line-height: 1; } .jeditable_input input { width:100% !important; height:100% !important; } /* Custom, iPhone Retina */ @media only screen and (min-width : 320px) { .sw_uni_auto_fad_base { } } /* Extra Small Devices, Phones */ @media only screen and (min-width : 480px) { .sw_uni_auto_fad_base { } } /* Small Devices, Tablets */ @media only screen and (min-width : 768px) { .sw_uni_auto_fad_base { /* testing css remove */ } } /* Medium Devices, Desktops */ @media only screen and (min-width : 992px) { .sw_uni_auto_fad_base { /* testing css remove */ } } /* Large Devices, Wide Screens */ @media only screen and (min-width : 1200px) { .sw_uni_auto_fad_base { /* testing css remove */ } } /* Top Sections *****************************************************/ .sw_uni_auto_fad_line span:not(.dsf) { text-transform: uppercase; } .sw_uni_auto_fad_line span.dsf { font-size:22px; font-style:italic; } .sw_uni_auto_fad_line ul { -webkit-column-count: 2; /* Chrome, Safari, Opera */ -moz-column-count: 2; /* Firefox */ column-count: 2; padding:0px; margin:0px; } .sw_uni_auto_fad_line ul li { border-bottom: solid #000 1px; list-style-type: none; } .sw_uni_auto_fad_line ul li.sw_uni_auto_fad_span_all { -webkit-column-span: all; column-span: all; list-style-type: none; } /* Section Headers *****************************************************/ .sw_uni_auto_fad_strike { display: block; text-align: center; overflow: hidden; white-space: nowrap; padding-top:10px; } .sw_uni_auto_fad_section_title { height:20px; width: 200px; text-transform: uppercase; background: linear-gradient(135deg, transparent 7px, #313E53 0) top left, linear-gradient(225deg, transparent 7px, #313E53 0) top right, linear-gradient(315deg, transparent 7px, #313E53 0) bottom right, linear-gradient(45deg, transparent 7px, #313E53 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; color: #fff; padding-top: 2px; } .sw_uni_auto_fad_strike > div { position: relative; display: inline-block; } .sw_uni_auto_fad_strike > div:before, .sw_uni_auto_fad_strike > div:after { content: ""; position: absolute; top: 50%; width: 9999px; height: 3px; background: #761213; } .sw_uni_auto_fad_strike > div:before { right: 100%; margin-right: 15px; } .sw_uni_auto_fad_strike > div:after { left: 100%; margin-left: 15px; } /* Stats Section *****************************************************/ .sw_uni_auto_fad_stats { text-align: justify; -ms-text-justify: distribute-all-lines; text-justify: distribute-all-lines; height:120px; min-width: 560px } .sw_uni_auto_fad_stat_block { width: 110px; text-align:center; display:inline-block; *display: inline; } .sw_uni_auto_fad_stat { width: 80px; height: 80px; border-radius: 80px 80px 80px 80px; background: #fff; margin-top: 3px; padding: 0px; display:inline-block; *display: inline; border: solid #000 3px; margin-left:auto; margin-right: auto; position:relative; } .sw_uni_auto_fad_stat:before { content: ""; position: absolute; top: 0px; left: -20px; width: 120px; height: 20px; background: linear-gradient(135deg, transparent 6px, #313E53 0) top left, linear-gradient(225deg, transparent 6px, #313E53 0) top right, linear-gradient(315deg, transparent 6px, #313E53 0) bottom right, linear-gradient(45deg, transparent 6px, #313E53 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; z-index: -1; } .sw_uni_auto_fad_stat:after { content: ""; position: absolute; top: 25px; left: -20px; width: 120px; height: 20px; background: linear-gradient(135deg, transparent 6px, #313E53 0) top left, linear-gradient(225deg, transparent 6px, #313E53 0) top right, linear-gradient(315deg, transparent 6px, #313E53 0) bottom right, linear-gradient(45deg, transparent 6px, #313E53 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; z-index: -1; } .sw_uni_auto_fad_stat_background { position: absolute; top: 50px; left: -20px; width: 120px; height: 20px; background: linear-gradient(135deg, transparent 6px, #313E53 0) top left, linear-gradient(225deg, transparent 6px, #313E53 0) top right, linear-gradient(315deg, transparent 6px, #313E53 0) bottom right, linear-gradient(45deg, transparent 6px, #313E53 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; z-index: -1; } .sw_uni_auto_fad_stat_background:after { content: ""; position: absolute; top: 25px; left: 0px; width: 120px; height: 46px; background: linear-gradient(135deg, transparent 6px, #313E53 0) top left, linear-gradient(225deg, transparent 6px, #313E53 0) top right, linear-gradient(315deg, transparent 6px, #313E53 0) bottom right, linear-gradient(45deg, transparent 6px, #313E53 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; z-index: -1; } .sw_uni_auto_fad_stat div.sw_uni_auto_fad_text { font-family: Arial; text-align: center; font-size: 48pt; } .sw_uni_auto_fad_type { /*background: #860000;*/ height: 24px; width: 100%; margin-top: 10px; /*border-radius: 5px 5px 5px 5px;*/ background: linear-gradient(135deg, transparent 5px, #761213 0) top left, linear-gradient(225deg, transparent 5px, #761213 0) top right, linear-gradient(315deg, transparent 5px, #761213 0) bottom right, linear-gradient(45deg, transparent 5px, #761213 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; } .sw_uni_auto_fad_type div.sw_uni_auto_fad_text { font-family: Arial; padding-top: 3px; font-size: 12pt; color: #fff; text-transform: uppercase; font-weight: bold; } /* Attribute Sections *****************************************************/ .sw_uni_auto_fad_attributes { padding-top:5px; position:relative; text-align: justify; -ms-text-justify: distribute-all-lines; text-justify: distribute-all-lines; height:80px; min-width: 560px } .sw_uni_auto_fad_attribute_box .sw_uni_auto_fad_attribute_box_shadow { content: ""; position:absolute; top: -3px; height: 66px; width: 166px; left:-3px; background: linear-gradient(135deg, transparent 10px, #000 0) top left, linear-gradient(225deg, transparent 10px, #000 0) top right, linear-gradient(315deg, transparent 10px, #000 0) bottom right, linear-gradient(45deg, transparent 10px, #000 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; z-index: -1; } .sw_uni_auto_fad_attribute_box { display:inline-block; *display: inline; position: relative; width: 160px; height: 60px; background: linear-gradient(135deg, transparent 10px, #fff 0) top left, linear-gradient(225deg, transparent 10px, #fff 0) top right, linear-gradient(315deg, transparent 10px, #fff 0) bottom right, linear-gradient(45deg, transparent 10px, #fff 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; vertical-align: top; } .sw_uni_auto_fad_attribute_box .sw_uni_auto_fad_split_box { left: -10px; position: absolute; top: 50%; width: 180px; height: 50px; background: linear-gradient(135deg, transparent 5px, #761213 0) top left, linear-gradient(225deg, transparent 5px, #7DD4DC 0) top right, linear-gradient(315deg, transparent 5px, #7DD4DC 0) bottom right, linear-gradient(45deg, transparent 5px, #761213 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; z-index: -2; } .sw_uni_auto_fad_attribute_box .sw_uni_auto_fad_split_box div:first-child { width: 50%; position: absolute; bottom: 0px; text-align: right; text-transform: uppercase; color: #fff; font-size: 12px; right: 50%; padding-right: 5px; } .sw_uni_auto_fad_attribute_box .sw_uni_auto_fad_split_box div:last-child { width:50%; position:absolute; bottom:0px; text-align: left; text-transform:uppercase; color:#000; font-size:12px; left: 50%; padding-left:5px; } .sw_uni_auto_fad_attribute_box .sw_uni_auto_fad_type { position: absolute; margin-left: 5px; width: 140px; height: 18px; /* top: 5px; */ margin-top: 5px; left: 4px; background: linear-gradient(135deg, transparent 5px, #313E53 0) top left, linear-gradient(225deg, transparent 5px, #313E53 0) top right, linear-gradient(315deg, transparent 5px, #313E53 0) bottom right, linear-gradient(45deg, transparent 5px, #313E53 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; z-index: 1; } .sw_uni_auto_fad_attribute_box .sw_uni_auto_fad_type .sw_uni_auto_fad_text { text-align: center; padding-top: 2px; font-size: 10pt; } .sw_uni_auto_fad_attribute_box .sw_uni_auto_fad_attribute { font-size: 24pt; text-align: center; padding-top: 21px; } .sw_uni_auto_fad_attribute_box .sw_uni_auto_fad_attribute .sw_uni_auto_fad_text ul { -webkit-column-count: 2; /* Chrome, Safari, Opera */ -moz-column-count: 2; /* Firefox */ column-count: 2; padding:0px; margin:0px; } .sw_uni_auto_fad_attribute_box .sw_uni_auto_fad_attribute .sw_uni_auto_fad_text li:first-child { position:absolute; left:25px; top:25%; list-style:none; } .sw_uni_auto_fad_attribute_box .sw_uni_auto_fad_attribute .sw_uni_auto_fad_text li:last-child { position:absolute; right:25px; top:25%; list-style:none; } .sw_uni_auto_fad_attribute_box .sw_uni_auto_fad_attribute .sw_uni_auto_fad_text li.sw_uni_auto_fad_divider { width: 2px; height: 100%; background-color: #000; position: absolute; left: 50%; list-style: none; } .sw_uni_auto_fad_attribute li { width:36px; height:36px; } /* Skills Sections *****************************************************/ .sw_uni_auto_fad_skills { height:650px; } .sw_uni_auto_fad_table { display: inline-block; /* required to keep a nice spacing between columns */ -webkit-column-count: 2; -webkit-column-gap: 10px; -moz-column-count: 2; -moz-column-gap: 10px; column-count: 2; column-gap: 10px; width:100% } sw_uni_auto_fad_skills .sw_uni_auto_fad_tr, .sw_uni_auto_fad_skills_headers .sw_uni_auto_fad_tr { display: block; } .sw_uni_auto_fad_skills .sw_uni_auto_fad_td, .sw_uni_auto_fad_skills_headers .sw_uni_auto_fad_td { display: inline-block; /*padding: 5px;*/ text-align: left; } .sw_uni_auto_fad_skill .sw_uni_auto_fad_tr:nth-child(even) { background-color: #A79B86; } .sw_uni_auto_fad_skill .sw_uni_auto_fad_tr:nth-child(odd) { background-color: #E6F6FC; } .sw_uni_auto_fad_skill .sw_uni_auto_fad_td { padding:0px; height: 24px; } .sw_uni_auto_fad_skills_headers { height: 24px; padding-top: 5px; } .sw_uni_auto_fad_skills_headers .sw_uni_auto_fad_td { padding: 0px; height: auto; text-align: left; font-weight: bold; } .sw_uni_auto_fad_skills_headers .sw_uni_auto_fad_td:nth-child(1) { width: 130px; } .sw_uni_auto_fad_skills_headers .sw_uni_auto_fad_td:nth-child(2) { width: 80px; } .sw_uni_auto_fad_skills_headers .sw_uni_auto_fad_td:nth-child(3) { width: 30px; } .sw_uni_auto_fad_skills_headers .sw_uni_auto_fad_td:nth-child(4) { width: 22px; } .sw_uni_auto_fad_skills_headers .sw_uni_auto_fad_td:nth-child(5) { width: 92px; } .sw_uni_auto_fad_skill .sw_uni_auto_fad_td:nth-child(1) { width: 135px; } .sw_uni_auto_fad_skill .sw_uni_auto_fad_td:nth-child(2) { width: 82px; } .sw_uni_auto_fad_skill .sw_uni_auto_fad_td:nth-child(3) { width: 29px; text-align:center; } .sw_uni_auto_fad_skill .sw_uni_auto_fad_td:nth-child(4) { width: 22px; text-align:center; } .sw_uni_auto_fad_skill .sw_uni_auto_fad_td:nth-child(5) { width: 92px; } .sw_uni_auto_fad_skill_additional { width: 100%; height: 160px; background: linear-gradient(135deg, transparent 5px, #CECFCB 0) top left, linear-gradient(225deg, transparent 5px, #CECFCB 0) top right, linear-gradient(315deg, transparent 5px, #CECFCB 0) bottom right, linear-gradient(45deg, transparent 5px, #CECFCB 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; } .sw_uni_auto_fad_skill_additional_value { padding: 5px; } /* Misc Sections *****************************************************/ .sw_uni_auto_fad_green { width: 16px; height: 18px; background: linear-gradient(135deg, transparent 6px, #3CA947 0) top left, linear-gradient(225deg, transparent 6px, #3CA947 0) top right, linear-gradient(315deg, transparent 6px, #3CA947 0) bottom right, linear-gradient(45deg, transparent 6px, #3CA947 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; float:left; list-style: none; margin-top: 8px; } .sw_uni_auto_fad_yellow { width: 16px; height: 16px; background: linear-gradient(135deg, transparent 3px, #CBD701 0) top left, linear-gradient(225deg, transparent 3px, #CBD701 0) top right, linear-gradient(315deg, transparent 3px, #CBD701 0) bottom right, linear-gradient(45deg, transparent 3px, #CBD701 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; float:left; list-style: none; margin-top: 8px; } .sw_uni_auto_fad_stretch { width: 100%; display: inline-block; font-size: 0; line-height: 0 } .sw_uni_auto_fad_spacer { height: 10px; background: #fff; } .sw_uni_auto_fad_eote_export_file { display: none; } .sw_uni_auto_fad_base table tr th, .sw_uni_auto_fad_base table tr td { padding:3px; } .sw_uni_auto_fad_process_xml_button { display: none; } /* Wespon Sections *****************************************************/ .sw_uni_auto_fad_weapon { width:100%; border-collapse: collapse; } .sw_uni_auto_fad_weapon th { text-align:left; } .sw_uni_auto_fad_weapon th:first-child a { color: #fff; text-decoration: none; width: 20px; background-color: #A79B86; padding: 2px 5px; } .sw_uni_auto_fad_weapon tbody tr:nth-child(even) { background-color: #A79B86; } .sw_uni_auto_fad_weapon tbody tr:nth-child(odd) { background-color: #E6F6FC; } /* Experience Sections *****************************************************/ .sw_uni_auto_fad_experience { text-align: justify; -ms-text-justify: distribute-all-lines; text-justify: distribute-all-lines; min-width: 560px } .sw_uni_auto_fad_experience .sw_uni_auto_fad_attribute_box { text-align:center; display:inline-block; *display: inline; } .sw_uni_auto_fad_experience .sw_uni_auto_fad_campaign_box { width: 300px; text-align:center; display:inline-block; *display: inline; padding-top: 10px; } .sw_uni_auto_fad_experience .sw_uni_auto_fad_campaign_box span:first-child { text-transform:uppercase; } /* Motivation Sections *****************************************************/ .sw_uni_auto_fad_motivations_container { width: 66%; background: #CECFCB; } .sw_uni_auto_fad_motivations { text-align:right; background: linear-gradient(135deg, #fff 0px, #CECFCB 0) top left, linear-gradient(225deg, #fff 6px, #CECFCB 0) top right, linear-gradient(315deg, #fff 0px, #CECFCB 0) bottom right, linear-gradient(45deg, #fff 6px, #CECFCB 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; min-height: 200px; } .sw_uni_auto_fad_motivations .sw_uni_auto_fad_type { background:none; } .sw_uni_auto_fad_motivations .sw_uni_auto_fad_type .sw_uni_auto_fad_text { text-align: right; padding-top: 4px; padding-right: 10px; font-size: 12pt; color: #000; } .sw_uni_auto_fad_motivations .sw_uni_auto_fad_type .sw_uni_auto_fad_text a { color: #fff; text-decoration: none; width: 20px; background-color: #A79B86; padding: 2px 5px; } .sw_uni_auto_fad_motivations .sw_uni_auto_fad_motivation_list ul { margin:0px; padding:0px; } .sw_uni_auto_fad_motivations .sw_uni_auto_fad_motivation_list li div:first-child { border-bottom: 1px solid #000; } .sw_uni_auto_fad_motivations .sw_uni_auto_fad_motivation_list li div:first-child a { float:right; } .sw_uni_auto_fad_motivations .sw_uni_auto_fad_motivation_list li { list-style:none; text-align:left; padding: 10px; } .sw_uni_auto_fad_motivations_container .sw_uni_auto_fad_motivation_list ul div span:first-child { text-transform:uppercase; } .sw_uni_auto_fad_motivations_container .sw_uni_auto_fad_motivation_list ul div span:not(:first-child) { font-size:22px; } /* Obligations Sections *****************************************************/ .sw_uni_auto_fad_obligations_container { width: 66%; background: #CECFCB; } .sw_uni_auto_fad_obligations { text-align:right; background: linear-gradient(135deg, #fff 0px, #CECFCB 0) top left, linear-gradient(225deg, #fff 6px, #CECFCB 0) top right, linear-gradient(315deg, #fff 0px, #CECFCB 0) bottom right, linear-gradient(45deg, #fff 6px, #CECFCB 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; min-height: 200px; } .sw_uni_auto_fad_obligations .sw_uni_auto_fad_type { background:none; } .sw_uni_auto_fad_obligations .sw_uni_auto_fad_type .sw_uni_auto_fad_text { text-align: right; padding-top: 4px; padding-right: 10px; font-size: 12pt; color: #000; } .sw_uni_auto_fad_obligations .sw_uni_auto_fad_type .sw_uni_auto_fad_text a { color: #fff; text-decoration: none; width: 20px; background-color: #A79B86; padding: 2px 5px; } .sw_uni_auto_fad_obligations .sw_uni_auto_fad_obligation_list ul { margin:0px; padding:0px; } .sw_uni_auto_fad_obligations .sw_uni_auto_fad_obligation_list li div:nth-child(-n+2) { border-bottom: 1px solid #000; } .sw_uni_auto_fad_obligations .sw_uni_auto_fad_obligation_list li div:first-child a { float:right; } .sw_uni_auto_fad_obligations .sw_uni_auto_fad_obligation_list li { list-style:none; text-align:left; padding: 10px; } .sw_uni_auto_fad_obligations_container .sw_uni_auto_fad_obligation_list ul div span:first-child { text-transform:uppercase; } .sw_uni_auto_fad_obligations_container .sw_uni_auto_fad_obligation_list ul div span:not(:first-child) { font-size:22px; } /* Equipment Sections *****************************************************/ .sw_uni_auto_fad_equipment_container { width: 66%; background: #CECFCB; } .sw_uni_auto_fad_equipment { text-align:right; background: linear-gradient(135deg, #fff 0px, #CECFCB 0) top left, linear-gradient(225deg, #fff 6px, #CECFCB 0) top right, linear-gradient(315deg, #fff 0px, #CECFCB 0) bottom right, linear-gradient(45deg, #fff 6px, #CECFCB 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; } .sw_uni_auto_fad_equipment .sw_uni_auto_fad_type { background:none; } .sw_uni_auto_fad_equipment .sw_uni_auto_fad_type .sw_uni_auto_fad_text { text-align: right; padding-top: 4px; padding-right: 10px; font-size: 12pt; color: #000; } .sw_uni_auto_fad_equipment .sw_uni_auto_fad_type .sw_uni_auto_fad_credits { float: left; margin-left: 10px; background-color: #fff; width: 45%; text-align: left; margin-top: -10px; padding: 3px 0px 3px 0px; } .sw_uni_auto_fad_equipment .sw_uni_auto_fad_type .sw_uni_auto_fad_credits span:first-child { text-transform:uppercase; } .sw_uni_auto_fad_equipment .sw_uni_auto_fad_type .sw_uni_auto_fad_credits span { padding-left: 10px; } .sw_uni_auto_fad_equipment .sw_uni_auto_fad_log { text-align: justify; -ms-text-justify: distribute-all-lines; text-justify: distribute-all-lines; padding-bottom: 10px; padding-top: 20px; } .sw_uni_auto_fad_equipment .sw_uni_auto_fad_log div { vertical-align: top; width: 45%; display:inline-block; *display: inline; margin: 0px 10px 0px 10px; background-color: #fff; text-align:center; padding: 5px 0px 5px 0px; } .sw_uni_auto_fad_equipment .sw_uni_auto_fad_log div.sw_uni_auto_fad_title { width: 80%; border-bottom: 1px solid #000; text-transform:uppercase; } .sw_uni_auto_fad_equipment .sw_uni_auto_fad_log div.sw_uni_auto_fad_text { width:100%; text-align: left; margin: 0px; padding-top: 5px; font-size: 22px; min-height:150px; } .sw_uni_auto_fad_equipment .sw_uni_auto_fad_log div.sw_uni_auto_fad_text li { padding: 10px; list-style: none; } /* Character Desc Sections *****************************************************/ .sw_uni_auto_fad_character_description_container { float:right; width:33%; background: #CECFCB; margin-top:10px; } .sw_uni_auto_fad_character_description { text-align:right; background: linear-gradient(135deg, #fff 0px, #CECFCB 0) top left, linear-gradient(225deg, #fff 0px, #CECFCB 0) top right, linear-gradient(315deg, #fff 6px, #CECFCB 0) bottom right, linear-gradient(45deg, #fff 6px, #CECFCB 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; padding: 0px 0px 5px 0px; } .sw_uni_auto_fad_character_description .sw_uni_auto_fad_type { background:none; margin: 0px; } .sw_uni_auto_fad_character_description .sw_uni_auto_fad_type .sw_uni_auto_fad_text { text-align: right; padding-top: 4px; padding-right: 10px; font-size: 12pt; color: #000; } .sw_uni_auto_fad_character_descriptions div { padding: 10px 0px 10px 0px; margin: 0px 10px 0px 10px; text-align: left; border-bottom: 1px solid #000; } .sw_uni_auto_fad_character_descriptions div span:first-child { text-transform: uppercase; } .sw_uni_auto_fad_character_descriptions div.sw_uni_auto_fad_text, .sw_uni_auto_fad_character_descriptions div:last-child { border:none; } .sw_uni_auto_fad_character_descriptions div.sw_uni_auto_fad_text { max-height: 100px; overflow-y:auto; } .sw_uni_auto_fad_character_descriptions div.sw_uni_auto_fad_text span:first-child { text-transform:none; overflow-y:scroll; } /* Critical Injuries Sections**********************************************/ .sw_uni_auto_fad_critical_injuries_container { min-height: 100px; } .sw_uni_auto_fad_critical_injuries .sw_uni_auto_fad_type .sw_uni_auto_fad_text a { color: #fff; text-decoration: none; width: 20px; background-color: #A79B86; padding: 2px 5px; } .sw_uni_auto_fad_critical_injuries { text-align:right; background: linear-gradient(135deg, #fff 6px, #CECFCB 0) top left, linear-gradient(225deg, #fff 6px, #CECFCB 0) top right, linear-gradient(315deg, #fff 0px, #CECFCB 0) bottom right, linear-gradient(45deg, #fff 0px, #CECFCB 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; padding: 0px 0px 5px 0px; } .sw_uni_auto_fad_critical_injuries .sw_uni_auto_fad_type { background:none; margin: 0px; } .sw_uni_auto_fad_critical_injuries .sw_uni_auto_fad_type .sw_uni_auto_fad_text { text-align: right; padding-top: 4px; padding-right: 10px; font-size: 12pt; color: #000; } .sw_uni_auto_fad_critical_injuries_descriptions div { padding: 10px 0px 10px 0px; margin: 0px 10px 0px 10px; text-align: left; border-bottom: 1px solid #000; } .sw_uni_auto_fad_critical_injuries_descriptions div span:first-child { text-transform: uppercase; } .sw_uni_auto_fad_critical_injuries_descriptions div.sw_uni_auto_fad_text, .sw_uni_auto_fad_character_descriptions div:last-child { border:none; } .sw_uni_auto_fad_critical_injuries_descriptions div.sw_uni_auto_fad_text { max-height: 100px; overflow-y:auto; } .sw_uni_auto_fad_critical_injuries_descriptions div.sw_uni_auto_fad_text span:first-child { text-transform:none; overflow-y:scroll; } .sw_uni_auto_fad_critical_injury_list { height: 200px; overflow:auto; } .sw_uni_auto_fad_critical_injuries .sw_uni_auto_fad_critical_injury_list ul { margin:0px; padding:0px; } .sw_uni_auto_fad_critical_injuries .sw_uni_auto_fad_critical_injury_list li div:last-child { border-bottom: 1px solid #000; } .sw_uni_auto_fad_critical_injuries .sw_uni_auto_fad_critical_injury_list li div:first-child a { float:right; } .sw_uni_auto_fad_critical_injuries .sw_uni_auto_fad_critical_injury_list li { list-style:none; text-align:left; padding: 10px; } .sw_uni_auto_fad_critical_injuries_container .sw_uni_auto_fad_critical_injury_list ul div span:first-child { text-transform:uppercase; } .sw_uni_auto_fad_critical_injuries_container .sw_uni_auto_fad_critical_injury_list ul div span:not(:first-child) { font-size:22px; } /* Talents Sections *****************************************************/ .sw_uni_auto_fad_talents_container { padding-top: 10px; } .sw_uni_auto_fad_talents { text-align:right; background: linear-gradient(135deg, #fff 6px, #CECFCB 0) top left, linear-gradient(225deg, #fff 6px, #CECFCB 0) top right, linear-gradient(315deg, #fff 6px, #CECFCB 0) bottom right, linear-gradient(45deg, #fff 6px, #CECFCB 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; min-height: 200px; padding-bottom: 10px; } .sw_uni_auto_fad_talents .sw_uni_auto_fad_type .sw_uni_auto_fad_text a { color: #fff; text-decoration: none; width: 20px; background-color: #A79B86; padding: 2px 5px; } .sw_uni_auto_fad_talents .sw_uni_auto_fad_type { background:none; margin: 0px; } .sw_uni_auto_fad_talents .sw_uni_auto_fad_type .sw_uni_auto_fad_text { text-align: right; padding-top: 4px; padding-right: 10px; font-size: 12pt; color: #000; } .sw_uni_auto_fad_talents table.sw_uni_auto_fad_talent { margin-left: auto; margin-right: auto; width: inherit; } .sw_uni_auto_fad_talents table.sw_uni_auto_fad_talent th, .sw_uni_auto_fad_talents table.sw_uni_auto_fad_talent td{ text-align:left; } .sw_uni_auto_fad_talents table.sw_uni_auto_fad_talent thead { background: #CECFCB ; } .sw_uni_auto_fad_talents table.sw_uni_auto_fad_talent tbody tr:nth-child(even){ background-color: #A79B86; } .sw_uni_auto_fad_talents table.sw_uni_auto_fad_talent tbody tr:nth-child(odd){ background-color: #E6F6FC; } .sw_uni_auto_fad_talents table.sw_uni_auto_fad_talent th:nth-child(1) { width:25px; } .sw_uni_auto_fad_talents table.sw_uni_auto_fad_talent th:nth-child(2) { width:28%; } .sw_uni_auto_fad_talents table.sw_uni_auto_fad_talent th:nth-child(4) { width:60%; } .sw_uni_auto_fad_talents .sw_uni_auto_fad_talent_list ul { padding:0px; margin:0px; } .sw_uni_auto_fad_talents .sw_uni_auto_fad_talent_list li { list-style:none; text-align:left; } .sw_uni_auto_fad_talents .sw_uni_auto_fad_talent_list li div:not(:first-child) { float:left; } .sw_uni_auto_fad_talents .sw_uni_auto_fad_talent_list li div span { vertical-align: top; } /* Talents Sections *****************************************************/ .sw_uni_auto_fad_bio_container { padding-top: 10px; } .sw_uni_auto_fad_bio { text-align:right; background: linear-gradient(135deg, #fff 6px, #CECFCB 0) top left, linear-gradient(225deg, #fff 6px, #CECFCB 0) top right, linear-gradient(315deg, #fff 6px, #CECFCB 0) bottom right, linear-gradient(45deg, #fff 6px, #CECFCB 0) bottom left; background-size: 50% 50%; background-repeat: no-repeat; min-height: 100px; padding-bottom: 10px; } .sw_uni_auto_fad_bio .sw_uni_auto_fad_type .sw_uni_auto_fad_text a { color: #fff; text-decoration: none; width: 20px; background-color: #A79B86; padding: 2px 5px; } .sw_uni_auto_fad_bio .sw_uni_auto_fad_type { background:none; margin: 0px; } .sw_uni_auto_fad_bio .sw_uni_auto_fad_type .sw_uni_auto_fad_text { text-align: right; padding-top: 4px; padding-right: 10px; font-size: 12pt; color: #000; } .sw_uni_auto_fad_bio_text { text-align:left; padding: 0px 5px; } .sw_uni_auto_fad_author { float:right; font-size: 10px; }
Javascript
var sw_uni_auto_fad_skills = { "Skills": { "Skill": [ { "Key": "ASTRO", "Name": "Astrogation", "Description": "[H4]Astrogation (Intellect)[h4]\n Please see page 104 of the Edge of the Empire Core Rulebook for details.", "CharKey": "INT", "Type": "General" }, { "Key": "ATHL", "Name": "Athletics", "Description": "[H4]Athletics (Brawn)[h4]\n Please see page 105 of the Edge of the Empire Core Rulebook for details.", "CharKey": "BR", "Type": "General" }, { "Key": "BRAWL", "Name": "Brawl", "Description": "[H4]Brawl (Brawn)[h4]\n Please see page 120 of the Edge of the Empire Core Rulebook for details.", "CharKey": "BR", "Type": "Combat" }, { "Key": "CHARM", "Name": "Charm", "Description": "[H4]Charm (Presence)[h4]\n Please see page 105 of the Edge of the Empire Core Rulebook for details.", "CharKey": "PR", "Type": "General" }, { "Key": "COERC", "Name": "Coercion", "Description": "[H4]Coercion (Willpower)[h4]\n Please see page 106 of the Edge of the Empire Core Rulebook for details.", "CharKey": "WIL", "Type": "General" }, { "Key": "COMP", "Name": "Computers", "Description": "[H4]Computers (Intellect)[h4]\n Please see page 107 of the Edge of the Empire Core Rulebook for details.", "CharKey": "INT", "Type": "General" }, { "Key": "COOL", "Name": "Cool", "Description": "[H4]Cool (Presence)[h4]\n Please see page 108 of the Edge of the Empire Core Rulebook for details.", "CharKey": "PR", "Type": "General" }, { "Key": "COORD", "Name": "Coordination", "Description": "[H4]Coordination (Agility)[h4]\n Please see page 109 of the Edge of the Empire Core Rulebook for details.", "CharKey": "AG", "Type": "General" }, { "Key": "CORE", "Name": "Core Worlds", "Description": "[H4]Core Worlds (Intellect)[h4]\n Please see page 123 of the Edge of the Empire Core Rulebook for details.", "CharKey": "INT", "Type": "Knowledge" }, { "Key": "DECEP", "Name": "Deception", "Description": "[H4]Deception (Cunning)[h4]\n Please see page 109 of the Edge of the Empire Core Rulebook for details.", "CharKey": "CUN", "Type": "General" }, { "Key": "DISC", "Name": "Discipline", "Description": "[H4]Discipline (Willpower)[h4]\n Please see page 110 of the Edge of the Empire Core Rulebook for details.", "CharKey": "WIL", "Type": "General" }, { "Key": "EDU", "Name": "Education", "Description": "[H4]Education (Intellect)[h4]\n Please see page 123 of the Edge of the Empire Core Rulebook for details.", "CharKey": "INT", "Type": "Knowledge" }, { "Key": "GUNN", "Name": "Gunnery", "Description": "[H4]Gunnery (Agility)[h4]\n Please see page 120 of the Edge of the Empire Core Rulebook for details.", "CharKey": "AG", "Type": "Combat" }, { "Key": "LEAD", "Name": "Leadership", "Description": "[H4]Leadership (Presence)[h4]\n Please see page 111 of the Edge of the Empire Core Rulebook for details.", "CharKey": "PR", "Type": "General" }, { "Key": "LTSABER", "Name": "Lightsaber", "Description": "[H4]Lightsaber (Brawn*)[h4]\n Please see page 89 of the Force and Destiny Beta Rulebook for details.[BR]\n * Indicates that talents may change the base characteristic.", "Source": "Force and Destiny Beta Rulebook", "CharKey": "BR", "Type": "Combat" }, { "Key": "LORE", "Name": "Lore", "Description": "[H4]Lore (Intellect)[h4]\n Please see page 123 of the Edge of the Empire Core Rulebook for details.", "CharKey": "INT", "Type": "Knowledge" }, { "Key": "MECH", "Name": "Mechanics", "Description": "[H4]Mechanics (Intellect)[h4]\n Please see page 111 of the Edge of the Empire Core Rulebook for details.", "CharKey": "INT", "Type": "General" }, { "Key": "MED", "Name": "Medicine", "Description": "[H4]Medicine (Intellect)[h4]\n Please see page 112 of the Edge of the Empire Core Rulebook for details.", "CharKey": "INT", "Type": "General" }, { "Key": "MELEE", "Name": "Melee", "Description": "[H4]Melee (Brawn)[h4]\n Please see page 121 of the Edge of the Empire Core Rulebook for details.", "CharKey": "BR", "Type": "Combat" }, { "Key": "NEG", "Name": "Negotiation", "Description": "[H4]Negotiation (Presence)[h4]\n Please see page 113 of the Edge of the Empire Core Rulebook for details.", "CharKey": "PR", "Type": "General" }, { "Key": "OUT", "Name": "Outer Rim", "Description": "[H4]Outer Rim (Intellect)[h4]\n Please see page 124 of the Edge of the Empire Core Rulebook for details.", "CharKey": "INT", "Type": "Knowledge" }, { "Key": "PERC", "Name": "Perception", "Description": "[H4]Perception (Cunning)[h4]\n Please see page 114 of the Edge of the Empire Core Rulebook for details.", "CharKey": "CUN", "Type": "General" }, { "Key": "PILOTPL", "Name": "Piloting - Planetary", "Description": "[H4]Piloting - Planetary (Agility)[h4]\n Please see page 115 of the Edge of the Empire Core Rulebook for details.", "CharKey": "AG", "Type": "General" }, { "Key": "PILOTSP", "Name": "Piloting - Space", "Description": "[H4]Piloting - Space (Agility)[h4]\n Please see page 116 of the Edge of the Empire Core Rulebook for details.", "CharKey": "AG", "Type": "General" }, { "Key": "RANGHVY", "Name": "Ranged - Heavy", "Description": "[H4]Ranged - Heavy (Agility)[h4]\n Please see page 121 of the Edge of the Empire Core Rulebook for details.", "CharKey": "AG", "Type": "Combat" }, { "Key": "RANGLT", "Name": "Ranged - Light", "Description": "[H4]Ranged - Light (Agility)[h4]\n Please see page 122 of the Edge of the Empire Core Rulebook for details.", "CharKey": "AG", "Type": "Combat" }, { "Key": "RESIL", "Name": "Resilience", "Description": "[H4]Resilience (Brawn)[h4]\n Please see page 116 of the Edge of the Empire Core Rulebook for details.", "CharKey": "BR", "Type": "General" }, { "Key": "SKUL", "Name": "Skulduggery", "Description": "[H4]Skulduggery (Cunning)[h4]\n Please see page 116 of the Edge of the Empire Core Rulebook for details.", "CharKey": "CUN", "Type": "General" }, { "Key": "STEAL", "Name": "Stealth", "Description": "[H4]Stealth (Agility)[h4]\n Please see page 117 of the Edge of the Empire Core Rulebook for details.", "CharKey": "AG", "Type": "General" }, { "Key": "SW", "Name": "Streetwise", "Description": "[H4]Streetwise (Cunning)[h4]\n Please see page 118 of the Edge of the Empire Core Rulebook for details.", "CharKey": "CUN", "Type": "General" }, { "Key": "SURV", "Name": "Survival", "Description": "[H4]Survival (Cunning)[h4]\n Please see page 119 of the Edge of the Empire Core Rulebook for details.", "CharKey": "CUN", "Type": "General" }, { "Key": "UND", "Name": "Underworld", "Description": "[H4]Underworld (Intellect)[h4]\n Please see page 124 of the Edge of the Empire Core Rulebook for details.", "CharKey": "INT", "Type": "Knowledge" }, { "Key": "VIGIL", "Name": "Vigilance", "Description": "[H4]Vigilance (Willpower)[h4]\n Please see page 119 of the Edge of the Empire Core Rulebook for details.", "CharKey": "WIL", "Type": "General" }, { "Key": "XEN", "Name": "Xenology", "Description": "[H4]Xenology (Intellect)[h4]\n Please see page 125 of the Edge of the Empire Core Rulebook for details.", "CharKey": "INT", "Type": "Knowledge" }, { "Key": "WARF", "Name": "Warfare", "Description": "[H4]Warfare (Intellect)[h4]\n Please see page 136 of the Age of Rebellion Core Rulebook for details.", "Source": "Age of Rebellion Core Rulebook", "CharKey": "INT", "Type": "Knowledge" } ] } }; // Data Preload function sw_uni_auto_fad_dataPreLoad(options) { var i; aisleten.characters.jeditablePlaceholder = "##"; sw_uni_auto_fad_options = options; var weapons = [], motivations = [], obligations = [], criticals = [], talents = []; // remove add buttons if not editable if (!options.isEditable) { $(".sw_uni_auto_fad_weapon th a").remove(); $(".sw_uni_auto_fad_motivations .sw_uni_auto_fad_type .sw_uni_auto_fad_text a").remove(); $(".sw_uni_auto_fad_obligations .sw_uni_auto_fad_type .sw_uni_auto_fad_text a").remove(); $(".sw_uni_auto_fad_critical_injuries .sw_uni_auto_fad_type .sw_uni_auto_fad_text a").remove(); $(".sw_uni_auto_fad_talents .sw_uni_auto_fad_type .sw_uni_auto_fad_text a").remove(); $(".sw_uni_auto_fad_eote_export_file").remove(); $(".sw_uni_auto_fad_process_xml_button").remove(); } else { $(".sw_uni_auto_fad_bio_container").remove() } // load previously saved values $.each(dynamic_sheet_attrs, function (key) { var id = key.substring(key.lastIndexOf("_") + 1); if (key.substring(0, 5).toLowerCase() === "weapo") { if (weapons.indexOf(id) === -1) { $(".sw_uni_auto_fad_weapons table.sw_uni_auto_fad_weapon tbody").append( "<tr>" + "<td>" + (options.isEditable ? "<a href='javascript:void(0);' title='Delete Weapon'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" : "") + "</td>" + "<td>" + "<span class='dsf dsf_weapon_name_" + id + "'>" + "</td>" + "<td>" + "<span class='dsf dsf_weapon_skill_" + id + "'>" + "</td>" + "<td>" + "<span class='dsf dsf_weapon_damage_" + id + "'>" + "</td>" + "<td>" + "<span class='dsf dsf_weapon_range_" + id + "'>" + "</td>" + "<td>" + "<span class='dsf dsf_weapon_crit_" + id + "'>" + "</td>" + "<td>" + "<span class='dsf dsf_weapon_special_" + id + "'>" + "</td></tr>" ); weapons.push(id); } } if (key.substring(0, 5).toLowerCase() === "motiv") { //var id = key.substring(key.lastIndexOf("_") + 1); if (motivations.indexOf(id) === -1) { $(".sw_uni_auto_fad_motivations_container .sw_uni_auto_fad_motivation_list ul").append( "<li>" + "<div><span>Type: </span><span class='dsf dsf_motivation_type_" + id + "'></span>" + (options.isEditable ? "<a href='javascript:void(0);' title='Delete Motivation'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" : "") + "</div>" + "<div><span>Notes: </span><span class='dsf dsf_motivation_notes_" + id + "'></span></div>" + "</li>" ); motivations.push(id); } } if (key.substring(0, 5).toLowerCase() === "oblig") { //var id = key.substring(key.lastIndexOf("_") + 1); if (obligations.indexOf(id) === -1) { $(".sw_uni_auto_fad_obligations_container .sw_uni_auto_fad_obligation_list ul").append( "<li>" + "<div><span>Type: </span><span class='dsf dsf_obligation_type_" + id + "'></span>" + (options.isEditable ? "<a href='javascript:void(0);' title='Delete Obligation'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" : "") + "</div>" + "<div><span>Magnitude: </span><span class='dsf dsf_obligation_magnitude_" + id + "'></span></div>" + "<div><span>Notes: </span><span class='dsf dsf_obligation_notes_" + id + "'></span></div>" + "</li>" ); obligations.push(id); } } if (key.substring(0, 5).toLowerCase() === "criti") { //var id = key.substring(key.lastIndexOf("_") + 1); if (criticals.indexOf(id) === -1) { $(".sw_uni_auto_fad_critical_injuries_container .sw_uni_auto_fad_critical_injury_list ul").append( "<li>" + "<div><span>Severity: </span><span class='dsf dsf_critical_injury_severity_" + id + "'></span>" + (options.isEditable ? "<a href='javascript:void(0);' title='Delete Obligation'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" : "") + "</div>" + "<div><span>Notes: </span><span class='dsf dsf_critical_injury_result_" + id + "'></span></div>" + "</li>" ); criticals.push(id); } } if (key.substring(0, 5).toLowerCase() === "talen") { // var id = key.substring(key.lastIndexOf("_") + 1); if (talents.indexOf(id) === -1) { $(".sw_uni_auto_fad_talents_container table.sw_uni_auto_fad_talent tbody").append( "<tr>" + "<td>" + (options.isEditable ? "<a href='javascript:void(0);' title='Delete Talent or Ability'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" : "") + "</td>" + "<td>" + "<span class='dsf dsf_talent_name_" + id + "'></span></td>" + "<td>" + "<span class='dsf dsf_talent_page_" + id + "'></span></td>" + "<td>" + "<span class='dsf dsf_talent_summary_" + id + "'></span></td></tr>" ); talents.push(id); } } }); for (i = 0; i < sw_uni_auto_fad_skills.Skills.Skill.length; i++) { $(".sw_uni_auto_fad_skills .sw_uni_auto_fad_table.sw_uni_auto_fad_skill").append( "<div class='sw_uni_auto_fad_tr' sw_uni_auto_fad_key='" + sw_uni_auto_fad_skills.Skills.Skill[i].Key + "' sw_uni_auto_fad_stat='" + sw_uni_auto_fad_skills.Skills.Skill[i].CharKey + "'>" + "<div class='sw_uni_auto_fad_td'>" + sw_uni_auto_fad_skills.Skills.Skill[i].Name + "</div>" + "<div class='sw_uni_auto_fad_td'>" + sw_uni_auto_fad_skills.Skills.Skill[i].Type + "</div>" + "<div class='sw_uni_auto_fad_td'><span class='dsf dsf_skills_" + sw_uni_auto_fad_skills.Skills.Skill[i].Key + "_career checkbox'></span></div>" + "<div class='sw_uni_auto_fad_td'><span class='dsf dsf_skills_" + sw_uni_auto_fad_skills.Skills.Skill[i].Key + "_rank'>0</span></div>" + "<div class='sw_uni_auto_fad_td'><span class='dsf dsf_dicepool_" + sw_uni_auto_fad_skills.Skills.Skill[i].Key + " readonly sw_uni_auto_fad_dice_pool_" + sw_uni_auto_fad_skills.Skills.Skill[i].Key + "'></span></div>" + "</div>" ); } if (options.isEditable) { //add new weapon $(".sw_uni_auto_fad_weapon th a").click(function () { var id = $(".sw_uni_auto_fad_weapon tr").length; $(".sw_uni_auto_fad_weapons table.sw_uni_auto_fad_weapon tbody").append( "<tr>" + "<td>" + (options.isEditable ? "<a href='javascript:void(0);' title='Delete Weapon'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" : "") + "</td>" + "<td>" + "<span class='dsf dsf_weapon_name_" + id + "'>" + "</td>" + "<td>" + "<span class='dsf dsf_weapon_skill_" + id + "'>" + "</td>" + "<td>" + "<span class='dsf dsf_weapon_damage_" + id + "'>" + "</td>" + "<td>" + "<span class='dsf dsf_weapon_range_" + id + "'>" + "</td>" + "<td>" + "<span class='dsf dsf_weapon_crit_" + id + "'>" + "</td>" + "<td>" + "<span class='dsf dsf_weapon_special_" + id + "'>" + "</td>" + "</tr>" ); $(".dsf_weapon_name_" + id).parents("tr").find("a").click(function () { sw_uni_auto_fad_removeTableListItem(this, options.containerId); }); aisleten.characters.bindAllFields("ffsw", options.containerId); }); //remove weapon $(".sw_uni_auto_fad_weapon td a").click(function () { sw_uni_auto_fad_removeTableListItem(this, options.containerId); }); //add motivation $(".sw_uni_auto_fad_motivations .sw_uni_auto_fad_type .sw_uni_auto_fad_text a").click(function () { var id = $(".sw_uni_auto_fad_motivations_container .sw_uni_auto_fad_motivation_list ul li").length; $(".sw_uni_auto_fad_motivations_container .sw_uni_auto_fad_motivation_list ul").append( "<li>" + "<div><span>Type: </span><span class='dsf dsf_motivation_type_" + (id + 1) + "'></span>" + (options.isEditable ? "<a href='javascript:void(0);' title='Delete Motivation'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" : "") + "</div>" + "<div><span>Notes: </span><span class='dsf dsf_motivation_notes_" + (id + 1) + "'></span></div>" + "</li>" ); $(".dsf_motivation_type_" + (id + 1)).parent().find("a").click(function () { sw_uni_auto_fad_removeListItem(this, options.containerId); }); aisleten.characters.bindAllFields("ffsw", options.containerId); }); //remove motivation $(".sw_uni_auto_fad_motivations .sw_uni_auto_fad_motivation_list li div:first-child a").click(function () { sw_uni_auto_fad_removeListItem(this, options.containerId); }); //add obligation $(".sw_uni_auto_fad_obligations .sw_uni_auto_fad_type .sw_uni_auto_fad_text a").click(function () { var id = $(".sw_uni_auto_fad_obligations_container .sw_uni_auto_fad_obligation_list ul li").length; $(".sw_uni_auto_fad_obligations_container .sw_uni_auto_fad_obligation_list ul").append( "<li>" + "<div><span>Type: </span><span class='dsf dsf_obligation_type_" + (id + 1) + "'></span>" + (options.isEditable ? "<a href='javascript:void(0);' title='Delete Obligation'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" : "") + "</div>" + "<div><span>Magnitude: </span><span class='dsf dsf_obligation_magnitude_" + (id + 1) + "'></span></div>" + "<div><span>Notes: </span><span class='dsf dsf_obligation_notes_" + (id + 1) + "'></span></div>" + "</li>" ); $(".dsf_obligation_type_" + (id + 1)).parent().find("a").click(function () { sw_uni_auto_fad_removeListItem(this, options.containerId); }); aisleten.characters.bindAllFields("ffsw", options.containerId); }); //remove obligation $(".sw_uni_auto_fad_obligations .sw_uni_auto_fad_obligation_list li div:first-child a").click(function () { sw_uni_auto_fad_removeListItem(this, options.containerId); }); //add criticals $(".sw_uni_auto_fad_critical_injuries .sw_uni_auto_fad_type .sw_uni_auto_fad_text a").click(function () { var id = $(".sw_uni_auto_fad_critical_injuries_container .sw_uni_auto_fad_critical_injury_list ul li").length; $(".sw_uni_auto_fad_critical_injuries_container .sw_uni_auto_fad_critical_injury_list ul").append( "<li>" + "<div><span>Severity: </span><span class='dsf dsf_critical_injury_severity_" + (id + 1) + "'></span>" + (options.isEditable ? "<a href='javascript:void(0);' title='Delete Obligation'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" : "") + "</div>" + "<div><span>Notes: </span><span class='dsf dsf_critical_injury_result_" + (id + 1) + "'></span></div>" + "</li>" ); $(".dsf_critical_injury_severity_" + (id + 1)).parent().find("a").click(function () { sw_uni_auto_fad_removeListItem(this, options.containerId); }); aisleten.characters.bindAllFields("ffsw", options.containerId); }); //remove criticals $(".sw_uni_auto_fad_critical_injuries .sw_uni_auto_fad_critical_injury_list li div:first-child a").click(function () { sw_uni_auto_fad_removeListItem(this, options.containerId); }); //add talents $(".sw_uni_auto_fad_talents .sw_uni_auto_fad_type .sw_uni_auto_fad_text a").click(function () { //var id = $(".sw_uni_auto_fad_talents_container .sw_uni_auto_fad_talent_list ul li").length; var id = $(".sw_uni_auto_fad_talents_container table.sw_uni_auto_fad_talent tbody tr").length; $(".sw_uni_auto_fad_talents_container table.sw_uni_auto_fad_talent tbody").append( "<tr>" + "<td>" + (options.isEditable ? "<a href='javascript:void(0);' title='Delete Talent or Ability'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" : "") + "</td>" + "<td>" + "<span class='dsf dsf_talent_name_" + (id + 1) + "'></span></td>" + "<td>" + "<span class='dsf dsf_talent_page_" + (id + 1) + "'></span></td>" + "<td>" + "<span class='dsf dsf_talent_summary_" + (id + 1) + "'></span></td>" + "</tr>" ); $(".dsf_talent_name_" + (id + 1)).parents("tr").find("a").click(function () { sw_uni_auto_fad_removeTableListItem(this, options.containerId); }); aisleten.characters.bindAllFields("ffsw", options.containerId); }); //remove talents $(".sw_uni_auto_fad_talents table.sw_uni_auto_fad_talent tbody tr td:first-child a").click(function () { sw_uni_auto_fad_removeTableListItem(this, options.containerId); }); // FUTURE CODE //$(".sw_uni_auto_fad_process_xml_button").click(function () { // $("input.sw_uni_auto_fad_eote_export_file").click(); // }); //$("input.sw_uni_auto_fad_eote_export_file").change(function () { // if (!window.FileReader) { // alert('Your browser is not supported'); // } // var input = $("input.sw_uni_auto_fad_eote_export_file").get(0); // // Create a reader object // var reader = new FileReader(); // if (input.files.length) { // var textFile = input.files[0]; // reader.readAsText(textFile); // $(reader).on('load', function (e) { sw_uni_auto_fad_processimport(e, options.containerId); }); // } else { // alert('Please upload a file before continuing'); // } // aisleten.characters.bindAllFields("ffsw", options.containerId); // }); } } // Data Change function sw_uni_auto_fad_dataChange(options) { var i, key, stat_key, rank_raw, rank, stat_raw, stat, green, yellow, skill_key; // Called immediately after a data value is changed. // alert("dataChange. " + options['fieldName'] + " = " + options['fieldValue']); // Here, we use it to help with calculating the ability modifiers if the level or // base ability score changes. var field = options['fieldName']; var val = options['fieldValue']; switch (field.substring(0,5).toLowerCase()) { case "skill": //calculate dice pool if (field.substring(field.lastIndexOf("_") + 1).toLowerCase() == "rank") { key = $(".dsf_" + field).parents(".sw_uni_auto_fad_tr").attr("sw_uni_auto_fad_key"); stat_key = $(".dsf_" + field).parents(".sw_uni_auto_fad_tr").attr("sw_uni_auto_fad_stat"); rank_raw = $(".dsf_skills_" + key + "_rank").text(); rank = isNaN(rank_raw) | rank_raw == "" ? 0 : parseInt(rank_raw, 10); stat_raw = $("[sw_uni_auto_fad_key='" + stat_key + "'] .dsf").text(); stat = isNaN(stat_raw) | stat_raw == "" ? 0 : parseInt(stat_raw, 10); green = stat > rank ? stat - rank : rank - stat; yellow = stat > rank ? rank : stat; $(".sw_uni_auto_fad_dice_pool_" + key).html(""); for (i = 0; i < green; i++) { $(".sw_uni_auto_fad_dice_pool_" + key).append('<li class="sw_uni_auto_fad_green"></li>'); } for (i = 0; i < yellow; i++) { $(".sw_uni_auto_fad_dice_pool_" + key).append('<li class="sw_uni_auto_fad_yellow"></li>'); } } break; default: //Check for stat change to calculate dice pools if ($(".dsf_" + field).parents(".sw_uni_auto_fad_stat_block").length > 0) { stat_key = $(".dsf_" + field).parents(".sw_uni_auto_fad_stat_block").attr("sw_uni_auto_fad_key"); $(".sw_uni_auto_fad_skill .sw_uni_auto_fad_tr[sw_uni_auto_fad_stat='" + stat_key + "']").each(function () { skill_key = $(this).attr("sw_uni_auto_fad_key"); rank_raw = $(".dsf_skills_" + skill_key + "_rank").text(); rank = isNaN(rank_raw) ? 0 : parseInt(rank_raw, 10); stat_raw = val; stat = isNaN(stat_raw) ? 0 : parseInt(stat_raw, 10); green = stat > rank ? stat - rank : rank - stat; yellow = stat > rank ? rank : stat; $(".sw_uni_auto_fad_dice_pool_" + skill_key).html(""); for (i = 0; i < green; i++) { $(".sw_uni_auto_fad_dice_pool_" + skill_key).append('<li class="sw_uni_auto_fad_green"></li>'); } for (i = 0; i < yellow; i++) { $(".sw_uni_auto_fad_dice_pool_" + skill_key).append('<li class="sw_uni_auto_fad_yellow"></li>'); } }); } break; } } // remove li-based items function sw_uni_auto_fad_removeListItem(i, containerId) { var ul = $(i).parents("ul"); //remove row $(i).parents("li").remove(); //renumber controls $(ul).find("li").each(function (index) { $(this).find(".dsf").each(function () { var css = $(this).attr("class"); $(this).attr("class", css.substring(0, css.lastIndexOf("_") + 1) + (index + 1)); }); }); } // remove table row-based itens function sw_uni_auto_fad_removeTableListItem(i, containerId) { var table = $(i).parents("table"); //remove row $(i).parents("tr").remove(); //renumber controls $(table).find("tbody tr").each(function (index) { //get original index $(this).find("td .dsf").each(function () { var css = $(this).attr("class"); $(this).attr("class", css.substring(0, css.lastIndexOf("_") + 1) + (index + 1)); }); }); } // Process import select function sw_uni_auto_fad_processimport(e) { var file = e.target.result, results; if (file && file.length) { results = sw_uni_auto_fad_x2js.xml_str2json(file); sw_uni_auto_fad_parseinput(results); } } // Process data from import file function sw_uni_auto_fad_parseinput(e) { var i; $(".dsf_species").text(e.Character.Species.SpeciesKey); $(".dsf_career").text(e.Character.Career.CareerKey); //$(".dsf_specializations").text(e.Character.Career.StartingSpecKey); $(".dsf_soak_w").text(sw_uni_auto_fad_calculateValueFromObject(e.Character.Attributes.SoakValue)); $(".dsf_wound").text(sw_uni_auto_fad_calculateValueFromObject(e.Character.Attributes.WoundThreshold)); $(".dsf_strain").text(sw_uni_auto_fad_calculateValueFromObject(e.Character.Attributes.StrainThreshold)); $(".dsf_ranged_def").text(sw_uni_auto_fad_calculateValueFromObject(e.Character.Attributes.DefenseRanged)); $(".dsf_melee_def").text(sw_uni_auto_fad_calculateValueFromObject(e.Character.Attributes.DefenseMelee)); $(".dsf_brawn").text(sw_uni_auto_fad_calculateValueFromObject(e.Character.Characteristics.CharCharacteristic[0].Rank)); $(".dsf_aglity").text(sw_uni_auto_fad_calculateValueFromObject(e.Character.Characteristics.CharCharacteristic[1].Rank)); $(".dsf_intellect").text(sw_uni_auto_fad_calculateValueFromObject(e.Character.Characteristics.CharCharacteristic[2].Rank)); $(".dsf_cunning").text(sw_uni_auto_fad_calculateValueFromObject(e.Character.Characteristics.CharCharacteristic[3].Rank)); $(".dsf_willpower").text(sw_uni_auto_fad_calculateValueFromObject(e.Character.Characteristics.CharCharacteristic[4].Rank)); $(".dsf_presence").text(sw_uni_auto_fad_calculateValueFromObject(e.Character.Characteristics.CharCharacteristic[5].Rank)); $.each(e.Character.Skills.CharSkill, function (index, skill) { $(".dsf_skills_" + skill.Key + "_career :checkbox").val(skill.isCareer == "true" ? 1 : 0); $(".dsf_skills_" + skill.Key + "_career :checkbox").prop("checked", skill.isCareer == "true" ? true : false); $(".dsf_skills_" + skill.Key + "_rank").text(sw_uni_auto_fad_calculateValueFromObject(skill.Rank)); }); $(".sw_uni_auto_fad_weapons table.sw_uni_auto_fad_weapon tbody").html(""); $.each(e.Character.Weapons.CharWeapon, function (index, weapon) { var item = $.grep(sw_uni_auto_fad_weapons.Weapons.Weapon, function (obj) { return obj.Key == weapon.ItemKey; }); var skill = $.grep(sw_uni_auto_fad_skills.Skills.Skill, function (obj) { if (item.length > 0) { return obj.Key == item[0].SkillKey; } }); var qualities = []; if (typeof item[0] != "undefined") { if (typeof item[0].Qualities != "undefined") { $.each(item[0].Qualities.Quality, function (index, quality) { var descriptor = $.grep(sw_uni_auto_fad_descriptors.ItemDescriptors.ItemDescriptor, function (obj) { if (typeof quality.Key != "undefined") { return obj.Key == quality.Key; } else if (typeof quality != "undefined") { return obj.Key == quality; } }); if (typeof descriptor != "undefined" && descriptor.length > 0) { if (descriptor[0].QualDesc.indexOf("{0}") > -1) { qualities.push(descriptor[0].QualDesc.replace("{0}", quality.Count)); } else { qualities.push(descriptor[0].QualDesc); } } }); } } var id = $(".sw_uni_auto_fad_weapon tr").length; if (item.length > 0) { $(".sw_uni_auto_fad_weapons table.sw_uni_auto_fad_weapon tbody").append( "<tr>" + "<td>" + "<a href='javascript:void(0);' title='Delete Weapon'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" + "</td>" + "<td>" + "<span class='dsf dsf_weapon_name_" + id + "'>" + item[0].Name + "</td>" + "<td>" + "<span class='dsf dsf_weapon_skill_" + id + "'>" + skill[0].Name + "</td>" + "<td>" + "<span class='dsf dsf_weapon_damage_" + id + "'>" + item[0].Damage + "</td>" + "<td>" + "<span class='dsf dsf_weapon_range_" + id + "'>" + item[0].Range + "</td>" + "<td>" + "<span class='dsf dsf_weapon_crit_" + id + "'>" + item[0].Crit + "</td>" + "<td>" + "<span class='dsf dsf_weapon_special_" + id + "'>" + qualities.join(", ") + "</td>" + "</tr>" ); $(".dsf_weapon_name_" + id).parents("tr").find("a").click(function () { sw_uni_auto_fad_removeTableListItem(this,sw_uni_auto_fad_options.containerId); }); } }); var totalXP = sw_uni_auto_fad_calculateValueFromObject(e.Character.Experience.ExperienceRanks); var usedXP = parseInt(e.Character.Experience.UsedExperience); $(".dsf_earned_xp").text(totalXP); $(".dsf_unspent_xp").text(totalXP - usedXP); $(".sw_uni_auto_fad_motivations_container .sw_uni_auto_fad_motivation_list ul").html(""); if ($.isArray(e.Character.Motivations.CharMotivation)) { $.each(e.Character.Motivations.CharMotivation, function (index, motivation) { var id = $(".sw_uni_auto_fad_motivations_container .sw_uni_auto_fad_motivation_list ul li").length; var item = motivation; if ($.isArray(motivation)) { item = motivation[0]; } $(".sw_uni_auto_fad_motivations_container .sw_uni_auto_fad_motivation_list ul").append( "<li>" + "<div><span>Type: </span><span class='dsf dsf_motivation_type_" + (id + 1) + "'>" + item.Name + "</span>" + "<a href='javascript:void(0);' title='Delete Motivation'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" + "</div>" + "<div><span>Notes: </span><span class='dsf dsf_motivation_notes_" + (id + 1) + "'>" + item.Notes + "</span></div>" + "</li>" ); $(".dsf_motivation_type_" + (id + 1)).parent().find("a").click(function () { sw_uni_auto_fad_removeListItem(this,sw_uni_auto_fad_options.containerId); }); }); } else { var id = $(".sw_uni_auto_fad_motivations_container .sw_uni_auto_fad_motivation_list ul li").length; var item = e.Character.Motivations.CharMotivation; if(typeof item != "undefined") { $(".sw_uni_auto_fad_motivations_container .sw_uni_auto_fad_motivation_list ul").append( "<li>" + "<div><span>Type: </span><span class='dsf dsf_motivation_type_" + (id + 1) + "'>" + item.Name + "</span>" + "<a href='javascript:void(0);' title='Delete Motivation'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" + "</div>" + "<div><span>Notes: </span><span class='dsf dsf_motivation_notes_" + (id + 1) + "'>" + item.Notes + "</span></div>" + "</li>" ); $(".dsf_motivation_type_" + (id + 1)).parent().find("a").click(function () { sw_uni_auto_fad_removeListItem(this,sw_uni_auto_fad_options.containerId); }); } } $(".sw_uni_auto_fad_obligations_container .sw_uni_auto_fad_obligation_list ul").html(""); if ($.isArray(e.Character.Obligations.CharObligation)) { $.each(e.Character.Obligations.CharObligation, function (index, obligation) { var id = $(".sw_uni_auto_fad_obligations_container .sw_uni_auto_fad_obligation_list ul li").length; var item = obligation; if ($.isArray(obligation)) { item = obligation[0]; } $(".sw_uni_auto_fad_obligations_container .sw_uni_auto_fad_obligation_list ul").append( "<li>" + "<div><span>Type: </span><span class='dsf dsf_obligation_type_" + (id + 1) + "'>" + item.Name + "</span>" + "<a href='javascript:void(0);' title='Delete Obligation'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" + "</div>" + "<div><span>Magnitude: </span><span class='dsf dsf_obligation_magnitude_" + (id + 1) + "'>" + item.Size + "</span></div>" + "<div><span>Notes: </span><span class='dsf dsf_obligation_notes_" + (id + 1) + "'>" + item.Notes + "</span></div>" + "</li>" ); $(".dsf_obligation_type_" + (id + 1)).parent().find("a").click(function () { sw_uni_auto_fad_removeListItem(this,sw_uni_auto_fad_options.containerId); }); }); } else { var id = $(".sw_uni_auto_fad_obligations_container .sw_uni_auto_fad_obligation_list ul li").length; var item = e.Character.Obligations.CharObligation; if (typeof item != "undefined") { $(".sw_uni_auto_fad_obligations_container .sw_uni_auto_fad_obligation_list ul").append( "<li>" + "<div><span>Type: </span><span class='dsf dsf_obligation_type_" + (id + 1) + "'>" + item.Name + "</span>" + "<a href='javascript:void(0);' title='Delete Obligation'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" + "</div>" + "<div><span>Magnitude: </span><span class='dsf dsf_obligation_magnitude_" + (id + 1) + "'>" + item.Size + "</span></div>" + "<div><span>Notes: </span><span class='dsf dsf_obligation_notes_" + (id + 1) + "'>" + item.Notes + "</span></div>" + "</li>" ); $(".dsf_obligation_type_" + (id + 1)).parent().find("a").click(function () { sw_uni_auto_fad_removeListItem(this,sw_uni_auto_fad_options.containerId); }); } } $(".dsf_gender").text(e.Character.Description.Gender); $(".dsf_age").text(e.Character.Description.Age); $(".dsf_height").text(e.Character.Description.Height); $(".dsf_build").text(e.Character.Description.Build); $(".dsf_hair").text(e.Character.Description.Hair); $(".dsf_eyes").text(e.Character.Description.Eyes); $(".dsf_notable").text(e.Character.Description.OtherFeatures); $(".dsf_credits").text(e.Character.Credits); var armorlist = []; if ($.isArray(e.Character.Armor.CharArmor)) { $.each(e.Character.Armor.CharArmor, function (index, armor) { var item = $.grep(sw_uni_auto_fad_armors.Armors.Armor, function (obj) { return obj.Key == armor.ItemKey; }); armorlist.push(item.Name); }); } else { if (e.Character.Armor != "") { var item = $.grep(sw_uni_auto_fad_armors.Armors.Armor, function (obj) { return obj.Key == e.Character.Armor.CharArmor.ItemKey; }); armorlist.push(item.Name); } } $(".dsf_weapons_and_armor").text(armorlist.join(", ")); var gearlist = []; if ($.isArray(e.Character.Gear.CharGear)) { $.each(e.Character.Gear.CharGear, function (index, gear) { var item = $.grep(sw_uni_auto_fad_gears.Gears.Gear, function (obj) { return obj.Key == gear.ItemKey; }); gearlist.push(item[0].Name); }); } else { if (e.Character.Gear != "") { var item = $.grep(sw_uni_auto_fad_gears.Gears.Gear, function (obj) { return obj.Key == e.Character.Gear.CharGear.ItemKey; }); gearlist.push(item.Name); } } $(".dsf_personal_gear").text(gearlist.join(", ")); var specializations = []; $(".sw_uni_auto_fad_talents_container table.sw_uni_auto_fad_talent tbody").html(""); if ($.isArray(e.Character.Specializations.CharSpecialization)) { $.each(e.Character.Specializations.CharSpecialization, function (index, chartalent) { specializations.push(chartalent.Name); $.each(chartalent.Talents.CharTalent, function (index, talentobj) { if (talentobj.Free == "true" || talentobj.Purchased == "true") { var item = $.grep(sw_uni_auto_fad_talents.Talents.Talent, function (obj) { return obj.Key == talentobj.Key; }); if (item.length > 0) { var id = $(".sw_uni_auto_fad_talents_container table.sw_uni_auto_fad_talent tbody tr").length; $(".sw_uni_auto_fad_talents_container table.sw_uni_auto_fad_talent tbody").append( "<tr>" + "<td>" + "<a href='javascript:void(0);' title='Delete Talent or Ability'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" + "</td>" + "<td>" + "<span class='dsf dsf_talent_name_" + (id + 1) + "'>" + item[0].Name + "</span></td>" + "<td>" + "<span class='dsf dsf_talent_page_" + (id + 1) + "'></span></td>" + "<td>" + "<span class='dsf dsf_talent_summary_" + (id + 1) + "'>" + item[0].Description + "</span></td>" + "</tr>" ); $(".dsf_talent_name_" + (id + 1)).parents("tr").find("a").click(function () { sw_uni_auto_fad_removeTableListItem(this,sw_uni_auto_fad_options.containerId); }); } } }); }); } else { var chartalent = e.Character.Specializations.CharSpecialization; specializations.push(chartalent.Name); $.each(chartalent.Talents.CharTalent, function (index, talentobj) { if (talentobj.Free == "true" || talentobj.Purchased == "true") { var item = $.grep(sw_uni_auto_fad_talents.Talents.Talent, function (obj) { return obj.Key == talentobj.Key; }); if (item.length > 0) { var id = $(".sw_uni_auto_fad_talents_container table.sw_uni_auto_fad_talent tbody tr").length; $(".sw_uni_auto_fad_talents_container table.sw_uni_auto_fad_talent tbody").append( "<tr>" + "<td>" + "<a href='javascript:void(0);' title='Delete Talent or Ability'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAB3RJTUUH3wgeATEhJPwS7AAAAAlwSFlzAAAK8AAACvABQqw0mAAAAx9JREFUeNpj/P//PwM1ARNVTQMCFhjj9o0bem9vXCtiY2JiE9c3nCctL78PKPyPkP6P7965PDh71vvSmdP3fDIyJzGCvHzx7FlNpc/vznJ//8L5/+Uzhr8vnv4/zyOyUSchLZubh+cZNp+9fvo05M3mzY0Pz51h2/PtR3tITs5KMzOzz2AD7965w3Ng5vTJ4SrSMRyf3rD8f3Kf4f/jOwz3/nE8Zm2fFaasqXkCZtKvnz9Vr86aNZ197x77xZ8+z7QuLGx1dXN7zs7ODlEAMhCEv379yrRiwQLjFeH+Wz77m/79ZCb9/6Uq7/+rWtIfzxw86AFUw3T7zOn089aWn3crKbwtT0iIef78OStMPwwzoAt8+vSJeVF/r/duDZlr98XZ/98UYPl/Ulzo857cnB1nuTn/LefleTChrc3u27dvjOh6sRoIw48fP+abGR3ZfZqL5dc5Fsb/pxkZ/i/i472zfPFivd+/f+PUhzPZyMjIfLIvKdv5lUfg258/IMUMDGKMDAKqqqo/WVhYGHACXDad2LIl6jg/3/dTQCWLRIRvrVFTuXaFm/n/cl31Ey9fvuTCpQ+r4N6FC1NPsLH9ARm2jo/32Y4tWwxePH8uttnD8ehzec7/U2IjWv/8+UNcGO5esiTsBAvLnzNMDP+PsjP/XDxlSghM88ePH4UPhHuefqTF+23dsqVGBA08deiQ/iFOji9nmRn/X+Rg+j85Pm7i9+/fUZLGh/fvpc/72txfrKe4F+h1FpwGfvnyhWmlqsrJ82yM/68Cw2qFvualp0+fimBzxZP7963umih96y0pDvj37x92A1fPmuVwTUnm3w0h9v/XJLn/7N261QNXwIPwhW1b6hYoiB9+9OgRC9Zk8/ryJUt+EwNGPiVphn8Swj8NLS3P4ysV9Dy8urQ8fXk2rlihgbX4+svJ+Y7PxJCB31if4ZucwntWVtYf+AxkZGT8odLUnvvzxQtVkLfh4rAC9sSxY8I/N606psPFrLSHT7opNK+glYmJiVDxxfDjxw8WDg6OP1gT9t27d/nPnDql9fPnTzZ84YcPw11ILQAANFSl+WXVtCYAAAAASUVORK5CYII=' /></a>" + "</td>" + "<td>" + "<span class='dsf dsf_talent_name_" + (id + 1) + "'>" + item[0].Name + "</span></td>" + "<td>" + "<span class='dsf dsf_talent_page_" + (id + 1) + "'></span></td>" + "<td>" + "<span class='dsf dsf_talent_summary_" + (id + 1) + "'>" + item[0].Description + "</span></td>" + "</tr>" ); $(".dsf_talent_name_" + (id + 1)).parents("tr").find("a").click(function () { sw_uni_auto_fad_removeTableListItem(this,sw_uni_auto_fad_options.containerId); }); } } }); } $(".dsf_specializations").text(specializations.join(", ")); $(".sw_uni_auto_fad_skills .sw_uni_auto_fad_tr").each(function () { var key = $(this).attr("sw_uni_auto_fad_key"); var stat_key = $(this).attr("sw_uni_auto_fad_stat"); var rank_raw = $(".dsf_skills_" + key + "_rank").text(); var rank = isNaN(rank_raw) | rank_raw == "" ? 0 : parseInt(rank_raw, 10); var stat_raw = $("[sw_uni_auto_fad_key='" + stat_key + "'] .dsf").text(); var stat = isNaN(stat_raw) | stat_raw == "" ? 0 : parseInt(stat_raw, 10); var green = stat > rank ? stat - rank : rank - stat; var yellow = stat > rank ? rank : stat; $(".sw_uni_auto_fad_dice_pool_" + key).html(""); for (i = 0; i < green; i++) { $(".sw_uni_auto_fad_dice_pool_" + key).append('<li class="sw_uni_auto_fad_green"></li>'); } for (i = 0; i < yellow; i++) { $(".sw_uni_auto_fad_dice_pool_" + key).append('<li class="sw_uni_auto_fad_yellow"></li>'); } }); aisleten.characters.bindAllFields("ffsw", sw_uni_auto_fad_options.containerId); } // Calculates value from child objects function sw_uni_auto_fad_calculateValueFromObject(e) { var rank = 0; $.each(e, function (key, value) { var subrank = isNaN(value) || value == "" ? 0 : parseInt(value, 10); rank += subrank; }); return rank; }
Submit Notes
Back
I'm sorry, but we no longer support this web browser. Please
upgrade your browser
or install
Chrome
or
Firefox
to enjoy the full functionality of this site.