Battle system & messages
Just finished the base battle system. I made some few monsters as neutral(move random), aggresive(get close to you) and hostile(neutral but when you go 4 tiles near become aggresive).
When enemy's hp(hit points) zeroes it dies. I can't upload a schot right now.
Also I finally made messages functions, 8 last messages will appear down of gamescreen.
I could make even more but I had to fix a lot of bugs(hours spending to understand that I was using a unit as a unit_type)
Anyway things are going fast now,soon the hero will pick/drop/use weapons and in few days my friends will play it.
Battle system:
Hero attacks
int hit=hero.dexterity+.combat_skill+.equiped_weapon.hit;
int damage=hero.strenght+.combat_skill+.equiped_weapon.damage;
int ac=creature.speed+.level;
if (dice(hit)>dice(ac)
creature.hp-=damage/2+dice(damage);
Monster attack hero
int hit=creature.speed+.level;
int damage=creature.damage+.level;
int ac=hero.dexterity+.combat_skill+.equiped_weapon.ac;
if (dice(hit)>dice(ac)
hero.hp-=damage/2+dice(damage);
When enemy's hp(hit points) zeroes it dies. I can't upload a schot right now.
Also I finally made messages functions, 8 last messages will appear down of gamescreen.
I could make even more but I had to fix a lot of bugs(hours spending to understand that I was using a unit as a unit_type)
Anyway things are going fast now,soon the hero will pick/drop/use weapons and in few days my friends will play it.
Battle system:
Hero attacks
int hit=hero.dexterity+.combat_skill+.equiped_weapon.hit;
int damage=hero.strenght+.combat_skill+.equiped_weapon.damage;
int ac=creature.speed+.level;
if (dice(hit)>dice(ac)
creature.hp-=damage/2+dice(damage);
Monster attack hero
int hit=creature.speed+.level;
int damage=creature.damage+.level;
int ac=hero.dexterity+.combat_skill+.equiped_weapon.ac;
if (dice(hit)>dice(ac)
hero.hp-=damage/2+dice(damage);
0 Comments:
Post a Comment
<< Home