Bug/Hiccup with *selectable_if command

Good Morning, Afternoon, and Evening.

So I’ve run into a bit of an oddity with using the *selectable_if command. When I first entered it in my *choice selection it ran perfectly fine on the first test when I met the parameters for its activation.

However, despite not having made any changes to it, now even when the requirement is met the choice no longer populates, and unfortunately its not giving me an error code to work off of at all.

I even triple checked to make sure all indentations and spelling were/was proper, and still no dice. So any insight would be most welcome. - Thank you kindly.

My code looks like this:

*selectable_if WeaponSet = Magic Tome
    #"I'll use my magick to invigorate the troops, just like when I was with father during the hunt for the Dire Boar."

Usually I think it would be all on the same line? Also since you’re checking WeaponSet against a string, the string should be in quotes.
Something like:

*selectable_if (WeaponSet = “Magic Tome”) #“I’ll use my magick to invigorate the troops, just like when I was with father during the hunt for the Dire Boar.”

3 Likes

Three things:

  1. For selectable_if, you need to keep everything on the same line.
  2. You need parentheses around the condition that follows *selectable_if.
  3. You need to put your string in quotes, as noted by dreamofeden.

Like this:

*selectable_if (WeaponSet = "Magic Tome") #"I'll use my magick to invigorate the troops, just like when I was with father during the hunt for the Dire Boar."
    You use magick.
2 Likes

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