Twine Version: 2.3.5
Story Format: 2.30
I have this as my pre-set character
<<set $pcSkills to {
spotHidden: "Spot Hidden",
}>>
And it works great for this:
You open draws and scatter items about as you try to find notes, clues or documents that may reveal secrets about the deadly duo who attacked you.
<<nobr>>
<<if $pcSkills.spotHidden>>Your sharp eye misses nothing.
<<else>>You find nothing.<</if>>
I have this in the custom character creation passage via mouse clicking on selections:
Choose 2 Skills from the list:
<<nobr>>
<<set $choices1 to [
"Marksmanship",
"Spot Hidden",
"Charm",
]>>
<<set $pcSkills to []>>
<<for _i to 0; _i lt $choices1.length; _i++>>
<<capture _i>>
<<linkreplace "$choices1[_i]">>
<<set $pcSkills.push($choices1[_i])>>
<<if $pcSkills.length gte 2>><<goto "Custom Character Creation 3">><</if>>
<</linkreplace>>
<</capture>>
<br>
<</for>>
<</nobr>>
On the next screen I have to show it’s been selected:
You are skilled in:
@@.skill;''<<for _skillValue range $pcSkills>>
_skillValue
<</for>>''@@
Great!
So with this done later in the story I want to have some text and stuff to appear IF the character has say ‘Marksmanship’ or ‘Spot Hidden’ as it did before with the preset character.
What would I do to make this:
You open draws and scatter items about as you try to find notes, clues or documents that may reveal secrets about the deadly duo who attacked you.
<<nobr>>
<<if $pcSkills.spotHidden>>Your sharp eye misses nothing.
<<else>>You find nothing.<</if>>
Work yet keep the clickable selection? Or am I SOL with this whole thing?