What happens if a leader is promoted?

The place to post your WML questions and answers.

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.
Post Reply
User avatar
malthaussen
Posts: 36
Joined: April 6th, 2024, 11:05 pm

What happens if a leader is promoted?

Post by malthaussen »

Supposing a side's leader earns enough XP during a scenario to advance in rank. But the next scenario has him set up as his previous rank. How does the game handle this?

eg, suppose Side 1's leader is a Dragoon but kills enough bad guys to qualify for Cavalier. But the next scenario's .cfg has him as a dragoon, because it was written before he was promoted. Is there a way to make the promotion carry over to the next scenario as it would with regular units?

-- Mal
"Of two choices, I always take the third."
User avatar
Heindal
Posts: 1360
Joined: August 11th, 2011, 9:25 pm
Location: Germany, Karlsruhe
Contact:

Re: What happens if a leader is promoted?

Post by Heindal »

As long as the leader id is the same as before, it will ignore anything (such as unit type) you defined inside the scenario and will spawn it in with the promoted rank from the previous scenario.
The future belongs to those, who believe in the beauty of their dreams.
Developer of: Trapped, Five Fates, Strange Legacy, Epical, UR Epic Era
Dungeonmasters of Wesnoth, Wild Peasants vs Devouring Corpses, Dwarf Dwarfson Dwarvenminer
User avatar
malthaussen
Posts: 36
Joined: April 6th, 2024, 11:05 pm

Re: What happens if a leader is promoted?

Post by malthaussen »

Ah, very good. Thank you.

-- Mal
"Of two choices, I always take the third."
Post Reply