Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
How do I do the following?
Set a prerequisite the requires any 4 arcane powers.
Script it so that an arcane background gets 1 power and 4 power points each ranks.
An arcane background that gets 1 skill points every time a new power edge is taken.
Set a prerequisite the requires any 4 arcane powers.
Script it so that an arcane background gets 1 power and 4 power points each ranks.
var xp as number
var modifier as number
xp = hero.child[resXP].field[resMax].value
modifier = 1
~ Determine XP table
if (xp >= 20) then
modifier += 1
endif
if (xp >= 40) then
modifier += 1
endif
if (xp >= 60) then
modifier += 1
endif
if (xp >= 80) then
modifier += 1
endif
~ Apply the bonus
#resmax[resPowers] += modifier
modifier = modifier*4
#trkmax[trkPower] += modifier
I would either have this as part of the Arcane Background edge, an edge, or a mechanic (if it is universal or you want to just check on an existing edge -- like see if Arcane Background: Magic).An arcane background that gets 1 skill points every time a new power edge is taken.
var modifier as number
modifier = 0
~Check for New Power Edges
foreach pick in hero from Edge
if (eachpick.tagis[Edge.edgNewPwr] <> 0) then
modifier += 1
endif
nexteach
~Apply modifier to skills
#resmax[resSkill] += modifier
perform #resspent[resSkill,-,modifier,"Free Skill"]
perform #traitadjust[skSpellcst,+,modifier,"Spellcasting d6"]
hero.child[skSpellcst].field[trtMaximum].value += modifier