How to make conditional options appear/disappear in a choice

Hi folks. I am trying to allow a player to name the roles of their caregivers.

Let’s say, for sake of argument, they are:

  • Your mother
  • Your father
  • Your aunt
  • Your uncle

After that is set, I want them to have the option of adding a second caregiver. I want to change the above list so that if, say, they selected mother, on the second list it would read instead “Your other mother”.

I see I can use *selectible_if but I am not clear how to actually change the language in the option. Can I somehow code it to show:
Your (if X=mother show “other”) mother
?

2 Likes

Hi Barry –

I moved your thread to the Choice Script Help forum, so more eyes and people willing to help will see your post.

1 Like

You can use multireplace, it works as a ternary if you use a boolean for input.

You @{(X = "mother") other | } mother. 
1 Like

Perfect. That did the trick. Thank you.

Thank you. I could not find such a forum. In fact, I still can’t find it. Can you please advise?

It’s a forum category tag, not a totally different site.

The one called CS-updates?

This topic was automatically closed 24 hours after the last reply. If you want to reopen your WiP, contact the moderators.