Re: [Freeciv] rfc: autoattack

Thomas Strub <ue80-L38z05uLna+pU24hk/[email protected]>
Newsgroups gmane.games.freeciv.devel,gmane.games.freeciv.general
Message-ID <[email protected]>
On Fri, Nov 15, 2002 at 06:39:16PM +0000, Per I. Mathisen wrote:
> 
> Since my suggestion of dropping the autoattack code didn't meet with
> approval, I want to change it so that it actually works and is useful.
> 
> So my new suggestion is:
> For any unit that is moved, check adjacent squares for autoattack units.
> For each of these, if the moved unit is hostile (at war) and weaker,
> attack it. If the autoattack unit is a diplomat/spy, instead try bribing
> the moved unit, and if that is impossible, try sabotage.
> 
> This should at least make autoattack useful. The question is: Too useful?

wow :-)

This helps players with slow connections. I like it. 
Its a big step against clientsidescripting, and would help the AI too. 

And perhaps it should be configurablei.

a = chance to win 
b = value of attacking unit
c = value of attacked unit

And if d = a*c/b bigger than a tuned value -> autoattack.

Thomas
-- 
Thomas Strub  ***  eMail ue80-L38z05uLna+pU24hk/[email protected]
Nur weil das Aufzeichnen, Kopieren und Schnüffeln bei elektronischem 
Datenverkehr leichter als bei der klassischen Post ist, darf man es nicht
einfach tun.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.