-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyt_simple.cfg
44 lines (42 loc) · 1.27 KB
/
yt_simple.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#textdomain wesnoth-AI-demos
{core/macros/ai_candidate_actions.cfg}
[ai]
id=yt_simple
description=_"Multiplayer_AI^yieldthought: simple"
version=10710
[engine]
name="lua"
code= <<
local ai = ...
return wesnoth.require("~add-ons/AI-demos/lua/yt.lua").init(ai)
>>
[/engine]
[stage]
id=main_loop
name=ai_default_rca::candidate_action_evaluation_loop
[candidate_action]
engine=lua
name=fighters
evaluation="return (...):fighters_eval()"
execution="(...):fighters_exec()"
[/candidate_action]
[candidate_action]
engine=lua
name=scouts
evaluation="return (...):scouts_eval()"
execution="(...):scouts_exec()"
[/candidate_action]
[candidate_action]
engine=lua
name=leader_recruit
evaluation="return (...):leader_recruit_eval()"
execution="(...):leader_recruit_exec()"
[/candidate_action]
[candidate_action]
engine=lua
name=leader_village
evaluation="return (...):leader_village_eval()"
execution="(...):leader_village_exec()"
[/candidate_action]
[/stage]
[/ai]