• 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 question

asvaldson

Well-known member
Trying to code a new race my roomate and I created using Oread as a base.

The race counts their charisma as 2 points higher if they have the draconic bloodline as a sorcerer. the script for Oread is as follows


field[abValue].value += 2

~if we have the elemental: earth bloodline
if (hero.tagis[Ability.cSorElem] + hero.tagis[BloodEner.Acid] >= 2) then
~show us on the special tab
perform assign[Helper.ShowSpec]

~add 2 to the effective attribute for the sorcerer class
hero.childfound[cHelpSor].field[cSplAttVal].value += field[abValue].value
endif

~find all of the cleric's earth domain powers, and add +1 extra level
foreach pick in hero from BaseClSpec where "SpecSource.cHelpClr"
if (eachpick.root.tagis[HasDomain.cdEarth] <> 0) then
eachpick.field[xEffectLev].value += 1
endif
nexteach

~note that there are a few bloodline powers that depend on CHA for their uses/day or DC. Those modifications are made on the individual abilities.


What changes to do I need to make to make it fit for my race?
 
I would try this

Code:
field[abValue].value += 2

~if we have the Draconic bloodline
if hero.tagis[Ability.cSorDracon]  >= 1 then
~show us on the special tab
perform assign[Helper.ShowSpec]

~add 2 to the effective attribute for the sorcerer class
hero.childfound[cHelpSor].field[cSplAttVal].value += field[abValue].value
endif

~note that there are a few bloodline powers that depend on CHA for their uses/day or DC. Those modifications are made on the individual abilities.

You basically have to adjust the bloodline requirement (the Oread requirement was double: one for the Elemental bloodline, and one for Earth), and remove the part about improving cleric DCs.
 
Last edited:
I feel stupid, thank you so much for your help. I actually found a race to steal their coding that was more accurate to what I wanted. The Tiefling's Fiendish sorcery was EXACTLY what I needed, and was worded in such a way that I just had to replace the Infernal and Abyssal bloodlines with Draconic and Linnorm in the coding.

I wish I knew more about script languages. I can do data entry, but tearing apart the script in Hero Labs and putting something together that does what I want is TIME CONSUMING lol.
 
Back
Top