Here’s the details,
At mygame.js, I have a variable “Weapon” with numerical value. As this:
Then on my choicescript_stats, I turn these numbers into text. As this:
*if weapon = 0
*set weapon_text “None”
*elseif weapon = 10
*set weapon_text “Normal Spear”
*elseif weapon = 20
*set weapon_text “Good Spear”
*set weapon_text “Best Spear”
The thing is that I wanted to use the selectable_if code to create a selectable option if the player has a “Good Spear”
Here’s what I tried, but didn’t work.
What is your spear?
#I don’t have one.
I am too poor to get a spear
*selectable_if (weapon) = 20 #I have a good spear. //This breaks!
A good spear is more than enough.
The above code breaks. I tried also:
*selectable_if (weapon = 20) #I have a good spear. //This breaks!
*selectable_if (weapon)=20 #I have a good spear. //This breaks!
*selectable_if (weapon=20) #I have a good spear. //This breaks!
The end objective to is make the choice unselectable, unless the player has a “Good Spear”, which is weapon=20.