03-08-2011, 08:51 AM
(03-08-2011, 07:52 AM)Tim Wrote: ...do you happen to have like a model monsters.ini file? i have no idea what it needs to have in it haha ...
Everything that can be set in monster.ini is already set so under spider you can set those attributes and under chicken you can set its attributes.
Code:
[Spider]
AttackRange=5.0 <--Set this based on from how far away you want the monster
to be able to attack from
AttackRate=1 <--This is a multiplier for the base attack rate of the monster.
setting this higher means the monster attacks more frequently
AttackDamage=1.0 <-- This is the amount of damage the monster will do per
per attack
SightDistance=25.0 <--Setting this determines from how far away the monster
can "see you" so with the spider for example it will start
chasing you if you are less then or equal to this distance
away from it. The chicken will use this to determine how
far away from you it needs to be before it thinks it has
escaped from you.
[Chicken]
AttackRange=5.0
AttackRate=1
AttackDamage=1.0
SightDistance=25.0 <--The only setting that effects the chicken see the description
of the spider's SightDistance attribute above.
Makes sense? Also note in your settings.ini that there is a category under monsters where it lists the chicken and the spider. If you wanted to, for example, prevent the server from loading the config values for the chicken and just use its default attributes you could remove the chicken entry from there.
Code:
Types=Spider <-- This means that chicken will get default attributes no matter
what is in the monsters.ini file
I was also thinking of adding the ability to set the monster's personality type in monsters.ini too (its currently hard coded with the chicken being passive and the spider being aggressive) so keep an eye out for that in future releases.