I am making a role playing game and instead of having a bunch of variable to have to assign line by line when a character is chosen
ex. hp = 30;
mp = 30;
etc.
I am trying to do it as a structure. I believe i have seen it done before but I can't remember where. Is there a way I can, instead of having to do
stats.classname = "Warrior";
stats.hp = 30;
stats.mp = 30;
etc.
just go:
stats{"Warrior"; 30; 30};
I tried this but it didn't work, is the sytax wrong, or is this not possible?