• 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

Modifying spell name for outputted stat blocks

frumple

Well-known member
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:
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.
 
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?
 
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.
 
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.
 
Then I am sorry to say, that's not currently possible. You can control what text is displayed, but not how it is italicised.
 
Back
Top