Senior Member
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841
|
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] Last edited by frumple; February 11th, 2014 at 06:23 AM. |
#1 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
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.
|
#2 |
Senior Member
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841
|
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? |
#3 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
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.
|
#4 |
Senior Member
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841
|
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. |
#5 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Then I am sorry to say, that's not currently possible. You can control what text is displayed, but not how it is italicised.
|
#6 |
Senior Member
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841
|
That is what I was starting to realize. Oh well. It is not a huge deal.
|
#7 |
|
|