How to add side?
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.
- ChaosRider
- Posts: 846
- Joined: April 15th, 2012, 1:15 pm
How to add side?
How to add completly new side during multiplayer game?
Let's say game is started with 2 sides and now I want spawn enemies for both sides. But third side was not definied in scenario tags before it started.
Let's say game is started with 2 sides and now I want spawn enemies for both sides. But third side was not definied in scenario tags before it started.
Creator of WOTG (+2880 units), MWC (+615 units), SurvivorsArea, RandomColosseum, RC WOTG, RC MWC, ColosseumRandomClonesBattle, BetweenDarknessAndLight, StealingWeapons, MoreUnitsForms, MoreDamageTypes, CanBeOnlyOne, ColosseumOneWinner, BonusSpam, CriticalStrike - available at 1.12 Wesnoth server.
- MiddleTwin
- Posts: 18
- Joined: September 9th, 2017, 5:51 pm
Re: How to add side?
You could make a side start with no units and then spawn some based on an event. From the player's perspective this looks a lot like adding a new side.
Currently writing The Goblin Rebellion, an sp campaign for version 1.12 and up.
-
- Inactive Developer
- Posts: 503
- Joined: April 24th, 2016, 4:18 pm
Re: How to add side?
You can fiddle with the side visibility so the player does not see the empty side at all until you're ready to expose it. See [modify_side]hidden=yes|no. See, in the current master, The South Guard, scenario 07A "Into the Depths" for some examples.
I forked real life and now I'm getting merge conflicts.