URL:
<http://gna.org/patch/?2039>
Summary: Allow use of [modify_ai] in era definition
Project: Battle for Wesnoth
Submitted by: faabumc
Submitted on: Friday 10/08/2010 at 09:23
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Here is a patch makes it possible to define era specific AI with the
directive [modify_ai]. The AI is then the resulting AI from the application
of the directive on the default AI.
This way of doing has several benefits.
- the new AI is defined for all sides. For AI controlled sides, for human
controlled side (active after droiding them), and non human controllable
sides
- the definition does require the AI to define all the stage when adding a
new candidate action. Making no duplicate code leads to improved maintenance
- the resulting AI can be the target of another [modify_ai] directive
allowing a cascade of modifications to fit the era scpecifics. The cascade of
AI modification is dynamic vs the static changes when defining the AI via [ai]
directive.
- to use the AI for AI controlled sides, it is not required to click on the
list for AI selection as the modified AI is the era default AI.
This patch doesn't affect the AI configuration in the following case:
- for a game played with default era
- for a game played with an UMC era defining no AI
- for a game played with an UMC era defining an AI with [ai] directive.
The patch modify the AI for the following cases:
- for a game played with an UMC era defining an AI with [modify_ai]
directive
- for a game played with an UMC era including a faction defined in an era
defining an AI with [modify_ai] directive (assuming the played era includes
the AI definition too)
This patch still allows defining an era AI with [ai] directive, to be able to
pick up the AI in the list for AI controlled sides at game creation.
This patch doesn't modified the default AI. If another game is played
afterwards with default era, the unchanged default AI will be used.
Look into it yourself to see if this patch defines a direction you are
willing to go.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Friday 10/08/2010 at 09:23 Name: patch-modify_ai.txt Size: 1kB By:
faabumc
Patch against rev 46937 made with svn diff
<http://gna.org/patch/download.php?file_id=10662>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?2039>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs