I’m having trouble with *hide_reuse when working in CSide (and I have now been doing any kind of coding for a grand total of four days, so apologies if the answer is obvious!).
It isn’t throwing an error, it just isn’t doing anything at all. If I replace it with selectable_if, that works fine. But hide_reuse doesn’t do anything. I’ve tried adding it to the start of each #choice line, putting it on its own line ahead of each choice, and putting a global *hide_reuse at the start of the scene. No matter what I do, the choices continue to be visible.
My code looks like this:
```
*choice
*hide_reuse #I'll travel to Middle Earth and see if Thorin would like to help me.
${companion} find yourself in Hobbiton on a bright, cheerful morning. You're in the garden at Bag End. Bilbo is hanging out his washing, and Gandalf is sitting in an outdoor chair blowing smoke rings.
```
Incidentally, I’m aware this would be a copyright nightmare - it’s not for publication. I’m just writing a little story for my daughter while I learn to use CS.
Example
*commend
Indent
2 Likes
I really don’t know what’s wrong. I’m sorry.
*label LoTR
*choice
*hide_reuse #I'll travel to Middle Earth and see if Thorin would like to help me.
${companion} find yourself in Hobbiton on a bright, cheerful morning. You're in the garden at Bag End. Bilbo is hanging out his washing, and Gandalf is sitting in an outdoor chair blowing smoke rings.
*goto LoTR
*hide_reuse #Frobo!
Bilbo! Forbo! Bibo! Fobo! And on and on.
*goto LoTR
*hide_reuse #My Precious!
It's mine! Filthy hobbitses!
*goto LoTR
*hide_reuse #blankchoice1
Blankets are cool, Gandolf!
*goto LoTR
*hide_reuse #blankchoice2
I really liked the movies. No matter how changed they were.
*goto LoTR
*page_break
Works just fine. I don’t run into any issues.
Here:
If you go to your ChoiceScript folder^
Go to your scenes^
Enter the code like this^
Run the server^
Have this black box flash for a second^
And have it open a new tab or window with your game^
That when you select an option,
They don’t stay gone?
2 Likes
ahem, do you exactly know what *hide_reuse is used for?
it is used to hide an option after being used once
so, to check whether *hide_reuse is working: you need to use that choice once, and recall that choice again to see whether it they’re still there or get hidden
1 Like
*hide_reuse and *disable_reuse reset once you goto a different scene. If you’re goto-ing back and forth this might be the reason.
5 Likes
Thanks so much for trying, friends! I tried dropping just this bit of the story into its own scene and it works fine, so I must have done something weird earlier in the page that was messing it up. I’ll let you know if I find it.
1 Like