I have a simple lucktest running now and am trying to use the $ {texthere} command to reflect the score
No matter what I try, the text only updates with lucky, even though the unlucky option is working
In startup I have created
*create lucky false
*create lucktext “lucky”
I have also set Luck to 1 so as to ensure an unlucky result for testing
Here is the $ code:
#Sneak upstairs
*label sneakup
*set snuck_stairs +1
*choice
#Test your luck
*gosub lucktestgosub
You have been ${lucktext} with a score of ${luck}
*choice
*selectable_if (lucky = true) #Lucky
You loiter around until Bill is distracted and so on
Interestingly, if I set lucktext in the gosub from “” to eg “balloon” it doesn’t change the text, it still reads balloon
If I change the lucktext in startup to *create lucktext “” then I get no text
In the startup you have something like *create luck 1, right? Is “luck” here in uppercase or lowercase?
And is the whole gosub stuff in the same textfile as the rest of the scene?