Hi Mapster! I'm working on an RPG where your character can freely switch between a number of different classes. In order to store which class the player currently has selected, I'm using an integer variable. Is there a better way to organize it, so that I don't have to remember which number corresponds to which class? Maybe a different variable type, or a way to give a name to each integer? Thanks!
there are so called presets.
you can easily define a new preset as your class-type and make this variable a preset var for your custom preset.
presets are nothing else than integers like you want,
in gui they just got some nice make-ups so that you can organize your codes a way better. =)
Hi Mapster! I'm working on an RPG where your character can freely switch between a number of different classes. In order to store which class the player currently has selected, I'm using an integer variable. Is there a better way to organize it, so that I don't have to remember which number corresponds to which class? Maybe a different variable type, or a way to give a name to each integer? Thanks!
hiho,
there are so called presets. you can easily define a new preset as your class-type and make this variable a preset var for your custom preset. presets are nothing else than integers like you want, in gui they just got some nice make-ups so that you can organize your codes a way better. =)
Robbepop
Awesome, thank you! I'll definitely look into them.