Junior Member
Join Date: Jan 2016
Posts: 22
|
So, is there any way to rename an attribute?
I want to use the "honor" stat but rename it something else. Is that possible? |
#1 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
I think you can set the livename of the attribute to whatever you like? Give it a shot and tell me how it goes.
|
#2 |
Junior Member
Join Date: Jan 2016
Posts: 22
|
Hmm, just how do I do that?
|
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
I would recommend reading the Glossary of Terms for the Editor. Then check out FAQ#2 for all the places to learn about the editor including YouTube videos.
Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#4 |
Junior Member
Join Date: Jan 2016
Posts: 22
|
Hmm,
okie, made some head start at least. So it is both aHon and svHon I want to replace (so it also shows the right attributename on the saving throw as well). But then the question becomes - where should I put it for it to be applied automatically? Mechanics? And am I correct in that both liveword and listwords have to be changed, something like this: aHon[listname].text = "Bloodpoints" aHon[livename].text = "Bloodpoints" |
#5 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Yeah, a mechanic would work. However listnames aren't a field attributes possess (that's a class ability thing). I think you'd need to alter the livename field, the aAbbr field, and the aNameCaps field.
Also, your transitions to the aHon attribute need to be altered. hero.childfound[aHon].field[livename].text = "Bloodpoints" |
#6 |
Junior Member
Join Date: Jan 2016
Posts: 22
|
Hey,
thanks - got it mostly working now. Only field it doesn't want to change yet is the aAbbr ones, which gives me the error: Quote:
Quote:
|
||
#7 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Hmm, looks like that is a "static" field, which means it's somewhat protected from changing. I'll switch the field to being a derived field (static is something of a relic from the early days of HL, which we don't really use anymore). In the meantime, I think you might be able to get around the issue by using trustme.
Code:
trustme hero.childfound[aHON].field[aAbbr].text = "BLO" |
#8 |
Junior Member
Join Date: Jan 2016
Posts: 22
|
Not beyond that I haven't found how to add a new ability?
I found an old thread (from 2008) about adding attributes, but it refernces files and such that is no longer used. (source files, like abilities.dat or someting) But I haven't found how to do it from the editor at least. I guess I have to create it in the user file directly? |
#9 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Yeah, you'd have to work in the raw XML, but attributes are fairly simple by themselves. It's just that they are a foundation from which many other things draw values.
Here's what I suggest. Start a new .user file and save it. Open the file in a text editor (I use editpad, but whatever floats your boat). You should have something that looks more or less like this: Code:
<?xml version="1.0" encoding="UTF-8"?> <document signature="Hero Lab Data"></document> Code:
<?xml version="1.0" encoding="UTF-8"?> <document signature="Hero Lab Data"> <thing id="aSTR" name="Strength" compset="Attribute" isunique="yes" description="Strength measures bodily power, athletic training, and the extent to which you can exert raw physical force."> <fieldval field="aAbbr" value="STR"/> <tag group="explicit" tag="5"/> <tag group="AbilSumOrd" tag="5"/> <tag group="AttribCat" tag="Physical"/> <link linkage="save" thing="svSTR"/> </thing> </document> |
#10 |
|
|