• 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 Help - Still learning the code

stargazer_dragon

Well-known member
Ok so starter I know basic C++ and VB learning basic Java so I only know the basics of programming. I have messed around with hero lab and can get about half of what I try done without any issues.

A Little about my actual project, My players got hero lab and the base books we use. Making a Realm Mod that will hide the junk we don't need (begrudgingly I will have to design it to work with those specifically and add new file for each new book we add)

For the races I am setting base race types as all that's shown on the list, so elf, dwarf, human, ect. Then within elf I am using ethnicity to select the type of elf such as Drow, Wood. Then using Alt racial traits for stuff like Arctic, Desert, ect. Thus We represent all the Major races and give customization room for different regions. Also lets me link races such as Half Elf to humans and Elfs and keeps the large list of races organized and easy to use.

>>
ok that said I have a few coding questions and am sure more will crop up as I go so will just reuse the same thread in the future.

1. Thus far it seams easier to simply remake powers and abilities ect then to use whats already made, is this simply do to lack of knowledge of hero lab and what powers are stored where or is this pretty much the norm?

2. I have a base Dwarf race and want to add a heritage that makes the base race a electric outsider type. What code can I use to change the Humanoid to outsider (already added electric and native subtypes) Leaving humanoid would be fine but at current some of the powers need outsider.

3. Using the Race builder to help balance some custom races out, Thus far most powers are more or less just text telling the player what it does few actually calculate anywhere. Would it be easier to just remake the powers then to reference the ones issued with the race builder? they seam a little glitched when used outside of the actual race builder.

4. For Race subtypes like Drow, does heritage or Alt Racial Traits work best for the Subtypes? I assume they basically work just as well regardless of how it's done.

5. Why do some abilities such as the Race builder Breath weapon appear twice on the Race when added outside of the Race builder. (using the editor and adding the ID for the Breath weapon power from Race builder).
 
My advice as I have seen this many times here is to "slow" down your changes your making. Learn the system as it sounds like your fighting against the system instead of learning it. Their is allot of logical reason for why it does what it does.

