[solved] Multiplayer Campaign allow player to choose leader

The place to post your WML questions and answers.

Moderators: Forum Moderators, Developers

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
The_Gnat
Posts: 1723
Joined: October 10th, 2016, 3:06 am
Contact:

[solved] Multiplayer Campaign allow player to choose leader

Post by The_Gnat » April 20th, 2018, 9:16 am

When porting the Dragon Lair scenario to 1.14 i encountered a strange problem. I want the user to be able to choose a era/faction/leader.

The original code i was using (in 1.12) for this was:

Code: Select all

    [side]
        side=2
		faction_lock=no
		controller_lock=no
		leader_lock=no
        controller=human
        user_team_name= _ "teamname^Middle"
#ifdef EASY
	gold=200
#endif
#ifdef NORMAL
	gold=150
#endif
#ifdef HARD
	gold=100
#endif
        fog=no
        shroud=no
        share_vision=all
    [/side]
And in 1.12 this works and the player can choose the faction and etc... But in 1.14 when i use this exact code the player cannot choose a leader:
image.png
As you can see in the image the player can choose a faction but the leader still seems to be locked. Because no leader is set by the scenario, if the user does not choose then no leader is created, and they are immediately defeated.

If anyone has any thoughts that would be great! :D I would assume this error is because something has changed since 1.12 that i am not aware of.
Last edited by The_Gnat on April 20th, 2018, 9:11 pm, edited 1 time in total.

gfgtdf
Developer
Posts: 1110
Joined: February 10th, 2013, 2:25 pm

Re: Multiplayer Campaign allow player to choose leader

Post by gfgtdf » April 20th, 2018, 6:43 pm

quite possible that i messed that up... pleasew tr whether adding no_leader=no in those sides meakes it work.
Scenario with Robots SP scenario (1.11/1.12), allows you to build your units with components, PYR No preperation turn 1.12 mp-mod that allows you to select your units immideately after the game begins.


Post Reply