Twine Version: 2.3.9
Story Format: 2.31.1
I imagine the answer to my dilemma is probably not that complicated but… I have made a collection of 4 items in a game, and I want the player to get a small benefit if he/she has all four. The individual items are simple variables written in Sugarcube (nothing fancy;
$oneill, $carter, $jackson, and $tealc). The game already checks to see if the player has the item or not, and whether he/she can afford the individual item, and displays the same text but without the link if they can’t. Normally, I’d simply add the +=1 to
$Charisma in the link but since this hinges on having all four items, I’m not really sure how to handle it.
Can I add an
<<if>> statement in the
[[link]] or should I use a
<<link>> instead, and if so, how do I write that so it works? I have also considered the option of simply expanding the choices with additional
<<if $oneill eq 1 and $carter eq 1 and $jackson eq1>>[[Buy the Teal'c figure|passagename][$cash-=x; $charisma+=1]] for each of them but it seems like a lot of work. What’s the easiest way to this guys, not including JS?