It looks like you're new here. If you want to get involved, click one of these buttons!
draw1() {<br />select array element from deck<br />display card1 title;<br />display card1 text;<br />}<br /><br />draw2() {<br />select array element from deck<br />if (card2 == card1) {<br /> redraw };<br />else {<br /> display card2 title;<br /> display card2 text };<br />}<br /><br />draw3() {<br />select array element from deck<br />if ((card3 == (card1 || card2) || (card3.nbr == 10) || (card3 == (2Cups || Star))) {<br /> redraw };<br />else {<br /> display card3 title;<br /> display card3 text };<br />}
txt
, cardNbr
, cardType
, and cardName
. I'm not sure how to recreate that in Twine, and how then to refer to my various array elements' properties in order to keep the player from getting the same card twice. Eventually, I'll want to keep them from being able to draw two of the same type (two Kings, for example), again for Story Reasons. I don't think I quite get using the this.variableName
syntax, or at least I don't know if I get it well enough to use it here. Will I end up using something like this.card1.cardName
? When I create the array, do I want to do the whole thing like,this.1Cups = {<br /> txt: "Unexpected little bit of hope. As though a stranger buys you a cool drink in the middle of a hot day.",<br /> cardType: pip,<br /> cardNbr: 1,<br /> cardName: "Ace of Cups"<br />};
this.0
instead of this.1Cups
at some point, if that's even the syntax.)