So I'm working on this thing where you have a bunch of different events that can be interacted with by the player and depending on what they do, that event can transform into a bunch of different states by random chance. The way I've been doing that is that the player interaction causes a specific variable to change and the event in question has a bunch of different pages that all correspond to that variable being a different value.
That's all well and good but I want to make a bunch of these events and they all have to work identically (it's gardening related) but they all need to key off a different variable than the first so that interacting with one doesn't cause changes in a different one. That's fine, all easily figured out but my problem is that it would involve a lot of busywork. Having to copy and paste the event but then to go through each new iteration meticulously and change every mention of that variable to a different one is...it's not hard but it's very boring and time-consuming.
I'd like to offload the whole process to a single common event if possible. Ideally when the player interacts with one of these events it'd set a different variable (call it CurrentPlot or whatever) and then fire the same common event, where the common event uses the value of CurrentPlot to determine what variable it's altering. That way it'd could do the job for all of them and I could even expand it later on if I felt like it with minimal fuss.
But as far as I know, there's no way to get the specific variable targeted by the Control Variable command to itself be determined by a variable! Am I missing something basic here?
That's all well and good but I want to make a bunch of these events and they all have to work identically (it's gardening related) but they all need to key off a different variable than the first so that interacting with one doesn't cause changes in a different one. That's fine, all easily figured out but my problem is that it would involve a lot of busywork. Having to copy and paste the event but then to go through each new iteration meticulously and change every mention of that variable to a different one is...it's not hard but it's very boring and time-consuming.
I'd like to offload the whole process to a single common event if possible. Ideally when the player interacts with one of these events it'd set a different variable (call it CurrentPlot or whatever) and then fire the same common event, where the common event uses the value of CurrentPlot to determine what variable it's altering. That way it'd could do the job for all of them and I could even expand it later on if I felt like it with minimal fuss.
But as far as I know, there's no way to get the specific variable targeted by the Control Variable command to itself be determined by a variable! Am I missing something basic here?