View Full Version : Question: For Fitz about his charactersheet exports
mayapuppies
Dec 29th, '08, 07:23 AM
Hi Fitz,
I am an ardent fan of your flowing text character sheet export template. I recently discovered, however, that if the Strength is over an as yet undetermined amount, the encumbrance calculations get wonky.
I was wondering if you could let me know how to fix it?
I've attached the modified export templates i use and the character that is having the issues.
mudpyr8
Dec 29th, '08, 08:25 AM
You need to use the attribute:
<!--ATTRIBUTE_VALUE-->getPrimaryLift<!--/ATTRIBUTE_VALUE-->
This will get you the raw lift value. That's what I did for my export formats.
mayapuppies
Dec 29th, '08, 08:29 AM
Ok, if this is the section that he has arranged for the encumbrance determination...where would I put the function you mentioned?
<!--STR-->
<table cellspacing="0" width="100%">
<tr><td colspan="5" class="sectionheading">Encumbrance</td></tr>
<tr><th rowspan="7">Equipment Carried:<br><span style="font-weight:normal; font-size:12pt;"><!--TOTAL_CARRIED--></span></th><th>Total Weight Carried</th><th>DCV/AGI Roll</th><th>Move</th><th>END/Turn</th></tr>
<tr><td>Up to <!--MATH--><!--STR_LIFT-->*0.1<!--/MATH--> kg</td><td>-0</td><td>—</td><td>0</td></tr>
<tr><td><!--MATH--><!--STR_LIFT-->*0.1<!--/MATH--> - <!--MATH--><!--STR_LIFT-->*0.25<!--/MATH--> kg</td><td>-1</td><td>—</td><td>0</td></tr>
<tr><td><!--MATH--><!--STR_LIFT-->*0.25<!--/MATH--> - <!--MATH--><!--STR_LIFT-->*0.5<!--/MATH--> kg</td><td>-2</td><td>-1"</td><td>1</td></tr>
<tr><td><!--MATH--><!--STR_LIFT-->*0.5<!--/MATH--> - <!--MATH--><!--STR_LIFT-->*0.75<!--/MATH--> kg</td><td>-3</td><td>-2"</td><td>2</td></tr>
<tr><td><!--MATH--><!--STR_LIFT-->*0.75<!--/MATH--> - <!--MATH--><!--STR_LIFT-->*0.9<!--/MATH--> kg</td><td>-4</td><td>-4"</td><td>3</td></tr>
<tr><td><!--MATH--><!--STR_LIFT-->*0.9<!--/MATH--> - <!--STR_LIFT--></td><td>-5</td><td>-8"</td><td>4</td></tr>
</table>
<!--/STR-->
mudpyr8
Dec 29th, '08, 09:00 AM
In place of STR_LIFT
mayapuppies
Dec 29th, '08, 09:02 AM
Gracias!
mayapuppies
Dec 29th, '08, 09:04 AM
Like so?
<!--STR-->
<table cellspacing="0" width="100%">
<tr><td colspan="5" class="sectionheading">Encumbrance</td></tr>
<tr><th rowspan="7">Equipment Carried:<br><span style="font-weight:normal; font-size:12pt;"><!--TOTAL_CARRIED--></span></th><th>Total Weight Carried</th><th>DCV/AGI Roll</th><th>Move</th><th>END/Turn</th></tr>
<tr><td>Up to <!--MATH--><!--ATTRIBUTE_VALUE-->getPrimaryLift<!--/ATTRIBUTE_VALUE-->*0.1<!--/MATH--> kg</td><td>-0</td><td>—</td><td>0</td></tr>
<tr><td><!--MATH--><!--ATTRIBUTE_VALUE-->getPrimaryLift<!--/ATTRIBUTE_VALUE-->*0.1<!--/MATH--> - <!--MATH--><!--ATTRIBUTE_VALUE-->getPrimaryLift<!--/ATTRIBUTE_VALUE-->*0.25<!--/MATH--> kg</td><td>-1</td><td>—</td><td>0</td></tr>
<tr><td><!--MATH--><!--ATTRIBUTE_VALUE-->getPrimaryLift<!--/ATTRIBUTE_VALUE-->*0.25<!--/MATH--> - <!--MATH--><!--ATTRIBUTE_VALUE-->getPrimaryLift<!--/ATTRIBUTE_VALUE-->*0.5<!--/MATH--> kg</td><td>-2</td><td>-1"</td><td>1</td></tr>
<tr><td><!--MATH--><!--ATTRIBUTE_VALUE-->getPrimaryLift<!--/ATTRIBUTE_VALUE-->*0.5<!--/MATH--> - <!--MATH--><!--ATTRIBUTE_VALUE-->getPrimaryLift<!--/ATTRIBUTE_VALUE-->*0.75<!--/MATH--> kg</td><td>-3</td><td>-2"</td><td>2</td></tr>
<tr><td><!--MATH--><!--ATTRIBUTE_VALUE-->getPrimaryLift<!--/ATTRIBUTE_VALUE-->*0.75<!--/MATH--> - <!--MATH--><!--ATTRIBUTE_VALUE-->getPrimaryLift<!--/ATTRIBUTE_VALUE-->*0.9<!--/MATH--> kg</td><td>-4</td><td>-4"</td><td>3</td></tr>
<tr><td><!--MATH--><!--ATTRIBUTE_VALUE-->getPrimaryLift<!--/ATTRIBUTE_VALUE-->*0.9<!--/MATH--> - <!--ATTRIBUTE_VALUE-->getPrimaryLift<!--/ATTRIBUTE_VALUE--></td><td>-5</td><td>-8"</td><td>4</td></tr>
</table>
<!--/STR-->
mayapuppies
Jan 10th, '09, 04:50 AM
Ok, so using the above quoted code and the character having a 14 STR I get the following result
Up to 17 kg
17 - 44 kg
44 - 87 kg
87 - 131 kg
131 - 157 kg
157 - 174.1101126592248
How do I get the last weight number (174.1101126592248) to round off to just the whole number?
mudpyr8
Jan 10th, '09, 05:21 AM
You could put it in a MATH tag. I think that forces it to an integer or just use the actual LIFT attribute since that is the max value there.
mayapuppies
Jan 10th, '09, 05:25 AM
Oh please help the code-impaired. LOL
How would I change the code to use "the actual LIFT attribute since that is the max value there"?
mudpyr8
Jan 10th, '09, 05:53 AM
<!--str--><!--str_lift--><!--/str-->
mayapuppies
Jan 11th, '09, 05:05 AM
"You must spread rep around..."
Thank you sir!
concord
Jan 11th, '09, 10:56 AM
repped him for you...
One of the great things about these forums is the way everyone helps each other out.
Fitz
Feb 9th, '09, 05:23 PM
It's been a while since I've been in here, so I missed all this -- thanks guys.
By the way mayapuppies -- I've made some modifications to that character sheet export so that it now runs all the abilities and equipment into 3 columns (as long as you're using Firefox; IE is still lagging far behind on the formatting front). The multi-column format compacts the printed character sheets substantially.
I've also included the default combat maneuvers as well, which were missing from the old sheets.
Edit:
I realised when I went to upload the new version of the export templates that I have completely forgotten where I put them on my site, so I'm going to have to do some investigating :)
mayapuppies
Feb 9th, '09, 05:27 PM
Ack! You're killing me here! LOL
I want all of that functionality and I want it now! Or, you know, a copy of it and I'll muddle through the conversion. :)
This would be a lot simpler if I hadn't blown-up DEX into three stats...
Fitz
Feb 9th, '09, 05:45 PM
Maybe for the moment I'll just post it here for anyone who wants to try it out.
I hadn't realised my site had become so labyrinthine; it might be time for some brutal rationalization (if I can ever raise the energy for it).
mayapuppies
Feb 9th, '09, 05:47 PM
Gracias!
Powered by vBulletin® Version 4.2.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.