• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Creating a Custom Output

TobyFox2002

Well-known member
I was wondering if there was any thread out there that talked about creating custom Hero Labs Output. I've tried searching and nothing really comes out that seems particularly helpful to me.

What I'm looking to do is create something that would allow me output something like:

!setattr {{
--sel
--replace
--repeating_weapon_-CREATE_enhancement|0
--repeating_weapon_-CREATE_masterwork|0
--repeating_weapon_-CREATE_name|Short Sword
--repeating_weapon_-CREATE_attack|
--repeating_weapon_-CREATE_attack-type|`{attk~melee}
--repeating_weapon_-CREATE_vs|ac
--repeating_weapon_-CREATE_crit_target|20
--repeating_weapon_-CREATE_crit-multiplier|2
--repeating_weapon_-CREATE_crit_confirm|0
--repeating_weapon_-CREATE_damage-dice-num|1
--repeating_weapon_-CREATE_damage-die|6
--repeating_weapon_-CREATE_damage|
--repeating_weapon_-CREATE_dmage_ability_mult|1
--repeating_weapon_-CREATE_damage-ability|`{STR~mod}
--repeating_weapon_-CREATE_damage-ability-max|
--repeating_weapon_-CREATE_type|PS
--repeating_weapon_-CREATE_range|0
--repeating_weapon_-CREATE_ammo|0
--repeating_weapon_-CREATE_proficiency|0
}}

Well, at least thats the basic format, I want and specifically for spells. This format would allow me to directly export it into r20's repeating sections for spells (well the above example is for weapons) or whatever repeating section would be appropriate. Which ultimately, would save hours of work when entering in new NPCs to my roll20 game.

I'm assuming something like this is possible, but not exactly sure how I'd get it to work.

P.S., I am not the creator of this script on r20. That would be Jakob and the specific script is ChatSetAttr. For most of you, prolly doesnt matter but in case it does. I also, have done no real planning so I dont know the exact code I'd need to use in my game, I wanted first learn how to do it, before I do specifics.
 
For custom output info check the Help section of HL it talks about the XML you get and the XSLT you have to use to convert it.

For detailed info on XSLT google is your friend. Its a very well documented and heavily used bit of software.
 
Blarg...

Well thank you. Perhaps I'll look into this in the future, but for now the same reason I wanted this, to create outputs to save time. Is the exact reason I cant pursue, dont have time to learn a new language from the ground up.

Was more hoping I could find copypasta examples on the forums to use.
 
Well, TheAncientOne's custom character sheet output might be a start, but it would still take a fair amount of effort. That code basically dumps the XML data into a string, then uses JavaScript to process it into a character sheet. You could hack the JavaScript so that instead of creating an HTML-based character sheet, it created the output you want, but you'd need to know JavaScript to be able to hack the code.

It would work like this: You generate the output sheet. You open the sheet in a browser. The page displays the text that you need, and you then copy/paste that into your tool.

Or you could use MapTool 1.4 that has drag/drop support of Hero Lab portfolios. ;) (Well, the Nerps! version from Jamz does. :) The main dev branch likely won't have it until JavaScript integration is done.)
 
Back
Top