No Recall List on Scenario Two

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
Voldar
Posts: 2
Joined: December 24th, 2023, 10:33 pm

No Recall List on Scenario Two

Post by Voldar »

Not sure what I'm missing here. I have the first Scenario running just fine. Everything works. Been referencing various other custom campaigns as well as the core ones in the game and cannot figure out what I'm doing wrong.

When I reach the second Scenario of my campaign, my leader resets, and there's no units in the recall list. I have tried to follow the "Making a Campaign in WML" tutorial, but it never goes over how the second scenario should look like code wise. I downloaded The Final Exam add-on, as it was listed as a beginner learning module, and I still cannot figure out how my code differs to the point where my leader, and all the units reset. I tried making the utils like the tutorial said, made a macro for my leader.

Code: Select all

#define HERO_BALLEN
    id = Ballen
    name = _"Ballen"
    unrenamable = yes
    type = Dwarvish Stalwart
#enddef
This is the same as far as I can tell to the the "Making a Campaign" tutorial says for its leader.

Code: Select all

#define HERO_LEZAREK
    id = Lezarek
    name = _"Lezarek"
    unrenamable = yes
    type = Longbowman
#enddef
My side code for scenario one looks like...

Code: Select all

    [side]
		profile="data/add-ons/The_Final_Exam/erinna.png"
        side=1
        controller=human
        canrecruit=yes
        recruit=Dwarvish Scout,Gryphon Rider, Dwarvish Ram Rider

        gold=150
	income=1

	team_name=Dwarves
	user_team_name=_"Dwarves"

        [leader]
	    {HERO_BALLEN}
        [/leader]
        [unit]
            type=Dwarvish Scout
            id=Norin
            name= _ "Norin"
            x=5
            y=20
            experience=25
            [modifications]
                {TRAIT_LOYAL_HERO}
                {TRAIT_HEALTHY}
            [/modifications]
        [/unit]
    [/side]
While Scenario 2's looks like

Code: Select all

    [side]
        side=1
        controller=human
        canrecruit=yes
        recruit=Dwarvish Fighter, Dwarvish Bear Rider, Dwarvish Thunderer, Dwarvish Guardsman

        gold=150
	income=1

	team_name=Dwarves
	user_team_name=_"Dwarves"

	[leader]
	    {HERO_BALLEN}
	[/leader]

        [unit]
            type=Dwarvish Bear Rider
            id=Kalos
            name= _ "Kalos"
            x=5
            y=20
            experience=25
            [modifications]
                {TRAIT_LOYAL_HERO}
                {TRAIT_HEALTHY}
            [/modifications]
        [/unit]

        shroud=yes
    [/side]
I tried it originally without the macro for the leader, and still ran into this problem, just from altering the base code of The Final Exam. All I did was change the class the name, and suddenly I cannot get the recall list to even work, let alone have my leader and their experience carry over. Any help on this would be appreciated, because I'm lost, but not discouraged. I want to make something, but not being able to link scenarios together means its not a campaign, just a bunch of maps back to back.
gfgtdf
Developer
Posts: 1433
Joined: February 10th, 2013, 2:25 pm

Re: No Recall List on Scenario Two

Post by gfgtdf »

It dpends a bit on which wesnoth version you are using but i think you need to put an id= or save_id= in your [side]s
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.
Voldar
Posts: 2
Joined: December 24th, 2023, 10:33 pm

Re: No Recall List on Scenario Two

Post by Voldar »

That did the trick. Thank you.
Post Reply