So, in the game i am creating, you learn skills from skillbooks found around the world. The problem is that I have no idea how to use strings, and i feel like this is what i'd need to be able to make it, as otherwise i would have to create loads of variables. If you can help in any way, please reply.
Comments
So with that said, I'm not quite sure exactly what your trying to achieve but with the little understanding I do have, whenever you talk about skills and the like, I wouldn't necessarily see any reason you would need to use a string. I'd be more than happy to give some more info, but you'd need to be a little bit more specific.
Also, it would help if you specified which story header your using, (SugarCane, Johan, SugarCube etc..) because a lot of the time, answers to questions depend specifically on the story header and what macros and features are available to them.
You don't know how to "use strings"; this is an issue because you want players to learn skills from skillbooks in your game.
It would be helpful if you provide more detail on what you want to do with skills and skillbooks, the relation between skills, skillbooks, and strings, and what precisely you don't understand about strings that is preventing you from using them.
All of that said, I will take a guess at what you mean: it seems like you want the names of your variables to be skill names. It's very simple; in Twine, just declare it and name it anything you want, so long as it's prefixed by $. Examples: You can use strings in both the variable name and its value. In both, strings are case-sensitive.