I had a problem with side setting at the start of the scenar

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
User avatar
IIIO_METAL
Posts: 202
Joined: January 18th, 2017, 5:03 pm
Location: japan

I had a problem with side setting at the start of the scenar

Post by IIIO_METAL »

Hello.
I have problems with side setting at the beginning of the scenario.
I did not understand where I was wrong. This side setting works fine with version 1.12.6, but in 1.13.6 the leader unit does not appear and as soon as the scenario starts the defeat is finalized.

Code: Select all

    [side]
        side = 1
        controller = human
        team_name = Player
        persistent = yes
        save_id = Player
        type = $Player[0].Player_select|
        id = Player
        canrecruit = yes
        recruit = ""
        x,y = $Player[0].X| , $Player[0].Y|
        {GOLD 0 0 0}
        {INCOME -2 -2 -2}
        village_gold = 0
    [/side]
What should I do in order to run this code in 1.13.6?
Creator of "Mountain Witch" & "Castle of evil spirit"
gfgtdf
Developer
Posts: 1432
Joined: February 10th, 2013, 2:25 pm

Re: I had a problem with side setting at the start of the sc

Post by gfgtdf »

Did you check the output of the error log?


probably variave substitution in [side] doesn't work the same as before (for type= i'm quire suprised if it ever had worked). I'd reccomend to first try replacing x,y = $Player[0].X| , $Player[0].Y| with fixed values and then type = $Player[0].Player_select| pot chek whether teh scneario works then. ahen it works you coudl then try to move the units to it's destination in a prestart event.
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.
User avatar
IIIO_METAL
Posts: 202
Joined: January 18th, 2017, 5:03 pm
Location: japan

Re: I had a problem with side setting at the start of the sc

Post by IIIO_METAL »

Gfgtdf, Thanks for the advice.

I did not know that using variable substitution on the side is a mistake.
According to the advice, I decided to do a detailed work with prestart.

And you may not believe it, I did not know how to check the error log. Next time, I will consider myself a little more before questioning someone. Thank you very much! :)
Creator of "Mountain Witch" & "Castle of evil spirit"
Post Reply