• 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

Coding advice

stargazer_dragon

Well-known member
Goal: Edit Hero lab so that my game setting is applied properly
Required tasks:
Hide all objects that are not found within my game world
 Use preclude to hide these (unless there is a easier and faster way then looking up and precluding each one separately)
Set Alt Race Traits to act as subtypes of races
 Preclude all current alt race traits and make new one for each subtype. (this way to make a Drow a player would select elf then select Drow alt trait – using ethnicities for different regions of each race. Is there a way to add a subtype options so alt race traits ethnicities and subtypes can each be set separately?
Set sub races to alter base race powers and attributes.
 I used eval code for altering Attributes (used the code right below for this)
 Pre-attributes 5000
 hero.child[aCHA].field[aStartMod].value += 2
 perform hero.child[aCHA].assign[Helper.CustChosen]
 I Think this is the best code to use

Hide Disabled Powers of Base Race
 Still no clue how yet to do this
Renamed base race
 Used below code
 First 100
 ~Change name of races
 perform state.thing[rHalfElf].amendthing[name,"Half-Elf"]

I am doing my best to alt the core files but to not change them this way the altering code is tied to only the source and all feats and other powers recognize the base race perfectly.
 
Last edited:
List of tasks

List of Tasks
1> Removing greyed out race abilities after they have been disabled by alt race traits
2> Only allowing a single alt race trait to be selectable
3> Hiding all the current non base races and all alt race traits and ethnicity and deities ect that are non existent in my realm)
4> Altering some races without altering the actual file (perhaps using a mechanism to code a power to be disabled or hidden )
5> Finding a way to transfer races made in custom race builder in HL to the editor as permanent races (finding the right ID is near impossible it seams)


Will edit this list so I don't have to make new posts ect as I manage to figure stuff out. Will also post how I accomplished each thing and try to consolidate my previous posts
 
As far as I am aware, the Custom Race Builder in Hero Lab, based on the Advanced Race Guide system, doesn't create the race as an item that could then be selected in the editor, it only applies the settings to that character.

That said, it's fairly easy to create a new race in the editor, especially if you are mostly using existing abilities.
 
I am actually having a hard time finding the powers used in custom race to add them to the race in the editor but I can just remake the powers as needed so not a big issue.

Need to know the code to remove abilities from the core dwarf from the mechanics page, this way I can have a stripped down dwarf without coping, since coping the dwarf makes the new dwarf not count as a dwarf race for feats and such. you would think lonewolf would have used something other then the ID for identifying dwarf race


Thinking I might just make a copy of all the base races since this effectivly hides all the other stuff, however if there anything important that won't work correctly?
 
Last edited:
In the editor, when you're creating a new race, at the bottom of the first column there's a button labelled "Counts as Races..." which allows you to pick races that your custom races counts as for the purposes of feats. It's easily missed as you have to scroll the editor window right down to the bottom to see it.
 
Also it seams that using the replace has set my Race to count as the race it replaced for the purpose of feats, or maybe I just added the code for count as without noticing it but ether way is working well now
 
Back
Top