That one worked a treat thanks!
However I have one last thing about this, I have tried to duplicate it for a similar outcome with a 'Player Class' instead of skills.
Choose a Character Class
<<nobr>>
<<set $choices to [
"Class 1",
"Class 2",
"Class 3",
"etc",
"etc",
"etc",
]>>
<<set $pcClass to []>>
<<for _i to 0; _i lt $choices.length; _i++>>
<<capture _i>>
<<linkreplace "$choices[_i]">>
<<set $pcClass.classDescription.push($choices[_i])>>
<<if $pcClass.classDescriptionlength gte 1>><<goto "...">><</if>>
<</linkreplace>>
<</capture>>
<br>
<</for>>
<</nobr>>
I have altered the code for one choice only correctly I think, but the following part I must have to match the inventory code:
$playerClass.classDescription
Is causing errors, saying it cannot read .push.
I'm not sure of the intricacies of this one, as normally the variable doesn't have the extra .classDescription on it.
What wizardry am I miscasting here?