Two-flag system in one team

Brainstorm ideas of possible additions to the game. Read this before posting!

Moderator: Forum Moderators

Forum rules
Before posting a new idea, you must read the following:
Post Reply
User avatar
holypaladin
Posts: 164
Joined: August 14th, 2017, 9:07 pm
Location: Poland

Two-flag system in one team

Post by holypaladin »

In the first scenario of Descent into Darkness, we also have some soldiers (spearmen, bowmen) in Malin's team who are clearly unwilling to fight in his team and there is no confrontation (diplomatic or physical) only because of the ongoing orc attack. I propose creating a two-flag system for this scenario (loyalist flag for the soldiers, undead flag for Malin and his walking corpses). Certainly such a solution would improve the consistency of the campaign (I don't think the soldiers would be willing to fly undead flags). This would be an innovative idea (I haven't encountered it yet) but I think a talented programmer could handle it easily. ;)
„Ad Maiorem Dei Gloriam"
User avatar
beetlenaut
Developer
Posts: 2827
Joined: December 8th, 2007, 3:21 am
Location: Washington State
Contact:

Re: Two-flag system in one team

Post by beetlenaut »

holypaladin wrote: April 15th, 2024, 5:30 pm I think a talented programmer could handle it easily.
I don't think this is true. Flags are set in the [side] tag. You can use [modify_side] to change the flag during the scenario, but presumably, that would do the same thing: change them for the whole side. Allowing two flags on the same side would take a change to the engine, and a change to how flags are set in WML as well. It's not a bad idea for that scenario, but I don't know if it's important enough for a developer to take that on. There might not be any other use cases.
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
User avatar
lhybrideur
Posts: 369
Joined: July 9th, 2019, 1:46 pm

Re: Two-flag system in one team

Post by lhybrideur »

On Discord, Refumee posted the following code that is supposed to do that.

Code: Select all

        [object]
            [effect]
                apply_to=image_mod
                add=RC(magenta>red)
            [/effect]
        [/object]
User avatar
Lord-Knightmare
Discord Moderator
Posts: 2365
Joined: May 24th, 2010, 5:26 pm
Location: Somewhere in the depths of Irdya, gathering my army to eventually destroy the known world.
Contact:

Re: Two-flag system in one team

Post by Lord-Knightmare »

That does nothing to modify the flag. That code segment only modifies the team color of the units. In this case, I think swapping the team color of the 3 loyalists units in Malin's side might work.
Creator of "War of Legends"
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
Duke_Anax
Posts: 35
Joined: March 29th, 2024, 10:50 pm

Re: Two-flag system in one team

Post by Duke_Anax »

The Dark Mages scenario in Liberty does something like this, by simply having the player control two allied teams.
User avatar
beetlenaut
Developer
Posts: 2827
Joined: December 8th, 2007, 3:21 am
Location: Washington State
Contact:

Re: Two-flag system in one team

Post by beetlenaut »

Two teams is not a good solution in this case, because you would have to move the two groups one at a time. It would make that scenario quite a bit harder.
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
User avatar
Lord-Knightmare
Discord Moderator
Posts: 2365
Joined: May 24th, 2010, 5:26 pm
Location: Somewhere in the depths of Irdya, gathering my army to eventually destroy the known world.
Contact:

Re: Two-flag system in one team

Post by Lord-Knightmare »

beetlenaut wrote: Two teams is not a good solution in this case, because you would have to move the two groups one at a time. It would make that scenario quite a bit harder.
I would not say hard. It's more describable with "frustrating".
Controlling two sides is vexing.
Plus, in these cases, abilities like leadership/inspire are not usable.
Healing needs better positioning.

Also, two-flag system introduces even more things to consider: how would you show second flag in the current screen which only shows one flag (the main one).
Creator of "War of Legends"
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
Post Reply