My game has tons of randomized content since it would be too much trouble to create a unique set of variables for each event I made a system of "keys" (similar to Minecraft) in which each number would contain a certain parameter value.
Now the question is how do I decode them a.k.a. check each numeral's (digit) value. Imagine a variable has a value of 123 where 1 would be the difficulty, 2 levels number and 3 anything else, etc.
I'm not an expert, but I hope I managed to explain myself.
Now the question is how do I decode them a.k.a. check each numeral's (digit) value. Imagine a variable has a value of 123 where 1 would be the difficulty, 2 levels number and 3 anything else, etc.
I'm not an expert, but I hope I managed to explain myself.