• 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

Script to populate checkbox

BoomerET

Well-known member
I have a checkbox
<field
id="chkProf"
name="Proficient in skill"
type="user"
defvalue="0">
</field>

I want to set this to a one when the user choose a specific background (D&D 5th Edition)

But I keep getting the message that it can't be modified via script.

I know I've worked around this before, but I'm at a complete loss.


BoomerEt
 
Maybe I'll do something besides a checkbox. Let user select it from another tab, and populate my skills tab.

Sorry to bother.
 
I did this a little differently.

In the template (in the tab_basics file), I have:
<portal
id="held"
style="chkNormal">
<checkbox field="sklHeld"/>
</portal>

This points to an update I made in traits.str under Skills:
<!-- Field to support player selection of a skill as "held" -->
<field
id="sklHeld"
name="Skill Held"
type="user"
maxlength="0"
defvalue="0">
</field>


Does that help at all?

PG
 
Thanks KF, but with recent announcements about 5E possibly coming officially to HL, I've stopped work on it.


BoomerET
 
Back
Top