• 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

...and a couple quick ones...

Lord Magus

Well-known member
...since it's getting late and I need to sleep!

1) How can I grant a race a higher number of creation points (to use with the point buy method for attributes), for example +4 points?

I have tried
Code:
hero.child[tGen].field[Bonus].value = hero.child[tGen].field[Bonus].value + 4
as well as
Code:
#applybonus[Bonus, hero.child[tGen], 4]
based on the Show Fields feature identifying the Generate field as tGen, but the Editor tells me tGen is a non-existent thing.

2) How can I code as a prereq "having at least one Martial Weapon proficiency", whichever the origin (in my campaign, Skill Tricks can be used to gain a single Martial Weapon proficiency)?

Thanks again!
 
Thanks Kendall-DM for the help.
However, it still gives me a syntax error:

"Only derived fields can generally be modified via scripts (field tGen)"
 
Put trustme before it. Be careful when using trustme, it allows the program to do things that are likely having other unseen effects. Since tGen is not derived, then HL is setting it and doesn't think it is a good idea to change it.
 
DON'T Add something with trustme. You are modifying a user-set field, and are adding to it. EVERY time HL recalculates the character (that's after every time the user changes something), 4 more will be added to the field. You'll have to set the value equal to if you want to do this.
 
For #2, from a Pre-req on my Abjurant Champion PrC
~ We are valid if we have the Martial Weapon Proficiency feat (either version).
validif (#hasfeat[fWepMart] <> 0)
validif (#hasfeat[fMartial] <> 0)

~ Or if we have a weapon that requires Martial, and we are proficient
foreach pick in hero from BaseWep where "wProfReq.Martial"
validif (each.tagis[Helper.Proficient] <> 0)
nexteach
 
Thanks, this is working almost perfectly!

However,
1) How could I code a validif for characters having the (house-ruled) skill trick granting a Martial Weapon proficiency? "#hasskilltrick" doesn't work
2) For the second part of your script, it considers you're proficient in the weapon only if you have one in your weapon list. For example, an elven rogue would be considered as proficient in the longsword only if he actually carries one (not necessary to actually equip it), otherwise the racial proficiency does not register.

Thanks!
 
1) Figured it with childlives[] <> 0

2) Still pending

...and still looking for a way to modify that creation point budget.
 
Back
Top