• 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

Were you bootstrapped?

barrelv

Well-known member
part of the system I'm modeling involves a set of skills that automatically show up when you first pick a career. Later, you get more points to buy or increase skills.

I have a resource called resOSkill that tracks the number of skill points the user has to spend. When a new skill THING gets added I use the following code:
Code:
#resspent[resOSkill] += 1

Now, the problem I'm running into is that I specifically *don't* want this to happen when I'm adding something due to the class (right now I'm bootstrapping these things within the career THING). When I bootstrap things, I end up instantly with skills over-spent. I know I could just increase the skills resource every time I bootstrap the skill, but that seems like not the right way to go about this.

So my question, is there anything I can do to determine if the skill thing is being added by a bootstrap in the career THING or by a table on the skills tab and use that to determine if I want to increase the resspent resource or not?
 
Last edited:
Take a look in the Skeleton files at the Ability component (traits.str). See how it's script #1 starts with a comment of "~we must ignore bootstrapped abilities from races and abilities added via advances"?

Line 220 if you're looking at an un-modified copy.

Take a look at the line of code just after that - you'll see how it determines whether the item was added by the user or added through a displaced pick (which is how advancements function).
 
Okay, thanks - that makes a lot more sense. the adding the two things together just seemed odd.

You've been a big help with this, thank you so much.
 
Back
Top