Thread: d6 Star Wars
View Single Post
ob1knorrb
Member
 
Join Date: Oct 2013
Posts: 30

Old February 5th, 2014, 12:55 PM
A couple of clarifications
Should the type for "advCost" be "static" or "derived"

In the CanAdvance component in advancement core, should the script be an "Eval" or a "Calculate"?

Right now I have advCost set to be "derived" and have an Eval Script. It didn't seem to be recognizing the Advance.Increase tag so I'm using Advance.Gizmo. I still have the problem of it recalculating the cost when I add a new advancement. I'll double check the ordering of my scripts again.

Code:
<eval index="5" phase="Traits" priority="5500"><![CDATA[
	  if (tagis[Advance.Gizmo]<> 0) then
         origin.parent.field[advCost].value = round(linkage[basis].field[sklRoll].value/3, 0, -1)
		 debug "NEW advCost: " & origin.parent.field[advCost].value
		 debug "NEW sklRoll: " & linkage[basis].field[sklRoll].value
	  elseif (tagis[Advance.AddNew] <> 0) then
	    origin.parent.field[advCost].value = 1
		 endif
      ]]></eval>
ob1knorrb is offline   #83 Reply With Quote