# 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.

## 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 on other sites
Could you describe the problem with words please, your diagrams aren't very articulate. 8(

Thanks,

Timkin

##### 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.

1. 1
2. 2
3. 3
Rutin
21
4. 4
5. 5
gaxio
10

• 14
• 30
• 13
• 11
• 11
• ### Forum Statistics

• Total Topics
631778
• Total Posts
3002310
×