• 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

Default selection on chooser?

TCArknight

Well-known member
I have a chooser selection for race and I want to automatically select the Human race. Is there a defvalue setting I can use or another way to default the selection?

Thanks!
TC
 
Thanks Mathias!

I was looking at the portal and table itself and never thought of putting it in the bootstrap.1st entry...
 
I think TCArknight figured out the error, but if the link isn't working, add a ) to the end of the address - this forum has a bug detecting the ) at the end of a pasted in hyperlink, and I thought I fixed it, but it doesn't seem to be working correctly now.
 
Defaults for menu fields are set in the portal, but an actual pick that's added to the character goes in bootstrap.1st - both the permanent bootstraps and the defaults for choosers.
 
How would you do it for a menu_literal? I tried: <autoadd value="5" portal="techlvl"/>
, but I got:
Hero Lab was forced to stop compilation after the following errors were detected:

File: bootstrap.1st (line 70) - Unrecognized attribute 'value' in element 'autoadd'

The portal is:
<portal
id="techlvl"
style="menuNormal">
<menu_literal
field="perTL">
<choice value="0" display="- Choose -"/>
<choice value="1" display="1"/>
<choice value="2" display="2"/>
<choice value="3" display="3"/>
<choice value="4" display="4"/>
<choice value="5" display="5"/>
<choice value="6" display="6"/>
<choice value="7" display="7"/>
<choice value="8" display="8"/>
<choice value="9" display="9"/>
<choice value="10" display="10"/>
<choice value="11" display="11"/>
<choice value="12" display="12"/>
</menu_literal>
</portal>
 
If you're using a menu_literal, that's even easier to set a default for.

Go to the thing. Set a fieldval for this field's value:

<fieldval field="perTL" value="5"/>
 
Back
Top