I’m trying to advance myself further with Strings - I’m attempting to use the Wiki however I’m finding it far easier // better for my learning to engage in conversation and query stuff rather than sitting and reading.
What I’m looking at doing:
As the player progresses through the game; their “Story” value is increased by +1; However, my ModuleScripts for the cutscenes are labelled as: “#0_Introduction”’ “#1_Waking up”;
I was wondering how I could use Strings to find the corresponding Module for the StoryValue?
If you’re really set on using string manipulation for this, you can use a combination of string.find to determine whether the number exists within the # and _, and if so return the module. I don’t think this is optimal, but it’s probably the easiest way to do it with strings.