I have a big problem, what's quite hard for me.
Its about the system of the bots.
I wanna make a TPS/RPG hybrid game, with online play.
So, i have a server, what controls the bots, and it gets the datas from database.
So, my problem is i could make a simple ai for bots, but it isnt fun if every bot just coming straight to me, and shooting/hitting when it can, and use all of they skills when cooldown ended...
thats quite ugly, isnt that?
so i wanna give "personality" to them.
for example a mob, what snipes, shooting from far, and if i go close, that should run away.
other one should always chase the player.
another one shoot from far away, if player comes cloes, then use skill, and start chase.
another one should use all of its skill, then shoot.
another one should shoot from far, if player comes close, then start attacking melee..
etc etc etc... so many personalities...
i had been said make this, but honestly, have no idea where to start.
maybe adding a data to every mob, a personality ID, and check it in every frame, what should it do next?
or just make an event handler, and if an event occured (onhit, and so on), check personality with a switch-case statement and give a command what to do until next command?
and in top of that, i need to make bosses too.
you know, in a good game boss fight isnt about that the boss has 1251254 life, but the same fight as normal bots.
every boss has to be different.
but i dont know all the boss personalities at present, i need to add more bosses later, so the system has to be flexible.
and the other one, the skill system.
in a fun game, mobs should have various skills, not just hit 20, hit 30, hit 40, heal 10, heal 20, heal 30, and thats all
![Very Happy :D](./images/smilies/icon_biggrin.gif)
i need buffer what attacks near players in every 5 second, suicide bomb, summoning other monsters, and various things.
so how should i start it?
give an id to every skill, and program all the variations in a switch case?
or giving a type, and one or more parameter?
and program all the types (and can add later too), and use them more than once, with different parameters?
sorry for bad english..
thanks for the help
![Razz :P](./images/smilies/icon_razz.gif)
EDIT: oh and so, every one could be done with script, right... but how do i input script to database? xD
or should i put them next to the server exe file?
and so, should i make an own script language, or use premade ones, like lua?