Hide/Disable_Reuse Option

I’m having a problem with the hide_reuse and disable_reuse task. The code is below but I have tried the disable_reuse before each # option and have tried the hide_reuse code at the beginning of the scene, before the choice, and besides the # option. None of them are working.

*choice
	#Bow and arrows
		*set MainWeapon "Bow"
		*set arrow "arrow"
		*set Knifemanship -10
		*goto SecWeapon
	#Gun
		*set MainWeapon "Gun"
		*set arrow "gun"
		*set Knifemanship 50
		*goto SecWeapon
	#Daggers
		*set MainWeapon "Daggers"
		*set arrow "daggers"
		*set Knifemanship +10
		*goto SecWeapon

*label SecWeapon
Your second favorite would probably be the:
*choice
	#Bow and arrows
		*set SecondaryWeapon "Bow"
		*set arrow "arrow"
		*set Knifemanship -10
	#Gun
		*set SecondaryWeapon "Gun"
		*set arrow "gun"
		*set Knifemanship 50
	#Daggers
		*set SecondaryWeapon "Daggers"
		*set arrow "daggers"
		*set Knifemanship +10

You can do this in several ways, but this is just an example of what I do if I wanted to make a choice with some conditions.

Example: (you can reverse the false and true for this code if you likey)

*temp bow_arrow false
*temp gun false
*temp daggers false

*label first_weapon
*choice
    #Bow and arrows
        *set MainWeapon "Bow"
        *set arrow "arrow"
        *set Knifemanship -10
        *set bow_arrow true
        *goto SecWeapon
    #Gun
        *set MainWeapon "Gun"
        *set arrow "gun"
        *set Knifemanship 50
        *set gun true
        *goto SecWeapon
    #Daggers
        *set MainWeapon "Daggers"
        *set arrow "daggers"
        *set Knifemanship +10
        *set daggers true
        *goto SecWeapon

*label second_weapon
Your second favorite would probably be the:
*choice
    *selectable_if not (bow_arrow) #Bow and arrows
        *set SecondaryWeapon "Bow"
        *set arrow "arrow"
        *set Knifemanship -10
    *selectable_if not (gun) #Gun
        *set SecondaryWeapon "Gun"
        *set arrow "gun"
        *set Knifemanship 50
    *selectable_if not (daggers) #Daggers
        *set SecondaryWeapon "Daggers"
        *set arrow "daggers"
        *set Knifemanship +10

Thanks, I’ll try that.

*if (MainWeapon != "Daggers") # Daggers
  *set SecondaryWeapon "Daggers"

Wait, this is 5 years later! How did this end up on the front page?

2 Likes

Discourse moves threads in mysterious ways…