In C++, I am used to defining variables by their type eg
int age;
float weight;
'skill' confuses me. Even though I own the Commercial version, I only use Lite-C/SED at the moment as I am concentrating on learning Lite-C.
1) Is 'skill' a variable that can be any type of numerial variable ie int, float or double ?
2) If I never used WED, and I wanted to stick as close to the C language as possible, could I avoid using 'skill' and use int or float instead ?
3) On a related matter, in C, we us the 'bool' variable for boolean variables. What is the equiverlent in Lite-C, is it a flag ?
Thanks
Drac.
There is nothing wrong with using skills at all. Its a great way to store parameters that are specific to an entity, like health or armor or what have you. They're better than local variables for this because they can be accessed by other functions through pointers.
Wait, are you talking about skill as in my.skill1 or skill as in old, ancient, obsolete A4 code?