i've just been immersed in the world of lite-C
what tips do you have to help me improve some of my code before i get too in depth
Code:
#define health skill1
#define ammo skill2
#define maxammo skill3
#define weaponid skill4
#define topweapon skill5 //topmost weaponid user or enemy has
action player1 {
player = my;
my.health = 100;
my.ammo = 32;
my.weaponid = 1;
my.topweapon = 1;
if (my.health=>100){
my.health=100;
}
if (my.ammo =<1) {
reload();
}
if (my.weaponid==1){
my.maxammo = 32;
}
function reload (){
my.ammo = my.maxammo;
}
}