Quantcast
Channel: The Battle for Wesnoth Forums
Viewing all articles
Browse latest Browse all 1439

WML Workshop • negative ai aggression

$
0
0
https://wiki.wesnoth.org/AiWML#List_of_AI_Aspects
  • If 'aggression=1', no negative contributions are added to the score. Thus, the AI disregards damage done to its own units and selects attacks based solely on the damage it can do to enemy units. If the AI can inflict 1 damage and take 0, or inflict 2 damage and take 20, it will take the latter option.
  • The smaller the value of aggression, the more weight is put on value of and potential damage to the AI's units as compared to the attack target.
  • Roughly speaking, 'aggression=0' results in the AI valuing its units approximately as much as the enemy units. This is not a one-to-one relation, but can be used as an approximate guideline.
  • Very large negative values of aggression mean that the value of the AI's units is much more important than that of the enemy units. As a result, the AI never attacks unless it will receive no damage in exchange.
The description of aggression=1 is quite helpful, when combined with that of aggression=0.

"Very large negative values...", not so much. I don't know what large is, let alone very large. I think it's reasonable to assume that -1.0 would be roughly the opposite of 1.0, which would mean that it only considers the damage it could take in return, and therefore would almost never attack. And I guess < -1.0 might lead to the AI not attacking even when there is no chance of taking any damage, but I don't really see any other options (so -9,213 should be the same as -1.001).

I SUSPECT the difference between -X and -Y, both less than -1.0 probably has something to do with likelyhood of getting a kill (and probably other stuff like wanting to stay on/be near a keep, affinity for healing if injured, etc)? I have noticed that enemy leaders seem to only attack, and usually only from their keep, when they have a good chance of a kill.

I see leader_aggression defaults to -4.0, but I have no idea what that means. How much is that in Olympic size swimming pools?

I'm tired of standing in an enemy keep, pounding away at the leader and never being attacked in return. I could try leader_aggression=-3.9, restart with 3.8, etc, or change it based on turn number or write a gui, etc, but I'm not in the mood for error and trial.

Statistics: Posted by white_haired_uncle — Yesterday, 9:02 pm



Viewing all articles
Browse latest Browse all 1439

Trending Articles