Jump to content
  • Advertisement
Sign in to follow this  
Technomancer83

Question about the best AI method

This topic is 4501 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am trying to figure out the best AI method to cast a firewall spell on some monsters for a game. I will try to describe my problem. Firewall consists of three separate pillars, and is always casted horizontal relevant to your location, the coords you target is where the center pillar appears. IMo it's easiest to just cast one space to your side for my purposes. How firewall casts .ooo.... ........ ..x..... ........ ........ ......O ..x...o ......O ....... .O..... ..O.... .X.O... ....... Monster movement examples ........ .......O ......O. ...OOO.. ..x..... ........ .....o.. ....O... ...O.... ...O.... ..x..... ........ O....... .O...... ..O..... ..O..... ...x.... ........ ..O..... ..O..... ..O..... ..O..... ..x..... ........ ?/p> vwall examples /either would work ......M ....... ....X.. ...PX.. ....X.. ...Y... ....... ......M ....... ..xxx.. .Y.P... ....... ....... P = player M = monster Y = move position after casting X = Firewall So long as all 3 pillars end up in the monsters path after you move, itll work Any AI mathematics expert here can tell me the best algorithm to solve my problem? Much appreciated

Share this post


Link to post
Share on other sites
Advertisement
Could you describe the problem with words please, your diagrams aren't very articulate. 8(

Thanks,

Timkin

Share this post


Link to post
Share on other sites
It seems to me that he's making robots, but instead of crashing them into each other, he wants to crash them into a three-tile wall of fire created perpendicular to the line from player to the center pillar. The point where the center pillar is created is designated by the player during casting.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!