wesnoth/data/ai/dev/testing_ai_default.cfg
2009-08-04 21:02:29 +00:00

64 lines
2.6 KiB
INI

#textdomain wesnoth
[ai]
id=testing_ai_default
description=RCA AI
version=10703
[aspect] #that is an aspect
id=aggression #it's id is aggression. Id of an aspect must be one of well-known ids (see AI_Module page in the wiki)
#we can override aspect config here, but it is better to leave default composite_aspect in here, and add [facet]'s instead
[facet]#we add a facet to this aspect
id=base_value #this is an arbirtrary facet id. it is not needed, and will be useful later, when [modify_ai] will be available
engine=cpp #this facet
name=standard_aspect #this is the default
value=1 #this is the value of this aspect.
# we can put time_of_day or turns restriction there, as well. The rule is 'first facet that is active is used'
[/facet]
#we can put other [facet]'s in there
[/aspect]
[stage]#this stage implements an experimental candidate-action-evaluation-loop AI. it is fairly complete, and has ~35% win chance against default AI (because it uses simple targeting, which is not good).
engine=cpp
name=testing_ai_default::candidate_action_evaluation_loop
[candidate_action]
engine=cpp
name=testing_ai_default::goto_phase
[/candidate_action]
[candidate_action]
engine=cpp
name=testing_ai_default::recruitment_phase
[/candidate_action]
[candidate_action]
engine=cpp
name=testing_ai_default::combat_phase
[/candidate_action]
[candidate_action]
engine=cpp
name=testing_ai_default::move_leader_to_goals_phase
[/candidate_action]
[candidate_action]
engine=cpp
name=testing_ai_default::get_villages_phase
[/candidate_action]
[candidate_action]
engine=cpp
name=testing_ai_default::get_healing_phase
[/candidate_action]
[candidate_action]
engine=cpp
name=testing_ai_default::retreat_phase
[/candidate_action]
[candidate_action]
engine=cpp
name=testing_ai_default::simple_move_and_targeting_phase
[/candidate_action]
[candidate_action]
engine=cpp
name=testing_ai_default::move_leader_to_keep_phase
[/candidate_action]
[candidate_action]
engine=cpp
name=testing_ai_default::leader_control_phase
[/candidate_action]
[/stage]
#note that there's no fallback stage there - this is a complete ai implemented as an RCA
[/ai]