AI recruitment clarification query
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
- Spannerbag
- Posts: 535
- Joined: December 18th, 2016, 6:14 pm
- Location: Yes
AI recruitment clarification query
Hi all,
I'm playtesting a scenario where one ai side has multiple leaders with different recruits.
Additional leaders are created within
Side recruit is not used (
I'd like to control how one leader recruits, it has
Version is 1.16.8
First, does repeating unittypes in
I.e. would
My playtesting would imply not (though I could've just been unfortunate with randomness).
I tried
The AI recruited the
However then the "primary" leader (
After that the other leaders seemed to recruit as expected.
The side setup is slightly weird because the
This "primary" leader then has
These last two unittypes are also in the
Unless anyone has a better suggestion, I'll just add Great Troll and Troll Hero to
Thanks in advance for any thoughts or suggestions,
cheers!
-- Spannerbag
I'm playtesting a scenario where one ai side has multiple leaders with different recruits.
Additional leaders are created within
[side]
and have extra_recruit
set.Side recruit is not used (
recruit=
).I'd like to control how one leader recruits, it has
extra_recruit=Troll Boulderlobber,Troll Shaman,Troll Warrior
and I wanted more Warriors recruited than this seems to generate.Version is 1.16.8
First, does repeating unittypes in
extra_recruit
have any effect?I.e. would
extra_recruit=Bowman,Bowman,Spearman
result in the ai recruiting, on average, more Bowmen than Spearmen?My playtesting would imply not (though I could've just been unfortunate with randomness).
I tried
recruitment_instructions
[recruit]
withleader_id=
set to the appropriate leader id, pattern=yes
,type=Troll Boulderlobber,Troll Boulderlobber,Troll Shaman,Troll Warrior,Troll Warrior,Troll Warrior
,importance=1
and blocker=no
followed by a second [recruit]
with importance=0
.The AI recruited the
pattern=
units first (which I guess is due to importance=1
, can anyone suggest a suitable lower importance value?).However then the "primary" leader (
[side]
id=
) also sort of recruited using this same pattern, ignoring that leader's extra_recruit
.After that the other leaders seemed to recruit as expected.
The side setup is slightly weird because the
[side]
leader is a dummy (so the side status displays with the correct leader image and name) and this fake leader is overwritten with the real (stored) leader of the same type/name in prestart
.This "primary" leader then has
[set_extra_recruit]
extra_recruit=Highwayman,Assassin,Fugitive,Huntsman,Ranger,Troll Boulderlobber,Troll Warrior
.These last two unittypes are also in the
type=
list above and this leader seems to only recruit those two types Unless anyone has a better suggestion, I'll just add Great Troll and Troll Hero to
extra_recruit
and get rid of recruitment_instructions
.Thanks in advance for any thoughts or suggestions,
cheers!
-- Spannerbag