See, that was what I was thinking, and it was what I tried to implement first. For instance, say the player selects the mage class. It takes them to another passage that has this:
(set: $class to mage)
(if: $class = mage (set: $hp to 10))
(if: $class = mage (set: $gold to 50))
and when run I get an error stating that "mage" is undefined, and two secondary errors stating the the "mageMacro" is unrecognized.
Then when I have all three passages link back into another passage I have this code set-up:
(if: $class = mage) [You sit in your favorite chair, pondering the implications of your latest magical studies. You consider that it might be important for you to apply what you've learned in the field.]
[Your health is currently at $hp and you have $gold gold.]
(elseif: $class = knight)[You sit in the barracks at the Castle of Twin Moons, praying for the blessing of Lunara, the Goddess of the moon before your patrol. Violent attacks have been on the rise, and the Knights of the Order have been hard pressed to keep everything under control.]
[Your health is at $hp and you have $gold gold.]
(elseif: $class = rogue) [You sit at a desk in your personal office, counting the gold that you made off the recent sale of some stolen gemstones. You prefer the term "liberated", but you know that semantics don't change the reality of what you're doing. You hear a distant bell ring, and realize you are going to be late for a meeting with an important client.]
[Your health is at $hp and you have $gold gold.]
And it shows all the specific comments, but before each is an error that reads "(elseif)'s 1st value is a to or into and should be boolean."
I'm convinced that it has to be something stupidly simple that I'm overlooking, but I obviously can't spot it on my own. *shrugs*
~Lucario