Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
frumple
Senior Member
 
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841

Old February 11th, 2014, 06:19 AM
I am trying to implement the ability to append text after spell or spell-like ability that shows up as non-italicized text in the outputted statblock, but shows up in the summary in HL itself.

For example for the summon spell-like ability I want it to show

{i}summon{/i} (level xx, xxxx)

in the outputted statblock but only show Summon on the Spells tab.

Here is what I have so far, but it doesn't quite work.

Code:
Final/10000
~ abValue is the summon level
~ abText is the additional text for summon

~ set description 

var summ as string
summ = "level " & field[abValue].value & ", " & field[abText].text

~ amend name for output
perform state.thing[xCBSummon].amendthing[name, "Summon {revert}("& summ &")"]

~ prepend description for in play

perform state.thing[xCBSummon].amendthing[description, "{align center}{b}" & summ & "{/b}{br}{br}{align left}" & state.thing[xCBSummon].field[descript].text]
This gives me but I want, but the added text is still showing up in italics in an outputted statblock.

Last edited by frumple; February 11th, 2014 at 06:23 AM.
frumple is offline   #1 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old February 11th, 2014, 10:21 AM
Instead of Amendthing, try just manipulating the sbName field. That is what is shown in the statblock, instead of the livename or any other name.
Aaron is offline   #2 Reply With Quote
frumple
Senior Member
 
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841

Old February 11th, 2014, 12:42 PM
Ah!

However, still any attempt at formatting the text fails. Is the formatting for the output stat block independent of any scripting or is it a timing issue?
frumple is offline   #3 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old February 11th, 2014, 01:08 PM
Italicising and bolding and whatnot are determined by the statblock generation scripts. The actual sbName field is set very late in render (if not set before then). Does that answer your question? I'm afraid I am not entirely clear on what you mean by formatting here.
Aaron is offline   #4 Reply With Quote
frumple
Senior Member
 
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841

Old February 11th, 2014, 04:46 PM
Ah I see that sbName is set at Render/100000.

I have tried assigning sbName before and after this timing, but still not getting what I want.

What I want is the output stat block to show a mix of italics and normal text, i.e.

summon (*text*)

In the Spell-Like Abilities section of the stat block.
frumple is offline   #5 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old February 11th, 2014, 04:50 PM
Then I am sorry to say, that's not currently possible. You can control what text is displayed, but not how it is italicised.
Aaron is offline   #6 Reply With Quote
frumple
Senior Member
 
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841

Old February 12th, 2014, 01:34 PM
That is what I was starting to realize. Oh well. It is not a huge deal.
frumple is offline   #7 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 07:31 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.