Some settings or house rules have a Skill Rating maximum that is dependent upon the character's Rank. This can be done by making a mechanic that has a Source that has the given setting/house rule set checked.
The example below makes it so that a Novice can only get d8 in a skill rating. It increases to d10 at Seasoned. It increases to d12 at Veteran.
Pre-Traits 5000
Code:
var xp as number
var skillMax as number
xp = hero.child[resXP].field[resMax].value
skillMax = 4
~Determine the skillMax bonus by XP value.
if (xp >= 20) then
skillMax +=1
endif
if (xp >= 40) then
skillMax +=1
endif
~Apply the skillMax to each skill.
foreach pick in hero from Skill
eachpick.field[trtMaximum].value = skillMax
nexteach