wesnoth / wesnoth

An open source, turn-based strategy game with a high fantasy theme.
https://www.wesnoth.org/
GNU General Public License v2.0
5.46k stars 1k forks source link

WML Wish: A [limit_recruits] tag (GNA #16899) #1238

Open wesnoth-bugs opened 7 years ago

wesnoth-bugs commented 7 years ago

Original submission by elvish_sovereign on 2010-10-19

http://forums.wesnoth.org/viewtopic.php?f=12&t=31957

(Reproduced on All) Release: trunk Priority: 5 - Normal Severity: 1 - Wish

gfgtdf commented 7 years ago

As noted the he linked thread, an altertive would be adding an ai parameter that does this.

CelticMinstrel commented 7 years ago

If that's truly an alternative, then this can be closed, because there is already an AI parameter to limit recruits. Note that that won't help if you're trying to limit the player's recruits, though.

gfgtdf commented 7 years ago

so these lines https://github.com/wesnoth/wesnoth/blob/master/data/campaigns/Dead_Water/scenarios/12_Revenge.cfg#L120 could be converted into aiwml?

CelticMinstrel commented 7 years ago

I think the AI recruitment limits are equivalent to LIMIT_CONTEMPORANEOUS_RECRUITS, actually, so while that could be converted to AIWML, the behaviour would change a bit.