HowToAddCreaturesStendhal: Difference between revisions

Content deleted Content added
imported>Kymara
major updates.
imported>Kymara
improve ai profiles section.
Line 70:
It is a good idea not to equip creatures ( because they take more memory ) if it is possible. Archers should equip arrows and bows. So they'll have extra attack from this. So you should give them less attack than other creatures of similar level or they will be too strong.
 
Most AI isto do with coward/brave and human/animal etc are useless right now. donDon't worry about itthem, just copy and paste the data. OnesA non_offensive creature does not select you as an enemy until you attack it, at which 'work'point it moves towards you. An offensive creature selects you as an enemy once you are close enough to it. A patrolling creature follows a set path. A non patrolling creature never moves even when you attack it. Other ai profiles which are more alreadycomplex are lifesteal, heal and archer. Easiest first, is archer,. ifAn itarcher hasprofiled that profile itcreature uses a ranged attack where it always tries to stay 1 tile from what it is attacking. Next heal, if it has heal profile with params [5,50] say, then it heals 5 HP each time a certain number of turns has passed. The second number determines the number of turns, the bigger it is the longer the interval. Finally the lifesteal profile which has a parameter between 0 and 1. Lets explain by example. We have some creature with lifesteal 0.5. He hits a player and causes 20 hp of damage from the player. That means he 'lifesteals' 10 HP of damage back which heals him. The player hurts just as much (like normal) but the creature heals 50% of any damage it makes.
 
= Add GFX=