If you're doing an HTML export template, you can use JavaScript to handle it.
Something along the lines of the following:
<script language="JavaScript">
document.write((<!--ACTIVE_COST-->/10)+"-");
</script>
I am working on an export template that will let me print out a spell list for a character. I have most of it down, but what I hope to have on there, which I have yet to figure out, is the minus to the magic roll.
Can the program handle performing math on a tag? Can I tell it to print out the active cost / 10 round up? Or is there a tag for this already that I am not familiar with?
-- Gary Ciaramella
*** To be filled at a later date with some manner of witty text. ***
If you're doing an HTML export template, you can use JavaScript to handle it.
Something along the lines of the following:
<script language="JavaScript">
document.write((<!--ACTIVE_COST-->/10)+"-");
</script>
White Hats are for CISSPs
And if it is an RTF template?
-- Gary Ciaramella
*** To be filled at a later date with some manner of witty text. ***
Not sure...I don't do too much in the way of RTF and am unfamiliar with the syntax....I don't know if you can have dynamic content in there.
If not, then you may be SOL on the RTF front. The export process needs to be generic in order to keep it from being bogged down in language-sensitive constructs....and there's no way (currently, at least) to include mathemeatical constructs in the tags.
White Hats are for CISSPs
Ahhh well! That would have just been frosting in any event. I am really happy with what I came up with... I did not think I would be able to figure it out at first, but a few minutes of playing around with a template and it did not seem very hard at all.![]()
-- Gary Ciaramella
*** To be filled at a later date with some manner of witty text. ***
A bit cumbersome, but you could output it to html w/ the javascript to do the math, then open it in an html editor that supports save as -> rtf (or whatever format you want to end up in). Even Word will do this, although the results can be frustrating.
A complex system that works is invariably found to have evolved from a simple system that worked.
- John Gall
My Facebook Profile (Friends welcome) and HERO System Fans Facebook Group (Join us!)
KillerShrike.com wiki
Also, as a side note, there's a one-column powers only export list here:
http://www.herogames.com/forums/show...0&pagenumber=3
A complex system that works is invariably found to have evolved from a simple system that worked.
- John Gall
My Facebook Profile (Friends welcome) and HERO System Fans Facebook Group (Join us!)
KillerShrike.com wiki
Finally, here's a CSV export template I did for my own purposes.
Im using it to dump Spells out to CSV and then importing the file into a very simple little Access database which drives my Spells page http://www.killershrike.com/FantasyH...lls/Spells.asp
NOTE: To get around the heavy use of (") in HERO System Annotation, Im using single quotes/apostrophes (') instead. Most CSV importers will let you change the string delimiter to single quotes. You have to be careful not to use apostrophes anywhere in your write up. One of the Side Effect options has an apostorphe in it as well, but you probably wont run in to it very often.
To use:
No apostrophes
Dont use lists or seperators (they create blank lines)
On the Basic Info tab:
Alternate ID = Source (PHB3e, NEW, etc)
Campaign Name = Type (Arcane, Divine)
Genre = Sub Type (Wizardry, Elementalism, etc)
Player = Provider (Killer Shrike, Shadowcat, Gary C., etc)
In the Notes of each Power/Spell put the Category (Evocation, Illusion, etc) and any notes.
Thats it. All of the fields mapped can be reassigned as you prefer of course. I havent tested it very widely -- I got it working for my purposes and that was good enough![]()
A complex system that works is invariably found to have evolved from a simple system that worked.
- John Gall
My Facebook Profile (Friends welcome) and HERO System Fans Facebook Group (Join us!)
KillerShrike.com wiki
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks