Hey everyone!
So I'm going to get straight to the point; I just started using Twine 2.0 a while ago and I've been working on an awesome story with set characters. I've decided that I want to give readers the ability to choose the 'class' of the main character so that they can play with different sets of stats and skills.
There are 4 classes all together, and each class has 5 stats (strength, magical strength, defense, magical defense, speed) that can rank from 1-10.
So for example, the warrior class is (9, 3, 8, 5, 7)
Right now, I'm using simple variables to define each class in one passage, which means I've defined 20 variables.
Here's the question: Is there a way I can 'group' together 5 variables under 1 command/variable, so that the passage can read the specific stats?
Sorry for my writing, I appreciate any help!
Comments
Assuming you're using Harlowe, you can use a datamap for each class.
You'd access the individual stats like this
I used underscores rather than spaces in magical_strength and magical_defence since otherwise you'd need to remember to put quotes round those stats when accessing them.
Thank you!