Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - D&D 5th Edition SRD
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Oystein
Junior Member
 
Join Date: Jan 2016
Posts: 22

Old June 29th, 2016, 08:54 AM
So, is there any way to rename an attribute?
I want to use the "honor" stat but rename it something else.

Is that possible?
Oystein is offline   #1 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old June 30th, 2016, 10:31 AM
I think you can set the livename of the attribute to whatever you like? Give it a shot and tell me how it goes.
Aaron is offline   #2 Reply With Quote
Oystein
Junior Member
 
Join Date: Jan 2016
Posts: 22

Old July 1st, 2016, 12:17 PM
Hmm, just how do I do that?
Oystein is offline   #3 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old July 1st, 2016, 03:18 PM
Quote:
Originally Posted by Oystein View Post
Hmm, just how do I do that?
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.
ShadowChemosh is offline   #4 Reply With Quote
Oystein
Junior Member
 
Join Date: Jan 2016
Posts: 22

Old July 4th, 2016, 08:03 AM
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"
Oystein is offline   #5 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old July 6th, 2016, 09:39 AM
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"
Aaron is offline   #6 Reply With Quote
Oystein
Junior Member
 
Join Date: Jan 2016
Posts: 22

Old July 6th, 2016, 10:56 AM
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:
Only derived fields can generally be modified via scripts (field 'aAbbr')
When I try both:
Quote:
hero.childfound[svHON].field[aAbbr].text = "BLO"
hero.childfound[aHON].field[aAbbr].text = "BLO"
Oystein is offline   #7 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old July 6th, 2016, 11:25 AM
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"
Though it now occurs to me, is there a reason you're renaming and repurposing the Honor attribute rather than adding a new attribute of your own?
Aaron is offline   #8 Reply With Quote
Oystein
Junior Member
 
Join Date: Jan 2016
Posts: 22

Old July 6th, 2016, 12:24 PM
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?
Oystein is offline   #9 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old July 6th, 2016, 01:20 PM
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>
Elements in XML open with < and end with </ so you can see that the blank file just has a document open and then immediately closes. Every thing you define will be placed between the document element open and close. Here is an example of an existing attribute. I think you can tweak it pretty easily.


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>
So paste the XML, change what you need, then save it. You shouldn't need to bootstrap the attribute to anything, as there are background mechanisms which add all attributes to all heroes.
Aaron is offline   #10 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 12:07 AM.


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