Latest Posts

Topic: prevent ai in scenarios

kaputtnik
Avatar
Topic Opener
Joined: 2013-02-18, 20:48
Posts: 2434
OS: Archlinux
Version: current master
Ranking
One Elder of Players
Location: Germany
Posted at: 2018-01-16, 09:17

Is it possible to disable each action from the ai in scenarios?

I want just to place some buildings and connect them with roads. And this situation should ever be there. Currently the ai does some tasks, like dismantle buildings or build other roads or disconnect roads.

I tried some settings in the file 'player_names' for the attribute 'ai=' but this do not work. Also i couldn't find any documentation about possible values in this file.


Fight simulator for Widelands:
https://wide-fighter.netlify.app/

Top Quote
Tibor

Joined: 2009-03-23, 23:24
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2018-01-16, 15:56

Do you mean completely turn off the AI, so that no decisions are being made, but production goes on? No, this is not possible right now...

You probably mean some LUA interface that would switch AI on and off...


Top Quote
hessenfarmer
Avatar
Joined: 2014-12-11, 23:16
Posts: 2646
Ranking
One Elder of Players
Location: Bavaria
Posted at: 2018-01-17, 07:48

Although you can't turn of AI giving it no constructors and no hammers should prevent them from dismantling at least.


Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 15:56
Posts: 3324
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2018-01-17, 15:05

We don't have anything like that in the UI, since it was never needed before. You could assign the empty AI I guess, but you won't be able to switch to a different AI later if you want it to start doing things then.

Edited: 2018-01-17, 15:06

Busy indexing nil values

Top Quote
Tibor

Joined: 2009-03-23, 23:24
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2018-01-17, 17:04

hessenfarmer wrote:

Although you can't turn of AI giving it no constructors and no hammers should prevent them from dismantling at least.

This would keep such site in dismantling state forever, and this is not what you want to achieve....


Top Quote