[Pogamut-list] Player Vs Player

jakub.gemrot pogamut-forum at artemis.ms.mff.cuni.cz
Fri May 9 22:18:22 CEST 2008


Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Player Vs Player
Sounds like simple 'if-then-else' to me, but first you have to decide WHEN the bot should use navigation graph and when to walk at random.

I suggest you create 3 methods:

'moveLikeKheppera' and 'moveLikeHunter' and 'shouldMoveLikeHunter'

if (shouldMoveLikeHunter()) moveLikeHunter();
else moveLikeKheppera();

Cheers, Jakub!

> Thanks for that the code doesn't have any errors but the bot doesn't do anything it just stands there.  What I wanted to know is if its possible to make the bot move randomly like the Kheperalike bot but when it needs to collect items, health and weapons make the bot use the navigation graph. Then the bot should carry on moving randomly?  If so how would I start to write the code for it?

----

Reply Link: <https://artemis.ms.mff.cuni.cz/pogamut/tiki-view_forum_thread.php?forumId=6&comments_reply_threadId=174&comments_parentId=118&post_reply=1#form>





More information about the Pogamut-list mailing list