I am basically running everything through a StoryInit passage so everything has a default setting essentially. I have a player object in there with default values than can be changed via a point buy passage. The stat point buy works fine and stats change no problem. However the player object ability scores are not setting, they remain at a 0. I will post everything below.
<<set $player to {
name: "Hiro",
MVIT: 0,
VIT: 0,
STR: 10,
STRmod: 0,
DEX: 10,
DEXmod: 0,
CON: 10,
CONmod: 0,
INT: 10,
INTmod: 0,
WIS: 10,
WISmod: 0,
CHA: 10,
CHAmod: 0,
} >>
<<if $player.STR lte 1>>
<<set $player.STRmod to -5>>
<<elseif $player.STR == 2 or $player.STR == 3>>
<<set $player.STRmod to -4>>
<<elseif $player.STR == 4 or $player.STR == 5>>
<<set $player.STRmod to -3>>
<<elseif $player.STR == 6 or $player.STR == 7>>
<<set $player.STRmod to -2>>
<<elseif $player.STR == 8 or $player.STR == 9>>
<<set $player.STRmod to -1>>
<<elseif $player.STR == 10 or $player.STR == 11>>
<<set $player.STRmod to 0>>
<<elseif $player.STR == 12 or $player.STR == 13>>
<<set $player.STRmod to 1>>
<<elseif $player.STR == 14 or $player.STR == 15>>
<<set $player.STRmod to 2>>
<<elseif $player.STR == 16 or $player.STR == 17>>
<<set $player.STRmod to 3>>
<<elseif $player.STR == 18 or $player.STR == 19>>
<<set $player.STRmod to 4>>
<<elseif $player.STR == 20>>
<<set $player.STRmod to 5>>
<</if>>