Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: AI..  (Read 423 times)

Skyrage

  • Bay Watcher
    • View Profile
AI..
« on: July 31, 2007, 05:35:00 am »

I dunno how tuned up the AI is going to be for the next version, but it'd be nice to at least see a "common sense" AI being implemented. For example, if I build a channel - that is a one tile channel next to the river - once it's completed, then the dwarf should simply go to the nearest dry tile available, and NOT plunge into the river and then aimlessly swim around just to drown...whilst being two whole squares away from safety...to either side.
Logged

Nukeitall

  • Bay Watcher
  • HURR DURRR
    • View Profile
Re: AI..
« Reply #1 on: July 31, 2007, 01:00:00 pm »

Inclined to agree. "Dwarves do not collect (x)" would be a welcome and useful addition. Can't count the amount of guys I've lost to Dwarves running out to loot gear..
Logged

Dreamer

  • Bay Watcher
    • View Profile
Re: AI..
« Reply #2 on: July 31, 2007, 01:12:00 pm »

I think the dwarves won't stand on top of channels anymore in the next version, the way things work.  They'd fall into a hole, I think, if they didn't do it from the side.

The only addition to the AI that I know of is four extra move directions, which may help drowning dwarves slightly, as they won't be as inclined to swim back and fortth.  Of course, they may just as well fly off deeper into the water...  I think the whole wandering aimlessly in the water thing is intentional, to simulate the dwarf panicking and flailing about with no thought as to where shore is - They just know it isn't where they're at, so they've got to move.  If they weren't panicking, they'd likely go straight to the nearest bit of dry land - But we all know dwarves can't swim and think rationally at the same time.   :)

Logged
▲▲▲▲▲▲▲▲▲▲▲▲▲/
◄Nothing Beats Menacing►
/▼▼▼▼▼▼▼▼▼▼▼▼▼\

Zemat

  • Bay Watcher
  • Zemat, programmer, cancels coding: Too insane.
    • View Profile
Re: AI..
« Reply #3 on: July 31, 2007, 01:48:00 pm »

In that regard. There should be a separate skill for swimming. That way, dwarves that are skilled swimmers would control better their movements and last longer. They could even enter willingly into the rivers and ponds to cross them or recover sunken items.

To train the swimming skill, dwarves may go into shallow ponds that are designated as recreational pools (equivalent to a statue garden or zoo.)

Logged
You too can help bring to life the RogueLife Project!

Fieari

  • Bay Watcher
    • View Profile
Re: AI..
« Reply #4 on: July 31, 2007, 02:55:00 pm »

That'll probably be added at a similar time as flight is worked on, for dragons and birds and gryphons and such.  Differentiating different types of movement.
Logged

Pacho

  • Bay Watcher
    • View Profile
Re: AI..
« Reply #5 on: July 31, 2007, 03:03:00 pm »

07/28/2007: Taught dwarves to escape from unwalkable squares, continued rewalling

I assume that deals with swimming dwarves too.

Logged

Eagle of Fire

  • Bay Watcher
  • Friendly Fire
    • View Profile
Re: AI..
« Reply #6 on: July 31, 2007, 03:20:00 pm »

I assume the real problem here is that the game see the channel as a very deep hole filled with water. Since Dwarves don't know how to swim or surface (yet), they simply walk at the bottom of the channel trying to find an exit which doesn't exist.

Teaching Dwarves how to get out of unwalkable squares probably refer to Dwarves getting stuck under statues, Dwarves stuck at the magma forges and such things.

Logged
I am on a hot streak... literally.