Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Authoring Kit (http://forums.wolflair.com/forumdisplay.php?f=58)
-   -   Default selection on chooser? (http://forums.wolflair.com/showthread.php?t=47795)

TCArknight December 23rd, 2013 06:20 PM

Default selection on chooser?
 
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

Mathias December 24th, 2013 07:36 AM

Here's the page of the Savage Worlds walkthrough in the wiki where Human is made the default race for the Savage Worlds game: http://hlkitwiki.wolflair.com/index.php5?title=Races_and_Racial_Abilities_(Savag e)

TCArknight December 24th, 2013 10:53 AM

Thanks Mathias!

I was looking at the portal and table itself and never thought of putting it in the bootstrap.1st entry...

Mathias December 24th, 2013 11:11 AM

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.

Mathias December 24th, 2013 11:14 AM

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.

TCArknight December 24th, 2013 01:09 PM

How would you do it for a menu_literal? I tried: <autoadd value="5" portal="techlvl"/>
, but I got:
Quote:

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:
Quote:

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

Mathias December 25th, 2013 10:17 AM

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"/>


All times are GMT -8. The time now is 12:07 AM.

Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.