Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - D&D 5th Edition SRD (http://forums.wolflair.com/forumdisplay.php?f=89)
-   -   Warlock Spell Slots (http://forums.wolflair.com/showthread.php?t=67899)

spannclann July 14th, 2023 09:20 AM

Warlock Spell Slots
 
1 Attachment(s)
I have chosen to give a class limited spell slots so I used the Warlock spell slots. When I print out the character sheet, the spell slots are listed as Warlock. Is there any way to change this with some sort of name change command?

RavenX July 16th, 2023 06:29 PM

Quote:

Originally Posted by spannclann (Post 301703)
I have chosen to give a class limited spell slots so I used the Warlock spell slots. When I print out the character sheet, the spell slots are listed as Warlock. Is there any way to change this with some sort of name change command?

Final/100000

hero.child[thingid].field[livename].text = "New Name Here"

spannclann July 18th, 2023 12:46 AM

@RavenX

Ive tried both of these but it has not changed anything. What could I be doing wrong?

hero.child[SlotHoldWa].field[livename].text = "New Name Here"

hero.child[SpellSlots].field[livename].text = "New Name Here"

I have also tried to replace the text but no luck

hero.child[SlotHoldWa].field[livename].text = replace(hero.child[SlotHoldWa].field[livename].text, "Warlock", "Fabled Archer", 0)

spannclann July 21st, 2023 06:51 AM

Any thoughts or ideas? Anyone?

I am putting this name changing script in the Class Special ability. Is that the place for it? I also have it with three other eval scripts. Should they be in another order than this?
1. Makes the Hero a Caster
2. Sets INT as the spell casting stat
3. Gives the Hero Warlock spell slots
4. Tries to change the Spell Slot name from Warlock to "New Name" when the character sheet is printed.

RavenX July 21st, 2023 10:18 AM

Quote:

Originally Posted by spannclann (Post 301725)
@RavenX

Ive tried both of these but it has not changed anything. What could I be doing wrong?

hero.child[SlotHoldWa].field[livename].text = "New Name Here"

hero.child[SpellSlots].field[livename].text = "New Name Here"

I have also tried to replace the text but no luck

hero.child[SlotHoldWa].field[livename].text = replace(hero.child[SlotHoldWa].field[livename].text, "Warlock", "Fabled Archer", 0)

Phase and Priority. You need this in Render phase with a late priority to overwrite whatever livename script is already present in the source code. Try a priority of 100000 and see if that helps. Livename is a field that auto generates at a certain phase so if its not changing to what you set it to, then you're changing the field too early.

Hero Lab works through each phase one at a time. It compiles the code from the lowest priority number to the highest in each phase.

So it basically parses Initialize from 0 to 99999999 then moves to Setup and does the same thing parsing the code for each phase individually.

If you are setting in say Final 1000, and another script is running in Render 10000, the Render script will overwrite what you did. Your script has to run later than Render 10000 if you want to make the change you did work.

spannclann July 22nd, 2023 12:01 AM

2 Attachment(s)
Okay, I have got it to work somewhat. It has changed in Hero Lab, but not on the printed character sheet.

RavenX July 24th, 2023 08:11 AM

Quote:

Originally Posted by spannclann (Post 301766)
Okay, I have got it to work somewhat. It has changed in Hero Lab, but not on the printed character sheet.

Try running the script later like 99999999 and see if that fixes the sheet output, if it doesn't then there's an issue with the way sheet output was setup. You can't change sheet output without having full access to the structure files themselves.

RavenX July 24th, 2023 09:15 AM

I already checked for you on the source code and it is locked down, so the changes to sheet output you need would have to be done by someone who works for Lone Wolf if changing the livename doesn't work. They might have coded the source code for sheets to output the name field instead of the livename field.

spannclann July 24th, 2023 04:47 PM

Ah, I was starting to think along those lines. Thanks for the help!


All times are GMT -8. The time now is 09:47 AM.

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