Work on one change or race at a time and get it to work correctly before moving on. Otherwise experiences show people get frustrated and give up. :(

1. Thus far it seams easier to simply remake powers and abilities ect then to use whats already made, is this simply do to lack of knowledge of hero lab and what powers are stored where or is this pretty much the norm?
Sorry not really getting this as why remake the powers? What is not working? What are you trying to accomplish?

2. I have a base Dwarf race and want to add a heritage that makes the base race a electric outsider type. What code can I use to change the Humanoid to outsider (already added electric and native subtypes) Leaving humanoid would be fine but at current some of the powers need outsider.
I don't do allot with races actually so I would need to look into this. Frumple does allot with templates and races he may have some advice. For now you should be able to just bootstrap the outsider type to the heritage and at least have both humanoid and outsider display. I know I read some stuff for templates was added that can easily remove a type. I would need to be near HL to get a better answer sorry.


3. Using the Race builder to help balance some custom races out, Thus far most powers are more or less just text telling the player what it does few actually calculate anywhere. Would it be easier to just remake the powers then to reference the ones issued with the race builder? they seam a little glitched when used outside of the actual race builder.
Most abilities are coded up if you get them from the editor side. Again sorry I have not gone near the race builder as I would just build in the editor instead. Can you give some examples of what is not calculating?

Also depending on what your looking for the Community Bestiary has allot of Frumple's work of automating racial abilities. Diseases and breath weapons are all coded to use tags and values and auto calculate themselves. So that could be a good source to copy from maybe.

4. For Race subtypes like Drow, does heritage or Alt Racial Traits work best for the Subtypes? I assume they basically work just as well regardless of how it's done.
If going with the idea that Drow is a subrace of elf instead of its own race then yes I would use an ART to represent that. You can disable the racial abilities you want to remove and add the ones that make them "drow".

5. Why do some abilities such as the Race builder Breath weapon appear twice on the Race when added outside of the Race builder. (using the editor and adding the ID for the Breath weapon power from Race builder).
I am not near HL so can't give a good answer and I don't remember core as we have some special coded breath weapons abilities in the Community Bestiary. So been awhile sense I worked with the CORE versions.

I will try and remember to update with better answers once I can get near HL....
 
So managed to answer a few of my own questions
5. -- Evidently some powers the race builder use are actualy pointers, thus when you use the same code it populates the actual power, grabbing the new code and using it fixed the issue and now stuff shows correctly.

4. -- Thus far heritages are working great, however some times they are referred to as special abilities instead of Heritages. I know this is a simple field I am missing but haven't managed to locate the section of race that makes special abilities show as heritages.

3> -- Race builder powers work well now except when I need new text specific to the race, but even then I have learned how to get the power remade in almost every case, eval scripts sometimes still force me to slowly struggle threw them when I can't easily find a code already made for it.

2. -- Still not sure how to remove the outsider humanoid type so that it will accept outsider type but I did find a different work around that worked better. Will still eventually need to know how to swap types via eval code or something

1. -- So I think I find it easier to remake a lot of powers currently while using some that are made. Mainly dependent on if the powers text works well and how difficult it is to actually reference but I understand them a lot better now.

_________
Thus far I have managed to get about 7 races redone for my realm, still need to go threw and make a section for them to all be listed under besides normal so that I can easily shut off all the other races rather then hide them.



>>>> thanks for the advice and help, I think I have managed to figure out all but a few of the eval codes like removing type. and really that comes from not knowing how the files are arranged thus making it near impossible to reference stuff in code. But I am sure that given time I will start to memorize things. Side note there's no way I would get flustered and quit the project, this project is half learning half actual desire. I goto learn the coding a lot better so I can work on adding my game system to hero lab. Now that's going to be a beastly task.
 
2. -- Still not sure how to remove the outsider humanoid type so that it will accept outsider type but I did find a different work around that worked better. Will still eventually need to know how to swap types via eval code or something
So turns out this is really easy. So if you bootstrapped the Outsider type you can remove that and add the following script:

First/100

Code:
[B][COLOR="Green"]~ Change our type to Outsider[/COLOR][/B]
perform hero.assign[OverType.tpOutsider]
 
Thx, I am sure this will help a Lot.

Slowly learning.

_______

So a different question that is kinda related to hero lab. Made the HL export file. Trying to get a XML file. Doing something wrong, I tried to use my website but that was a pain so trying to use Drop box since it is free and has link for public easy access of the file.

So during the creating of the XML file it asks for the HL export file DL URL I assume this is the URL that auto starts the download, so got that and I can make a XML but I get a error when I point HL to that XML on drop box (again using the public link to it) Not sure what step I am messing up but am positive I am messing something up.

>>>>
Edit -- Figured it out I had pointed HL to the Location of the file but not to the actual DL URL of the file, corrected this and it is now showing the Mod properly, thx again for all of your help it is very much appreciated.
 
Last edited:
How do you make a new Race type Like normal NPC ect.

I know that the text that appears in race is done via making the race and selecting show only and then just using the name like –NPC Races – But how do you make the tag for it? I have went threw most of the tabs on HL editor looking for one of the existing tags so that I could make my own section for game specific races but not finding a option for it.
 
How do you make a new Race type Like normal NPC ect.

I know that the text that appears in race is done via making the race and selecting show only and then just using the name like –NPC Races – But how do you make the tag for it? I have went threw most of the tabs on HL editor looking for one of the existing tags so that I could make my own section for game specific races but not finding a option for it.
Allot of the tags are not "Dynamic" so you can't add to them. Race type is one of those that can not be added too.

But you could make a 'Custom.?' tag if you want to help "ID" things. The button above "Sources" is "User Tags" and that will allow you create your own custom tags.

Not what it was meant for but I have found using "Product ID" to be an easier way to "flag" stuff as my own House Rule version. So all my custom races are flagged with "ProductId.Shadowd20".
 
I was going to make a new category for the races and then uncheck all the categories so basically only my mods races showed up. Will have to do this a different way I guess. ahh well.
 
Back
Top