Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Authoring Kit

Notices

Reply
 
Thread Tools Display Modes
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 11,791

Old July 16th, 2017, 09:43 AM
I think Shadowrun's approach to specialties is what I'd recommend, but I'd also recommend coming back to that in a little while - get more experience in building tag expressions first, because the way the specialties are handled is complex behind the scenes.
Mathias is online now   #21 Reply With Quote
Duggan
Senior Member
Volunteer Data File Contributor
 
Join Date: Nov 2009
Posts: 904

Old July 16th, 2017, 01:21 PM
Oh, I thought they were using a pick... I would like to be able to display the X items (the most there are is 7, with most being 3-4 specialities possible, with two having the ability to pick a particular one multiple times with different specialties). I think that their example should give me the capacity to set up the multiple items to pick from a list. ^_^ But, as you say, there's time to return to this. I still need to clean up the Basic screen, implement Command Packages and Backgrounds (which I think I'll do in a slightly more limited form to avoid the choices at first), and implement basic gear choices.
Duggan is online now   #22 Reply With Quote
Duggan
Senior Member
Volunteer Data File Contributor
 
Join Date: Nov 2009
Posts: 904

Old July 17th, 2017, 02:05 PM
How does one use an "arrayval"? According to the documentation, a Thing may have zero or more arrayvals, and that matches the DTD, but when I try to build one, I get an error message of "Encountered unknown element tag 'arrayval'", which seems to suggest that it's not a valid tag. Here's a Skill which uses it, and the relevant field in the trait file.

Quote:
<thing
id="skCarbine"
name="Carbines"
compset="Skill"
isunique="yes"
description="Use your Carbines skill when firing carbine class weapons. As the weapons most commonly issued to infantry, carbines offer versatility and lethality. They are designed for quick carry, ease of use, and close-quarters action">
<fieldval field="trtAbbrev" value="Car"/>

<arrayval field="trtSpec" index="0" value="Beam"/>
<arrayval field="trtSpec" index="1" value="Non-Lethal"/>
<arrayval field="trtSpec" index="2" value="Projectile"/>

<tag group="Skills" tag="Combat"/>
</thing>
Quote:
<component
id="Skill"
name="Skill"
autocompset="no"
panellink="skills">

<field
id="trtSpec"
name="Specialty"
type="user">
</field>

....
Duggan is online now   #23 Reply With Quote
Duggan
Senior Member
Volunteer Data File Contributor
 
Join Date: Nov 2009
Posts: 904

Old July 17th, 2017, 02:33 PM
Check that... the above code works. It was flagging the next one down. Apparently, one can't have a tag preceding the arrayvals.
Duggan is online now   #24 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 11,791

Old July 17th, 2017, 02:37 PM
Are you sure that one is where you encountered the problem? It should give you a line number for that error - you're sure it's coming from this skill, and not one of the other skills?

Also, weren't you going to wait on the specialties? Why implement them as an array now, if you're going to do them properly later on?
Mathias is online now   #25 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 11,791

Old July 17th, 2017, 02:37 PM
Quote:
Originally Posted by Duggan View Post
Check that... the above code works. It was flagging the next one down. Apparently, one can't have a tag preceding the arrayvals.
Yes, the order of elements listed on that page of the wiki you linked to is the order that they must be listed in.
Mathias is online now   #26 Reply With Quote
Duggan
Senior Member
Volunteer Data File Contributor
 
Join Date: Nov 2009
Posts: 904

Old July 17th, 2017, 03:38 PM
Quote:
Originally Posted by Mathias View Post
Are you sure that one is where you encountered the problem? It should give you a line number for that error - you're sure it's coming from this skill, and not one of the other skills?

Also, weren't you going to wait on the specialties? Why implement them as an array now, if you're going to do them properly later on?
I already had them in as arrays. This was just me realizing that I could do a search and replace and make them function to some small degree.
Duggan is online now   #27 Reply With Quote
Duggan
Senior Member
Volunteer Data File Contributor
 
Join Date: Nov 2009
Posts: 904

Old July 18th, 2017, 07:04 AM
So, right now, I have all of the skills in. I have the common PC races, the backgrounds and the command packages (albeit without being able to choose those either-or values). I have the derived values. I'm not certain whether I'm better off starting to input gear, tackle skill specialties, advancement, or Companies (which, as mentioned here might involve complexities of two different "character types").

I'm also finding myself considering how I might improve things to make this all more editable in the Editor. For one, the hardwiring of skill ranks and such for Races, Command Packages, and Backgrounds feels like it could be implemented more smoothly so that someone could go into the Editor and simply change values in there instead of changing the eval function.
Duggan is online now   #28 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 11,791

Old July 18th, 2017, 07:59 AM
I'd implement the editor tabs for what you've already done. That way, you'll be familiar with the editor, so that when you're ready to move on to gear, you can set up the fields and component scripts that are needed, then set up the editor tab for that section, and then use the editor to code everything, which means you don't need to worry about things like what order <arrayval> and <tag> come in within the thing definitions - the editor handles that for you.
Mathias is online now   #29 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 10:45 AM.


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