hey, thanks for answering me! It didn't help me all too much though, I don't know how to use classes, and I never used the void type before. You have to give me a better explanation how to implement it into the code, I see that it can save me a lot of typing, but until I figure out how to use it, i must work to my capabilities.
Speaking of, your tip-off to classes made me look deeper into pointers and datastructures, and I am actually getting a grip on that! I can make use of pointers, which could be quintessential to solving my problem, and get a data structure going.
Infact, I already created a monster structure, and put my 3 beasts in them, but once again, a problem cockblocks me from progressing: I can't assign values to specific members of a structure! The error just says "expected intializer before '.' token", i'll show you the code:
1 2 3 4 5 6
|
struct MONSTER{
int mdamage;
int mhealth;} DEATHDRAKE;
int DEATHDRAKE.mdamage = 35;
int DEATHDRAKE.mhealth = 380;
|
If you can solve me this, I could finish up the rest with the use of pointers, and then it's finally done!
(And I would owe you an exclusive ULTIMATE edition of my future game, hehe!)