I'm working on a blackjack mini-game from scratch, for the sake of learning how things work under the hood a bit better, but I'm stuck on a conditional branch. I've got two variables (Card 1 and Card 2) that are randomly generated and added together for your initial hand. Before you get a chance to hit or stay, I want to check that you don't already have 21 from having drawn an ace and a face card.
Under the conditional branch, I was using the script
$gameVariables.value(201) == n && $gameVariables.value(202) == n
but how would I format the n value so it only accepts a 1 or a 10 in each, while rejecting a 2 through 9?
(I realize this setup also means the game thinks a 20 is blackjack. One step at a time)
Under the conditional branch, I was using the script
$gameVariables.value(201) == n && $gameVariables.value(202) == n
but how would I format the n value so it only accepts a 1 or a 10 in each, while rejecting a 2 through 9?
(I realize this setup also means the game thinks a 20 is blackjack. One step at a time)