How to make a choice hidden?

Hello, do you have idea how to make one of the choices given reachable only if they have certain number of point or only if a condition is realized.

1 Like

From what I have learned, there are two main methods:

  • An option that is visible but not selectable unless a condition is met:

*selectable_if (p_class = "mage") #I'm going to cast a levitation spell and slowly descend to the ground.

  • An option that is only visible if a condition is met:

*if (p_weapon_type != "unarmed") #Drop the ${p_weapon}.

You can also combine both:

*if (p_class = "mage") 
	*selectable_if (p_energy >= s_frostbolt_cost) #Cast a Frost Bolt

For more information on this topic, you can look at this wiki page:

https://choicescriptdev.fandom.com/wiki/Choice

5 Likes

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