View Single Post
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321

Old December 14th, 2020, 09:14 AM
And a different question.

The Lifepath Module component has an Index field which looks at a field on the hero to set it's value.
Code:
    <field
      id="lpIndex"
      name="Index"
      type="derived"
	  defvalue="0">
	  <calculate phase="Initialize" priority="1000"><![CDATA[
	    if (tagis[LifepathCat.Tour] <> 0) then
		  herofield[acLPTours].value += 1
		  @value = herofield[acLPTours].value
		 endif
        ]]></calculate>
      </field>
The idea is that the first tour will have the lpIndex = 1, then the next one will have a 2, etc. However, what I'm seeing is that if, for example, module Liberal Arts is taken first, initially it will have an lpIndex = 1. But, if say the hero joins the military and takes Combat Arms next, suddenly Liberal Arts will have an lpIndex = 2, and Combat Arms will be lpIndex = 1.

Working on -
  • (SWADE) WIP Savage Rifts
  • Savage Rifts (Deluxe): Update link in This post
  • Star Trek Adventures: Update link in This post
TCArknight is offline   #25 Reply With Quote