Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Authoring Kit
Register FAQ Community Today's Posts Search

Notices

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

Old December 9th, 2013, 02:07 PM
When the user adds a rank to their career, or adds their race, or adds anything else that contains advancement information about the Awareness skill, a new copy of the awareness skill is bootstrapped from that pick. This copy has a tag that means "set activated = 0 so any scripts on us don't run, and hide us in all tables."

This copy of awareness also has an autotag added to it that means 1st advance costs 200, or it has a field that means the same, and stores that cost value. Or, if this is one of the character's later advances, it might list the cost of the second or third advance instead.

Now, when you're adding the "Add New Skill" advancement, the advancement scripts will look for copies of themselves that are already on the hero and have the "we're an advancement helper" tag on them. They will foreach through all the existing copies, find the cheapest version, and set that as the cost of this advancement. So, when the user chooses Awareness as the skill they're adding, yet another copy of that skill is added to the character, but this one's a real copy, and is shown on the tables. Or, if it's the second or third time this character has selected Awareness, it adds +10 to the value of the main copy of Awareness.
Mathias is offline   #21 Reply With Quote
RavenX
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,633

Old December 9th, 2013, 02:14 PM
Quote:
Originally Posted by Mathias View Post
When the user adds a rank to their career, or adds their race, or adds anything else that contains advancement information about the Awareness skill, a new copy of the awareness skill is bootstrapped from that pick. This copy has a tag that means "set activated = 0 so any scripts on us don't run, and hide us in all tables."

This copy of awareness also has an autotag added to it that means 1st advance costs 200, or it has a field that means the same, and stores that cost value. Or, if this is one of the character's later advances, it might list the cost of the second or third advance instead.

Now, when you're adding the "Add New Skill" advancement, the advancement scripts will look for copies of themselves that are already on the hero and have the "we're an advancement helper" tag on them. They will foreach through all the existing copies, find the cheapest version, and set that as the cost of this advancement. So, when the user chooses Awareness as the skill they're adding, yet another copy of that skill is added to the character, but this one's a real copy, and is shown on the tables. Or, if it's the second or third time this character has selected Awareness, it adds +10 to the value of the main copy of Awareness.
I'm thinking of using a Field since the user will need to be able to specify the value of the XP on Elite versions of the advance. Would you recommend using tags instead?

RavenX Pronouns: She/Her

Please do not PM me to inquire about datafiles I coded "for personal use" such as Exalted, World of Darkness, AD&D, or Warhammer 40K Roleplaying. I appreciate your interest, but I do not own the Intellectual Property rights to these game systems. Nor do I have permission from any of the Publishers to distribute the data files. As such, I cannot distribute the work I have done with community on these files. They are "for personal use" only. Thank you.

I am far too busy these days to answer emails. If you message me here there is no guarantee I will get back to you at all.
RavenX is offline   #22 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old December 9th, 2013, 02:19 PM
Quote:
Originally Posted by RavenX View Post
I'm thinking of using a Field since the user will need to be able to specify the value of the XP on Elite versions of the advance. Would you recommend using tags instead?
The cost actually paid is stored on the advancement itself. The base cost is looked up from the "advancement helper" copy of the skill. So, since they're in different places, whether the base cost is stored as a tag or as a field doesn't impact how the cost paid is stored.
Mathias is offline   #23 Reply With Quote
RavenX
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,633

Old December 9th, 2013, 02:32 PM
Quote:
Originally Posted by Mathias View Post
The cost actually paid is stored on the advancement itself. The base cost is looked up from the "advancement helper" copy of the skill. So, since they're in different places, whether the base cost is stored as a tag or as a field doesn't impact how the cost paid is stored.
so what you're saying is I can repurpose the existing field advCost field to store the XP paid instead of slots. And I need to basically build advancement helpers to store XP costs. now this is starting to make sense to me. I have the XP cost of psychic powers stored on the powers themselves since those are a flat rate and don't change.

RavenX Pronouns: She/Her

Please do not PM me to inquire about datafiles I coded "for personal use" such as Exalted, World of Darkness, AD&D, or Warhammer 40K Roleplaying. I appreciate your interest, but I do not own the Intellectual Property rights to these game systems. Nor do I have permission from any of the Publishers to distribute the data files. As such, I cannot distribute the work I have done with community on these files. They are "for personal use" only. Thank you.

I am far too busy these days to answer emails. If you message me here there is no guarantee I will get back to you at all.
RavenX is offline   #24 Reply With Quote
RavenX
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,633

Old December 12th, 2013, 03:06 PM
Mathias,

I've started to build these XP helper items that will store the costs. Should I use a tag system for handling skill and talent costs? Like a tag choice for (Trained, +10, +20)?

RavenX Pronouns: She/Her

Please do not PM me to inquire about datafiles I coded "for personal use" such as Exalted, World of Darkness, AD&D, or Warhammer 40K Roleplaying. I appreciate your interest, but I do not own the Intellectual Property rights to these game systems. Nor do I have permission from any of the Publishers to distribute the data files. As such, I cannot distribute the work I have done with community on these files. They are "for personal use" only. Thank you.

I am far too busy these days to answer emails. If you message me here there is no guarantee I will get back to you at all.
RavenX is offline   #25 Reply With Quote
Reply


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 07:43 PM.


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