mob/proc/Krillin()
var/mob/Krillin/K = new(locate(x,y+5,z))
world << "test K [K]"
Problem description:I'm starting my own thread for AI as I want to create something specific to my game. While possibly helping others searching for forums for what I was trying to do.
Right now my code is very basic and I could throw some basic code to make him walk towards the player but I want to see what other code you might suggest.
I would like to have a battle system for several mobs that gets increasing tougher. Not just because they will be stronger or faster but smarter too.
The battle will be placed in a small 8x8 arena. Other then making the mob walk randomly or towards the player I want to get more idea's on whats possible with byond.
One idea I had was to teleport the mob at random times to a different location within the arena. The turf used for the arena is different then anywhere else in the game. I'm not sure how I would implement it without making the mob possibly teleport outside the arena.
I will post another post in this thread in the next 24 hours with an update of what I've made. In that time if anyone post something here that might help me I will try to implement that also. Thanks for taking the time to read and helping me out!
The nice part about this is that you can pick your turf with pick(), from an arbitrary list of potential turfs. In your case, you might want a list of every turf in the arena, and pick from that. Or if the arena is an axis-aligned rectangle, you could pick a turf with locate() and rand() instead of a list.