Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
And in the editor Help->Help on using the editor will bring you to the tutorials of the editor
|
#21 |
Senior Member
Join Date: Aug 2014
Location: Canada
Posts: 151
|
That might work, but I have no clue how to script that, so I will leave it off for the moment. Will come back when i can script better.
My next issue, Ethnicity. I have the human ethnic groups done, but I can not get them to show up on the human race. I also want to add a bonus to save via the ethnicity, which is confusing me also. Then the ethnic groups in the original added 4 skills as Class skills, I can not find a way to do that for this, is it possible? I have been going through the tutorials, its a bit confusing to get around in. |
#22 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
The script logic is not too bad and a good one to learn. Here is the working script and its worth going over to see how it is done: Pre-levels/10000: Code:
~ set abValue to our +1 bonus field[abValue].value += 1 ~ if not equipped in main hand or off-hand get out now! doneif (field[gIsEquip].value + field[wIs2nd].value = 0) ~ If we have the two-weapon defense feat then increase its values by +1. If (hero.childlives[fTwoWepDef] <> 0) Then #value[fTwoWepDef] += field[abValue].value #value2[fTwoWepDef] += field[abValue].value ~ if we're fighting defensively without two-weapon defense feat ~ then give a shield bonus of +1. Elseif (#hascondition[pstFtDefen] <> 0) then #applybonus[tACShield, hero.child[ArmorClass], field[abValue].value] Endif 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. |
|
#23 |
Senior Member
Join Date: Aug 2014
Location: Canada
Posts: 151
|
I definitely am working on figuring out the scripting, just slowly. I hope to get the hang of things before to long.
On my current problem, I have my custom human race and my custom ethinicities, but I can not get them to like each other. I used the eval script from the regular human from the core files. Code:
~if we have the ISWG source enabled, we have special abilities if (hero.tagis[source.CSWorldGui] <> 0) then ~we get one ethnicity pick field[rGiveSpec].value = 1 endif Code:
~if we have the Birthright source enabled, we have special abilities if (hero.tagis[source.Birthright] <> 0) then ~we get one ethnicity pick field[rGiveSpec].value = 1 endif If I use the original script it does not work for this race either. Could it have something to do with the race being named "Human, Cerilian"? Last edited by Sarelth; August 4th, 2014 at 09:37 PM. |
#24 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
I am guessing you have to define the source before you can use it in scripts. Go to one of your custom created things, and scroll down to the bottom in the central column, click on the source button, and create that source. Reload the game system and I think your error will stop. If it does not, double check that the spelling and capitalization of the source you created matches with the spelling and capitalization your eval script uses.
|
#25 |
Senior Member
Join Date: Aug 2014
Location: Canada
Posts: 151
|
Thats is what I thought also, but I have my source which is BRCS for the file on everything I have made so far, maybe that is the problem, I am not sure. Am I over using the Source info? Do I have to go somewhere special in the file to register the source? Do pigs fly upside down when they are in martian gravity boots?
While figuring that problem out I started on Deities and came across the problem of how does one set up a domain? I can't find anything on it and can not see a listing for domains anywhere, I may be blind though, its been known to happen to me.. |
#26 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
If your source is "BRCS", then that should be the source tag you look for in the eval script instead of "Birthright".
When you create a deity, one of the buttons in the editor is "Domains Allowed", choose the domains the god grants there. |
#27 |
Senior Member
Join Date: Aug 2014
Location: Canada
Posts: 151
|
The source id is BRCS the name is Birthright, Tried them both and some others but nothing seems to work for me.
I found the Domains allowed section, but I need to make a custom domain, it does not let me fill out the info for the ones in there, just pops in a name, nothing else. No info on domains in the tutorials that I can find. Will continue looking in the forums. |
#28 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Finding out what the source tag is
Step 1 - Develop -> Enable Data File debugging. Step 2 - Develop -> Floating Info Windows -> Show Hero Tags Step 3 - Scroll through the list of tags, until you get to the "source" group. Step 4 - Character -> Configure hero and turn off all sources except your custom Birthright setting one. Step 5 - Scroll back through the list of tags to the source group if necessary. You should be able to spot the tag id pretty easily then. Domains What is giving you trouble? Have you copied an existing domain and looked at that? |
#29 |
Senior Member
Join Date: Aug 2014
Location: Canada
Posts: 151
|
That shows that my source is source.BRCS which is what I am using for the script and it is not registering any ethnicities. I reset the script, got rid of other sources, fresh character, freshly opened herolab, it still says there are no choices for the Ethnicity...
|
#30 |
|
|