View Single Post
  #32  
Old 02-14-2002, 04:15 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
All this over a little hint from me blah. haha. I know it is fully possible to make a maze guy. Kaimetsu made a really nice one.


But stefan has a great idea too last known position.

add in last known heading and walla. try it.


it would be more realistic following.

The AI would goto the players last known postion and look around.

if the player retreated into the maze the AI would have to realize the player could have only gone one direction.... into the maze.
He would then head into the maze and when he reaches a point where the maze takes different directions. He would see if the player is in either of those directions. (by sight of course) if he doesn't see the player he would pick a random direction. knowing the player is still in there somewhere.

And he would continue until he finds the player or reaches the end of the maze. (he might backtrack and check out the forks he didn't inspect) once he figures out he has checked the whole maze he would give up and exit the maze. and continue patrolling outside.








That is how a real AI would do it!
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote