• 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

Custom domain help

huntercc

Well-known member
I have a custom domain that is supposed to grant proficiency in all ranged martial weapons... any ideas how I would script that??
 
huntercc wrote:
>
>
> I have a custom domain that is supposed to grant proficiency in all
> ranged martial weapons... any ideas how I would script that??

The best way would be a foreach loop. You want to loop over all the
ranged, martial weapons on the hero, like so:

# Make us proficient with all ranged, martial weapons
var result as number
foreach pick in hero where "wCategory.Range? & wProfReq.Martial"
result = each.assign[Helper.Proficient]
nexteach

Do this at an early phase and priority (like First/10000 or something)
and you should be set.

--
Colen McAlister, colen@wolflair.com
Chief Engineer, Lone Wolf Development
 
Thanks, that does work! I just had to replace your # with a ~ to get it to compile :)

It would be nice in future to be able to specify custom proficiency types, similar to the thread that mentioned firearms. That way when "shopping" for a weapon it won't say "not proficient" in the weapon's description.
 
Now I have a custom domain that grants the Wild Talent feat, plus a free psionic power. When I try to bootstrap the psionic power I get a bunch of errors that say "Linkage pick 'table' not located for current context". That error repeats about 7 times. Is there any way to get the psionic power to display under Spells & Powers, along with the power save DC?
 
huntercc wrote:
>
>
> Thanks, that does work! I just had to replace your # with a ~ to get it
> to compile Smile


D'oh! Too many programming languages on the brain...


> It would be nice in future to be able to specify custom proficiency
> types, similar to the thread that mentioned firearms. That way when
> "shopping" for a weapon it won't say "not proficient" in the weapon's
> description.


Yeah, that's definitely on the list. It was an oversight back when I was
first developing the weapon proficiency stuff years ago, but I should
have considered it.


--
Colen McAlister, colen@wolflair.com
Chief Engineer, Lone Wolf Development
 
huntercc wrote:
>
>
> Any comments on granting a free psionic power to a non-psionic class? Is
> that do-able in HL?


I thought I remembered making that work, but maybe that was only for
spells. I'll look into it and see if we can get a fix out.

Sorry for the inconvenience,

--
Colen McAlister, colen@wolflair.com
Chief Engineer, Lone Wolf Development
 
No inconvenience, I have enough data to enter for my campaign that it could take quite a long time. No other tool out there seems to be as flexible as HL, so I'm more than happy to wait for new features & fixes :)
 
Back
Top