Member
Join Date: Aug 2018
Location: Texas
Posts: 87
|
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?
|
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,633
|
Quote:
hero.child[thingid].field[livename].text = "New Name Here" RavenX Pronouns: She/Her Please do not PM me to inquire about datafiles I coded "for personal use" such as Exalted, World of Darkness, AD&D, or Warhammer 40K Roleplaying. I appreciate your interest, but I do not own the Intellectual Property rights to these game systems. Nor do I have permission from any of the Publishers to distribute the data files. As such, I cannot distribute the work I have done with community on these files. They are "for personal use" only. Thank you. I am far too busy these days to answer emails. If you message me here there is no guarantee I will get back to you at all. |
|
#2 |
Member
Join Date: Aug 2018
Location: Texas
Posts: 87
|
@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) Last edited by spannclann; July 20th, 2023 at 02:49 PM. |
#3 |
Member
Join Date: Aug 2018
Location: Texas
Posts: 87
|
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. Last edited by spannclann; July 21st, 2023 at 10:08 AM. Reason: added more information |
#4 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,633
|
Quote:
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. RavenX Pronouns: She/Her Please do not PM me to inquire about datafiles I coded "for personal use" such as Exalted, World of Darkness, AD&D, or Warhammer 40K Roleplaying. I appreciate your interest, but I do not own the Intellectual Property rights to these game systems. Nor do I have permission from any of the Publishers to distribute the data files. As such, I cannot distribute the work I have done with community on these files. They are "for personal use" only. Thank you. I am far too busy these days to answer emails. If you message me here there is no guarantee I will get back to you at all. |
|
#5 |
Member
Join Date: Aug 2018
Location: Texas
Posts: 87
|
Okay, I have got it to work somewhat. It has changed in Hero Lab, but not on the printed character sheet.
|
#6 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,633
|
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 Pronouns: She/Her Please do not PM me to inquire about datafiles I coded "for personal use" such as Exalted, World of Darkness, AD&D, or Warhammer 40K Roleplaying. I appreciate your interest, but I do not own the Intellectual Property rights to these game systems. Nor do I have permission from any of the Publishers to distribute the data files. As such, I cannot distribute the work I have done with community on these files. They are "for personal use" only. Thank you. I am far too busy these days to answer emails. If you message me here there is no guarantee I will get back to you at all. |
#7 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,633
|
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.
RavenX Pronouns: She/Her Please do not PM me to inquire about datafiles I coded "for personal use" such as Exalted, World of Darkness, AD&D, or Warhammer 40K Roleplaying. I appreciate your interest, but I do not own the Intellectual Property rights to these game systems. Nor do I have permission from any of the Publishers to distribute the data files. As such, I cannot distribute the work I have done with community on these files. They are "for personal use" only. Thank you. I am far too busy these days to answer emails. If you message me here there is no guarantee I will get back to you at all. |
#8 |
Member
Join Date: Aug 2018
Location: Texas
Posts: 87
|
Ah, I was starting to think along those lines. Thanks for the help!
|
#9 |
|
|