Difference between revisions of "AI Recruitment"
From The Battle for Wesnoth Wiki
(→Examples) |
|||
| Line 9: | Line 9: | ||
id=recruitment-instructions | id=recruitment-instructions | ||
[facet] | [facet] | ||
| − | turns=3-5 | + | '''turns=3-5''' |
[value] | [value] | ||
[recruit] | [recruit] | ||
| − | type=Orcish Grunt | + | '''type=Orcish Grunt''' |
| − | number=3 | + | '''number=3''' |
[/recruit] | [/recruit] | ||
[/value] | [/value] | ||
| Line 28: | Line 28: | ||
type=scout | type=scout | ||
number=4 | number=4 | ||
| − | total=yes | + | '''total=yes''' |
importance=1 | importance=1 | ||
[/recruit] | [/recruit] | ||
| − | [recruit] | + | '''[recruit]''' |
| − | importance=0 | + | '''importance=0''' |
| − | [/recruit] | + | '''[/recruit]''' |
[/value] | [/value] | ||
[/facet] | [/facet] | ||
| Line 45: | Line 45: | ||
[value] | [value] | ||
[recruit] | [recruit] | ||
| − | type=Orcish Grunt, 2 | + | '''type=Orcish Grunt, 2''' |
number=6 | number=6 | ||
[/recruit] | [/recruit] | ||
| Line 61: | Line 61: | ||
type=scout | type=scout | ||
number=5 | number=5 | ||
| − | importance=2 | + | '''importance=2''' |
| − | leader_id=leader1 | + | '''leader_id=leader1''' |
| − | blocker=no | + | '''blocker=no''' |
[/recruit] | [/recruit] | ||
[recruit] | [recruit] | ||
type=Orcish Grunt | type=Orcish Grunt | ||
number=5 | number=5 | ||
| − | importance=1 | + | '''importance=1''' |
| − | leader_id=leader2 | + | '''leader_id=leader2''' |
[/recruit] | [/recruit] | ||
[/value] | [/value] | ||
| Line 81: | Line 81: | ||
id=recruitment-instructions | id=recruitment-instructions | ||
[facet] | [facet] | ||
| − | turns=4 | + | '''turns=4''' |
[value] | [value] | ||
[recruit] | [recruit] | ||
importance=1 | importance=1 | ||
| − | number=0 | + | '''number=0''' |
[/recruit] | [/recruit] | ||
[/value] | [/value] | ||
Revision as of 10:21, 12 September 2013
This page is work in progress
How it works
Aspect recruitment_instruction
Examples
Recruit 3 Grunts (and nothing more) in turn 3-5.
[ai]
[aspect]
id=recruitment-instructions
[facet]
turns=3-5
[value]
[recruit]
type=Orcish Grunt
number=3
[/recruit]
[/value]
[/facet]
[/aspect]
[/ai]
Recruit so, that there are at least 4 scouts in total and then recruit other units.
[ai]
[aspect]
id=recruitment-instructions
[facet]
[value]
[recruit]
type=scout
number=4
total=yes
importance=1
[/recruit]
[recruit]
importance=0
[/recruit]
[/value]
[/facet]
[/aspect]
[/ai]
Recruit 6 Grunts or level 2 units (whatever seems better for the AI) and nothing more.
[ai]
[aspect]
id=recruitment-instructions
[facet]
[value]
[recruit]
type=Orcish Grunt, 2
number=6
[/recruit]
[/value]
[/facet]
[/aspect]
[/ai]
Recruit 5 scouts with leader1 and 5 Grunts with leader 2. Do even try to recruit the Grunts if leader1 can not recruit all of the scouts.
[ai]
[aspect]
id=recruitment-instructions
[facet]
[value]
[recruit]
type=scout
number=5
importance=2
leader_id=leader1
blocker=no
[/recruit]
[recruit]
type=Orcish Grunt
number=5
importance=1
leader_id=leader2
[/recruit]
[/value]
[/facet]
[/aspect]
[/ai]
Do not recruit in turn 4.
[ai]
[aspect]
id=recruitment-instructions
[facet]
turns=4
[value]
[recruit]
importance=1
number=0
[/recruit]
[/value]
[/facet]
[/aspect]
[/ai]
This will not work. Only one facet can be active.
[ai]
[aspect]
id=recruitment-instructions
[facet]
turns=1-10
[value]
[recruit]
type=scout
number=5
importance=1
[/recruit]
[/value]
[/facet]
[facet]
turns=3
[value]
[recruit]
type=Orcish Grunt
number=3
importance=2
[/recruit]
[/value]
[/facet]
[/aspect]
[/ai]
To achieve this behavior one have to create a facet for turn 1-2, a facet for turn 3 and another facet for turn 4-10.