Thus, I preset you this chance to make your own enemy!
enemy_name = 'Grunt';
enemy_type = 'human';
enemy_vitality = 15;
enemy_strength = 15;
enemy_magicmana = 4;
enemy_magicpower = 30;
enemy_defense = 10;
enemyx = 50;
enemyy = 40;
enemy_attacks[0] = 'mug';
enemy_attacks[1] = 'cure';
enemy_res_fire = 1;
enemy_res_demi = 1;
enemy_res_break = 1;
enemy_res_weaken = 1;
enemy_res_shatter = 1;
enemypicture.src = 'enemy/grunt.gif';
This is the code for a grunt. I'll explain every value and how it works.
enemy_name = 'Grunt';
Inset the name of your enemy here.
enemy_type = 'human';
Inset either human or monster here. Doesn't have any effect yet.
enemy_vitality = 15;
The enemy vitality times 13 is how much health they will have.
enemy_strength = 15;
The enemy strength is used to determin damage. How much damage 1 strength produces depends on what kind of attack the enemy is using. But, for plain vanilla "attack", it does enemy_strength * (5 to 0)
enemy_magicmana = 4;
The enemy magicmana times 7 is how much mana it has.
enemy_magicpower = 30;
The same as strength, but for spells. Note that most attacks, such as attack, drain, needle, uses strength. Cure and fire uses magicpower.
enemy_defense = 10;
Having 10 defense means all attacks will do 10 less damage.
enemyx = 50;
This is for the picture, and how it is supposed to be aligned in the battle. I'll ajust it for you for free.
enemyy = 40;
See above.
enemy_attacks[0] = 'mug';
enemy_attacks[1] = 'cure';
Here you can put a list over all attacks you want your enemy to use.
List of attacks: attack, innerfire, mug, needle, drain, cure, grow, deathknife, axeoffifty, axeofhundred, manaburst, managift, fire, gaze, braindamage
enemy_res_fire = 1;
enemy_res_demi = 1;
enemy_res_break = 1;
enemy_res_weaken = 1;
enemy_res_shatter = 1;
Enemy modifier for spells. having 1 means the spell works normaly. Having 2 means the spell does double damage. Having 0.5 means the spell does half damage. Having -1 means the spell heals the enemy instead of hurting. ect ect (you can have any value, such as 1.4354)
enemypicture.src = 'enemy/grunt.gif';
You must provide with a gif, with transparency for your enemy. It is easy to find.
It is easy to find, trust me