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)
-   -   Linking to a skill that hasn't been picked? (http://forums.wolflair.com/showthread.php?t=62476)

EightBitz April 20th, 2019 06:59 PM

Linking to a skill that hasn't been picked?
 
I want to be able to pick a "Specialization" and pull the name for the related "Skill" without having to pick the skill. Is there a way to do this?

If I use a linkage, the linkage throws an error if the specialization is picked without the skill.

I looked through the "Location, location, location" post, and I didn't see anything that looked relevant. Though, I could have easily missed it.

I could just add a literal value, but I want a way to avoid typos and to automatically adapt to changes (e.g. if I change the skill name later, or something like that).

Basically, I want to be able to pull the name of an unpicked skill by referencing its id.

Duggan April 21st, 2019 08:34 AM

Hmm... my gut feeling is that you're probably going to be best off adding all skills to the player, and then using a tag to track whether they've chosen it, and thus it shows up. That way, it's there for you to run the query against, but the player can still "pick" it.

Mathias April 21st, 2019 01:45 PM

I don't know enough details to recommend a solution. Without knowing what it means in this system to not have a skill, but to have one of its specializations, I don't know whether linkages are the best option for this. The first alternative I'd look at if they don't turn out to be needed is identifying the skills by tag, not by linkage.

Duggan June 18th, 2019 05:46 AM

FWIW, for the Specializations in Planet Mercenary, I tagged each of them with the relevant skill, primarily so that I could limit the list to the relevant skill (and do the math to ensure that they don't have more specializations than skill points). That said, everyone has every skill, so it's not a strict match to what you have.

TCArknight June 18th, 2019 07:57 AM

Quote:

Originally Posted by Duggan (Post 278297)
Hmm... my gut feeling is that you're probably going to be best off adding all skills to the player, and then using a tag to track whether they've chosen it, and thus it shows up. That way, it's there for you to run the query against, but the player can still "pick" it.

If every character is considered to have all the skills anyway, then this is probably your best approach.

Otherwise, does the Specialization have the Skill.? tag for it’s parent? You might be able to do something like this then:
Code:

var mySkill as string
myTags as string
myTags = tagids[Skill.?,”|”]

foreach thing from Skill where mySkill
  mySkill = eachthing.field[name].text
  nexteach

that way, I believe, mySkill will contain the name of the Specialization’s parent Skill


All times are GMT -8. The time now is 04:32 PM.

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