Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Happy to help
|
#11 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,633
|
I am coding up another feat, this one lets the user pick one of their "Non-Class" Skills and make it into a Class skill. Since I was able to get the last feat working with pull downs, this should somewhat similar, I just need to know how to have hero lab only display skills that are not class skills for the current character to get this feat working.
|
#12 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Skills which are class skills have the Helper.ClassSkill tag on them, so your expression wants to look for base skills, on the hero, that lack that skill.
You can do this by "Restrict First List to..." to "All picks on hero". Then put in "component.BaseSkill & !Helper.ClassSkill" for the candidate expression. |
#13 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,633
|
ok so the ! tells hero lab to look in the other subset of data instead of the class skills. Cool. Thank you for that.
|
#14 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
The "!" means "Not" so:
"component.BaseSkill & !Helper.ClassSkill" means "Has the BaseSkill Component and not the Helper.ClassSkill tag" |
#15 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,633
|
Alright that makes sense to me.
Came across another feat I need help on. This time the prerequisite is Wisdom 13+, which I know how to code, but once the feat is taken the character suffers a permanent drain of 2 Wisdom. I need a way to code this so that the character still retains the benefits of the feat, even if the wisdom drops below the 13 threshold from taking it. Also how would I switch hit points over from Con mod to Int mod? I found a wizard feat that does this for 1st level and I am a bit perplexed as to how to approach this one. Last edited by RavenX; May 13th, 2012 at 09:02 PM. Reason: Added Question |
#16 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,633
|
So far this is what I was able to come up with. I could not get this code working but I think it is a start to what needs to be done...
post levels 10000 Code:
if (hero.child[Totals].field[cLvlIndex].value = 1) then var chi as number chi = hero.child[aCON].field[aModBonus].value container.child[Totals].field[tHP].value -= chi var phi as number phi = hero.child[aINT].field[aModBonus].value container.child[Totals].field[tHP].value += phi endif |
#17 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,633
|
Also I had another question,
Regarding Ethinicities, where in the editor do those go? And can they be made available to races other than human? |
#18 |
Senior Member
Join Date: Dec 2009
Location: Independence, Mo
Posts: 797
|
You go to races, I made one for elfs called Elvenkind and then used this script
~if we have the HRs source enabled, we have special abilities if (hero.tagis[source.HousRules] <> 0) then ~we get one ethnicity pick field[rGiveSpec].value = 1 endif you have to change the source and the HRs ( stands for house Rules) and then go to R cust Specials and make your race such as wood elf, Grey elf etc. and pick the creature sub type such as Mine is elvenkind. there might be an easier way but it worked for me. I made humans with an uncivilized and civilized humans. Works great. I can sent you my house Rules file if you like to see what I have done and maybe you might find out a better way to do it. Last edited by jbearwillis; May 14th, 2012 at 07:30 PM. |
#19 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,633
|
I am trying to figure this out as a way to deal with Starting Regions in Faerūn. I am thinking if I do something like Ethnicities I could easily incorporate starting regions and the benefits that these give to the player.
|
#20 |
|
|