Diary SiteMap RecentChanges About Contact 2012-09 Calendar

Search:

Matching Pages:

2012-09-01 SVG Character Sheet

Last edit

Summary: tags

Changed:

< Tags: [[tag:RPG]] [[tag:Old School]]

to

> Tags: [[tag:RPG]] [[tag:Old School]] [[tag:SVG]] [[tag:Character Sheet]]


For a while now I’ve been using this German SVG character sheet for my Labyrinth Lord game (it uses the Purisa font):

I’ve now written a little Perl script that allows you to fill in some of these variables using parameters. (Source)

Here’s an example URL:

http://campaignwiki.org/halberdsnhelmets?name=Alex;class=Elf;level=1;xp=0;ac=5;str=8;dex=18;con=9;int=10;wis=14;cha=15;breath=11;petrify=12;poison=13;wands=15;spells=16;hp=10;thac0=20;property=one%5c%5ctwo;abilities=elvish%5c%5corcish

Result:

It needs more polishing and possibly the option of selecting different character sheets.

I’ve written a text formatting rule for my Campaign Wiki that makes it easy to put your character’s stats on a web page and have it render as a SVG character sheet.

Tags: RSS RSS RSS RSS

Comments

Last edit

Summary: The only thing I haven't tried is embedding the entire SVG document.

Changed:

< The only thing I haven't tried is embedding the entire SVG document.

to

> Embedding the entire SVG document "works" -- the validators choke on it, however. The declaration that all style elements will be using CSS is missing, the namespace declarations on the svg tag are not allowed, and so on. It looks ok in my browser, however. :)


Do they attributes have different bonus tables? If not, why is the bonus for „Geschick“ only +1 and the bonus for „Weisheit“ +2?

Stefan 2012-09-03 06:11 UTC



AlexSchroeder
A bug that I had introduced while reshuffeling the code. Any value of 15+ resulted in a bonus of +1. :)

AlexSchroeder 2012-09-03 08:16 UTC



AlexSchroeder
The default character sheet now supports a parameter named “portrait” with the value being the URL of an image to use. Example.

Too bad this doesn’t work when displaying SVG files using an image tag as part of an XHTML document. Example.

The reason is that the img tag will only load the URL provided. It will not follow further URLs (such as the font or the embedded image). I could use data URLs and waste a lot of bandwidth, or I could use a different tag (frame or object). When I tried using other tags, however, there’s a different kind of problem: clicking on the link resulted in the script being run in special frame, still inside the original page. That’s very confusing for users.

Embedding the entire SVG document “works” – the validators choke on it, however. The declaration that all style elements will be using CSS is missing, the namespace declarations on the svg tag are not allowed, and so on. It looks ok in my browser, however. :)

AlexSchroeder 2012-12-11

Please make sure you contribute only your own work, or work licensed under the GNU Free Documentation License. See Info for text formatting rules. You can edit the comment page if you need to fix typos. You can subscribe to new comments by email without leaving a comment.

To save this page you must answer this question:

Please say HELLO.

Show Google +1