Naming and size increase for switches and variables

Description of the Feature:
  • This addition is just a small Quality of life change that would give developers the ability to rename groups of switches (A) and also change the maximum number of switches in each group (😎.

Code for Implementation:
I have very little coding experience so I can't cover this part sadly. Sorry.

Mockups:
Spoiler
RMForumPic.png

Why is this feature good?
This feature is great because of the following:
  • Better Organization of Switches and Variables
  • Can make it easier to find the switches and variables that you're looking for

Possible issues with this feature?
Issues that might arise from this feature:
  • Personally, I don't see any issues but I could be wrong.
I voted no, because i need my switch ids numbered. having A 1 to 50 and than B 1 to 50 could be helpful or turn everything into a mess.
My Guts told me No. But iam not sure. =)
If we could rename groups of switches, having a maximum per group at all would be absolutely meaningless.

As for the code of implementation, it would be necessary to only change the switch parser function. However, it would be a bit messy to implement in the editor 😀
Possible issues with this feature?
Issues that might arise from this feature:
  • Personally, I don't see any issues but I could be wrong.
It is an absolut technical requirement that all switches or all variables need to be continuously numbered - that number is the index of the array and neccessary for the computer to loop through all data, and such loops are used in many plugins as well.
you can change names (which are ignored internally anyway) or you can add names to groups or so, but the numbering needs to remain the same as is now.
@Andar It is not an absolute technical requirement.

This is what the Game_Switches file could look like:
switches [
array group one [
1,2,3,4,5,6,7,8,9,10
]
array group two [
1,2,3,4
]
array group three [
1,2,3,4,5
]
]

And the code will then just change to $gameSwitches["array group one"].value(10) or $gameSwitches("array group one").value(10). Plugin creators could easily implement this feature to their plugins, since it's a minor code change.

Or it could be possible to run a code to parse that array into an one-dimensional one, however that would be more complicated.

Or in the worst case we can just do the same with the group names as we do with var names. The variable names are irrelevant for the editor, so the group names could be irrelevant as well. And it's just as irrelevant for the editor if we have five groups of 20 or two groups of 50 variables, the order is still the same.

Original thread: https://forums.rpgmakerweb.com/threads/naming-and-size-increase-for-switches-and-variables.97590/