PDA

View Full Version : Martial Arts Exports



Dust Raven
Jul 21st, '04, 02:20 AM
Hi all!

I'm working on modifying the default export template (html) so that it formats Martial Arts Maneuvers as they appear in the books. Unfortunately, I can't seem to get the colums arranged with the correct widths. I've tried just writing in a width for each cell, but it comes out funky no matter what.

How I'm doing my Martial Arts in HD is starting with a List, and then adding in all the Maneuvers and Weapons Elements, and then, if desired, putting Damage Classes outside the List.

An example of how I'd like it to appear is like this:

<table border=0 cellpadding=2 cellspacing=0 width=455>

<tr>
<td align="left" class="header" colspan=5 style="padding: 0px;" width="451">
MARTIAL ARTS MANEUVERS
</td>
</tr>
<tr>
<td align="center" valign="top" width="31"><b>Cost&nbsp;</b></td>
<td align="left" width="416" colspan=4 valign="top"><b>Maneuver</b></td>
</tr>

<tr>
<td align="center" valign="top" width="31"></td>
<td align="left" colspan=4 valign="top" width="416"><i>Martial Arts: Fighting Style</i></td>
</tr>

<tr>
<td align="center" valign="top" width="31">&nbsp;</td>
<td align="left" valign="top" width="141"><b>Maneuver</b></td>
<td align="center" valign="top" width="40"><b>OCV</b></td>
<td align="center" valign="top" width="40"><b>DCV</b></td>
<td align="left" valign="top" width="198"><b>Notes</b></td>
</tr>

<tr>
<td align="center" valign="top" width="31">4</td>
<td align="left" valign="top" width="141"><div style="margin-left: 15px;">1) <span style="padding-left: 10px;">
Martial Block</span></div></td>
<td align="center" valign="top" width="40"> <span>+2</span></td>
<td align="center" valign="top" width="40"> <span>+2</span></td>
<td align="left" valign="top" width="198"> <span>Block,
Abort</span></td>
</tr>

<tr>
<td align="center" valign="top" width="31">4</td>
<td align="left" valign="top" width="141"><div style="margin-left: 15px;">2) <span style="padding-left: 10px;">
Martial Dodge</span></div></td>
<td align="center" valign="top" width="40"> <span>--</span></td>
<td align="center" valign="top" width="40"> <span>+5</span></td>
<td align="left" valign="top" width="198"> <span>Dodge,
Affects All Attacks, Abort</span></td>
</tr>

<tr>
<td align="center" valign="top" width="31">4</td>
<td align="left" valign="top" width="141"><div style="margin-left: 15px;">3) <span style="padding-left: 10px;">
Martial Strike</span></div></td>
<td align="center" valign="top" width="40"> <span>+0</span></td>
<td align="center" valign="top" width="40"> <span>+2</span></td>
<td align="left" valign="top" width="198"> <span>6d6 Strike</span></td>
</tr>

<tr>
<td align="center" valign="top" width="31">3</td>
<td align="left" valign="top" width="141"><div style="margin-left: 15px;">4) <span style="padding-left: 10px;">
Martial Throw</span></div></td>
<td align="center" valign="top" width="40"> <span>+0</span></td>
<td align="center" valign="top" width="40"> <span>+1</span></td>
<td align="left" valign="top" width="198"> <span>4d6 +v/5,
Target Falls</span></td>
</tr>

<tr>
<td align="center" valign="top" width="31">5</td>
<td align="left" valign="top" width="141"><div style="margin-left: 15px;">5) <span style="padding-left: 10px;">
Offensive Strike</span></div></td>
<td align="center" valign="top" width="40"> <span>-2</span></td>
<td align="center" valign="top" width="40"> <span>+1</span></td>
<td align="left" valign="top" width="198"> <span>8d6 Strike</span></td>
</tr>

<tr>
<td align="center" valign="top" width="31">1</td>
<td align="left" valign="top" width="141"><div style="margin-left: 15px;">6) <span style="padding-left: 10px;">Weapon Element: Blades</span></div></td>
<td align="center" valign="top" width="40">&nbsp;</td>
<td align="center" valign="top" width="40">&nbsp;</td>
<td align="left" valign="top" width="198">&nbsp;</td>
</tr>

<tr>
<td align="center" valign="top" width="31">8</td>
<td align="left" colspan=4 valign="top" width="416">+2 HTH Damage Classes</td>
</tr>

<tr>
<td align="center" valign="top" width="31"><b>29</b></td>
<td align="left" colspan=4 valign="top" width="416"><b>Total Martial Arts Cost</b></td>
</tr>

</table>


Does anyone have any ideas on how to make it look kinda like this?
Thanks!

Vanguard
Jul 21st, '04, 02:31 AM
Do you mean with all the extra space there? Or to look like the "manuevers" listing in the combat section?

If thats what you want I've got a couple of export templates i *think* might be what you're looking for.

Dust Raven
Jul 21st, '04, 02:52 AM
Do you mean with all the extra space there? Or to look like the "manuevers" listing in the combat section?

If thats what you want I've got a couple of export templates i *think* might be what you're looking for.
No, no extra space, just the table (I don't know where that extra space came from actually :think:). But yeah, kinda like in the combat section, but with the maneuver's cost as well. So far, I can get a table with the right number of columns, but regardless of how wide I tell them to be, they end up being something different. I don't know why.

I'd be interested in looking at your templates. Couldn't hurt...

Vanguard
Jul 29th, '04, 02:49 AM
Hey Raven,

Sorry it took so long to get back to you. I've attached an export template that I hope will help. If you've already got the problem solved then cool.

As the name says, it's a three column modified one. If it's got what you like you should be able to just swipe the xml code out of it.

Good luck!