How to disable standart victory condition

Discussion and development of scenarios and campaigns for the game.

Moderator: Forum Moderators

Post Reply
Kadel_007
Posts: 16
Joined: November 21st, 2021, 9:14 pm

How to disable standart victory condition

Post by Kadel_007 »

Usually, to win the scenario, you just need to kill all opponent's leaders (even if you don't describe this in [event] statement).
So, the question is: "How to disable standard victory condition, so that game will not end after the death of leaders".

Is it possible with WML or should I use something else?
dwarftough
Posts: 484
Joined: August 4th, 2019, 5:27 pm

Re: How to disable standart victory condition

Post by dwarftough »

In [scenario] tag add an attribute victory_when_enemies_defeated=no
Co-founder and current maintainer of IsarFoundation, Afterlife Rated and overall Wesnoth Autohost Project
Developer and maintainer of my fork of World Conquest, Invincibles Conquest II
Kadel_007
Posts: 16
Joined: November 21st, 2021, 9:14 pm

Re: How to disable standart victory condition

Post by Kadel_007 »

dwarftough wrote: November 23rd, 2021, 12:41 am In [scenario] tag add an attribute victory_when_enemies_defeated=no
Yeah, it helped, thank you. I will just specify other victory conditions in [end_level]
dwarftough
Posts: 484
Joined: August 4th, 2019, 5:27 pm

Re: How to disable standart victory condition

Post by dwarftough »

Kadel_007 wrote: November 23rd, 2021, 7:51 am I will just specify other victory conditions in [end_level]
I'm not sure [end_level] by itself works this way, it just ends the level. You need to put [end_level] in an event with conditions desired.
Co-founder and current maintainer of IsarFoundation, Afterlife Rated and overall Wesnoth Autohost Project
Developer and maintainer of my fork of World Conquest, Invincibles Conquest II
Post Reply