I saw an example of how someone had created a box around their combat macro output text, but can't seem to find it anymore. Does anyone know who's framework it was (if any) or knows where I need to be looking in the forums?
Cheers, Steve.
Boxed in/formatted text
Moderators: dorpond, trevor, Azhrei
Forum rules
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
Re: Boxed in/formatted text
If all you're looking to do is put a box around it you can use <table border=1 width="200"><tr><td>Your Text</td></tr></table> as a basic design.
I'm sure there is more than one framework or drop-in that puts boxes around the attack output, but I use a bastardized version of Lindsay's 3.5/Pathfinder framework. My framework only supports PF (ie changes I make don't consider 3.5 rules) and how I do the output is pretty complex, but boils down to this part of the code:
You can download my framework here: https://dl.dropboxusercontent.com/u/700 ... 8-15.cmpgn
I'm sure there is more than one framework or drop-in that puts boxes around the attack output, but I use a bastardized version of Lindsay's 3.5/Pathfinder framework. My framework only supports PF (ie changes I make don't consider 3.5 rules) and how I do the output is pretty complex, but boils down to this part of the code:
Code: Select all
[H: attackOutput = strformat('
<tr style="border-width:1pt;border-style:solid;border-color:black;font-weight:bold">
<td style="padding:0px 5px 1px 5px;color:black;white-space:nowrap;">%{attackLabel.tip}</td>
<td style="padding:0px;color:blue;white-space:nowrap;">%{toHitText}</td>
<td style="padding:0px 5px 0px 5px;color:#FF4500;white-space:nowrap;">%{damageLink}</td>
</tr>
')]
[H: macro.return = json.toList(attackOutput,"")]
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: Boxed in/formatted text
Thanks for the pointer Alias, and also the quick reply.
Cheers, Steve.
Cheers, Steve.