Help with creating sides
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.
Help with creating sides
Hello, I am a total beginner in programming, only ever done Scratch, but now I wanted to make a campaign, well firstly a scenario, in Wesnoth. I have some errors in my code that I know of (Like using a variable for the "recruit=" key), but there is something I don't know why it happens: When I load the campaign, only my leader spawns, but the other sides don't get generated. I think that I wrote them the exact same way as my leader, but I don't know why they don't spawn. I have already looked in my map, whether they are in there, but I don't think there lies the problem. Maybe someone can help me?
Thank you in advance!
Here is the code for my sides:
...here all of my code:
...and here my map:
Thank you in advance!
Here is the code for my sides:
Code: Select all
[side]
side=1
controller=human
team_name=1
user_team_name=_"Friedhelms Meute"
fog=no
shroud=no
type=Fencer
id=Friedhelm
gender=male
name=_"Friedhelm der Kleine"
canrecruit=yes
recruit=$Ausbildungsliste
{GOLD 100 70 40}
{INCOME 10 7 4}
[/side]
[side]
side=2
controller=ai
team_name=2
user_team_name=_"Der Ork-Haufen"
type=Orcish_Ruler
id=Razul
gender=male
name=_"Razul"
canrecruit=yes
recruit=Orcish_Grunt,Orcish_Archer,Orcish_Assassin,Orcish_Leader,Wolf_Rider
{GOLD 100 140 180}
{INCOME 8 12 16}
[/side]
[side]
side=1
controller=ai
team_name=3
user_team_name=_"Der Zwergenmarsch"
type=Dwarvish_Steelclad
id=Gloin
gender=male
name=_"Gloin III"
canrecuit=yes
Code: Select all
#textdomain wesnoth-Mein_eigenes_Spiel
[scenario]
id=01_erstes_Scenario
name=_"Hilfe"
map_data="{~add-ons/Mein_eigenes_Spiel/maps/erste_Scenario-Karte.map}"
turns=45
{DAWN}
{MORNING}
{AFTERNOON}
{DUSK}
{FIRST_WATCH}
{SECOND_WATCH}
victory_when_enemies_defeated=no
[event]
name=start
[message]
speaker=Friedhelm
message="Ah, I can see my old friend Gloin, he will be able to help us!"
[/message]
[message]
speaker=Gloin
message="Friedhelm! We are guarding the entry to the halls, come here and you will be safe. But it will close soon, so hurry!"
[/message]
[objectives]
side=1
[objective]
description=_"Gelange zu dem Eingang der Zwergenhöhlen"
condition=win
[/objective]
[objective]
description=_"Friedhelm stirbt"
condition=lose
[/objective]
[objective]
description=_"Runden vorbei"
condition=lose
[/objective]
[/objectives]
[/event]
[event]
name="last breath"
[filter]
id=Friedhelm
[/filter]
[message]
speaker=Friedhelm
message="No, I failed you, I am sorry!"
[/message]
[/event]
[event]
name=die
[filter]
id=Friedhelm
[/filter]
[message]
speaker=second_unit
message="Haha, you are doomed!"
[/message]
[endlevel]
result=defeat
[/endlevel]
[/event]
[event]
name=moveto
[filter]
id=Friedhelm
x=44
y=5
[/filter]
[message]
speaker=Friedhelm
message="Yes, we made it!"
[/message]
[endlevel]
result=victory
[/endlevel]
[/event]
[event]
name=time over
[message]
speaker=Gloin
message="The gates are now closed!"
[/message]
[message]
speaker=Friedhelm
message="I don't think we can survive a battle with these foul beasts, we need to fall back!"
[/message]
[endlevel]
result=defeat
[/endlevel]
[/event]
[side]
side=1
controller=human
team_name=1
user_team_name=_"Friedhelms Meute"
fog=no
shroud=no
type=Fencer
id=Friedhelm
gender=male
name=_"Friedhelm der Kleine"
canrecruit=yes
recruit=$Ausbildungsliste
{GOLD 100 70 40}
{INCOME 10 7 4}
[/side]
[side]
side=2
controller=ai
team_name=2
user_team_name=_"Der Ork-Haufen"
type=Orcish_Ruler
id=Razul
gender=male
name=_"Razul"
canrecruit=yes
recruit=Orcish_Grunt,Orcish_Archer,Orcish_Assassin,Orcish_Leader,Wolf_Rider
{GOLD 100 140 180}
{INCOME 8 12 16}
[/side]
[side]
side=1
controller=ai
team_name=3
user_team_name=_"Der Zwergenmarsch"
type=Dwarvish_Steelclad
id=Gloin
gender=male
name=_"Gloin III"
canrecuit=yes
recruit=Dwarvish_Fighter,Dwarvish_Guardsman,Dwarvish_Scout,Dwarvish_Thunderer,Dwarvish_Thunderguard,Dwarvish_Runesmith,Dwarvish_Ulfserker
{GOLD 125 95 65}
{INCOME 12 9 6}
[/side]
[/scenario]
[set_variable]
name=Ausbildungsliste
value="Bowman,Spearman,Ruffian,Thief,Woodsman,Mage"
[/set_variable]
[event]
name=moveto
[filter]
x=29
y=46
[/filter]
[unit]
type=Elvish_Ranger
side=1
x=28
y=46
id=Legolas
gender=male
name=Legolas
unrenamable=yes
canrecruit=no
upkeep=loyal
[/unit]
[message]
speaker=Legolas
message=_"Ich will euch in dem Kampf gegen, diese Monster begleiten, ich werde eine große Hilfe sein!"
[/message]
[message]
speaker=Friedhelm
message=_"Großartig! Wir können jede Hilfe brauchen, ihr könnt uns bestimmt einige von euren Tricks zeigen?"
[/message]
[message]
speaker=Legolas
message=_"Aber natürlich!"
[/message]
[set_variable]
name=Ausbildungsliste
add=",Elvish_Fighter,Elvish_Scout,Elvish_Shaman"
[/set_variable]
[/event]
[event]
name=moveto
[filter]
x=20
y=49
[/filter]
[unit]
type=Skeleton_Archer
side=1
x=21
y=49
id=Arthur
name=Arthur
unrenamable=yes
canrecruit=no
upkeep=loyal
[/unit]
[message]
speaker=Arthur
message=_"Diese Orks hatten mich getötet und ich will mich an ihnen rächen. Ich möchte euch helfen!"
[/message]
[message]
speaker=Friedhelm
message=_"Eine gruselige, aber willkomene Überraschung, natürlich könnt ihr uns beitreten!"
[/message]
[message]
speaker=Arthur
message=_"Vielen Dank, ich habe euch auch die Möglichkeit mitgebracht, andere Seelen, die elbenfalls eine offene Rechnung mit den Orks haben, ausbilden zu können."
[/message]
[set_variable]
name=Ausbildungsliste
add=",Ghost,Skeleton,Walking_Corpse,Dark_Adept"
[/set_variable]
[/event]
Code: Select all
Wog, Wog, Wog, Wog, Wog, Wog, Wog, Wog, Wog, Gg, Wog, Gg, Wog, Wog, Wog, Wog, Wog, Wog, Wwg, Wwg, Wwg, Wwg, Wwg, Wwg, Gg, Gg, Qxe, Qxe, Qxe, Uu, Uu, Uu, Uu, Uu, Uu, Uu, Uu, Uu, Uu, Uu, Ur, Xu, Xu, Xu, Xu, Xu
Wog, Wog,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Gll^Fmw, Gll^Fmw, Gll^Fmw, Gll^Fmw, Rr, Gll^Fmw, Gll^Fmw, Gll^Fmw, Gs^Fms, Mm, Mm, Mm, Gll^Fmw, Gll^Fmw, Gll^Fmw, Gll^Fmw, Gll^Fp, Gll^Fmw, Gg, Gll^Fmw, Gs^Fds, Gs^Fms, Gll^Fmw, Mm, Gll^Fmw, Gll^Fmf, Gll^Fmf, Gg, Gll^Fmw, Gll^Fmw, Gll^Fmw, Gll^Fmw, Gs^Eff, Gs^Gvs, Gs^Eff, Gll^Fmw, Gll^Fmw, Md, Hhd
Gll^Fmw, Gll^Fmw, Gll^Fmw, Gll^Fmw, Gll^Fmw, Gll^Fmw, Gll^Fmw, Gll^Fmw, Gll^Fmw, Gll^Fmw, Gll^Fmw, Rr, Rr, Gll^Fmw, Gll^Fmw, Gll^Fmw, Gll^Fmw, Mm, Gll^Fmw, Gll^Fmw, Gll^Fmw, Gll^Fmw, Gll^Fmw, Gll^Fmw, Gll^Fmw, Gs^Fds, Gs^Fds, Gll^Fmw, Gll^Fmw, Gll^Fmw, Gg, Mm, Mm, Gll^Fmw, Gll^Fmw, Gll^Fmw, Gll^Fmw, Gll^Fmw, Gll^Fmw, Gll^Fmw, Gll^Fmw, Gll^Fmw, Hhd, Hh^Vhh, Hhd, Hhd
Re: Help with creating sides
I see you use custom unit types for side 2 and 3 (side=1 should be removed or changed). I suggest first getting it working with core units and create custom types later.
- Spannerbag
- Posts: 562
- Joined: December 18th, 2016, 6:14 pm
- Location: Yes
Re: Help with creating sides
Hiya,
Just a couple of quick thoughts:
1. It might be worth checking the log, it sometimes reports issues that don't appear on-screen.
2. Also I think this won't work the way you expect:
I assume you want to append the string ",Elvish_Fighter,Elvish_Scout,Elvish_Shaman" to whatever (string) value
However
Just tried this code:
The first message was correct but the second value was "0" (zero).
There are varioius ways to append string values but this way is probably the simplest (at least for short strings)
The "|" just indicates the end of the variable name ("testvar"), it doesn't do anything clever and can be omitted if it's obvious where the variable name ends.
Hope this helps and good luck with your first campaign!
Cheers!
-- Spannerbag
Just a couple of quick thoughts:
1. It might be worth checking the log, it sometimes reports issues that don't appear on-screen.
2. Also I think this won't work the way you expect:
Code: Select all
[set_variable]
name=Ausbildungsliste
add=",Elvish_Fighter,Elvish_Scout,Elvish_Shaman"
[/set_variable]
$Ausbildungsliste
is currently assigned?However
[set_variable]
's add
key expects a numeric value.Just tried this code:
Code: Select all
{VARIABLE testvar "first"}
{DEBUG_MSG (_"before: testvar=$testvar")}
[set_variable]
name=testvar
add="second"
[/set_variable]
{DEBUG_MSG (_"after: testvar=$testvar")}
There are varioius ways to append string values but this way is probably the simplest (at least for short strings)
Code: Select all
{VARIABLE testvar "first"}
{DEBUG_MSG (_"before: testvar=$testvar")}
{VARIABLE testvar "$testvar|second"} # This appends "second" to $testvar's value
{DEBUG_MSG (_"after: testvar=$testvar")}
Hope this helps and good luck with your first campaign!
Cheers!
-- Spannerbag
- lhybrideur
- Posts: 379
- Joined: July 9th, 2019, 1:46 pm
Re: Help with creating sides
Hi,
I see several problems with your sides code.
First, there are two side=1 (first and third sides).
Second, there are no location for the leader to spawn (x,y=) in any of the sides. I would need to try because it might work anyway, but the leader would definitely not spawn where you want them too.
Have you tried making a basic scenario (no extra events, only the three sides and the leaders placed on the map) with the scenario editor of BfW first?
I see several problems with your sides code.
First, there are two side=1 (first and third sides).
Second, there are no location for the leader to spawn (x,y=) in any of the sides. I would need to try because it might work anyway, but the leader would definitely not spawn where you want them too.
Have you tried making a basic scenario (no extra events, only the three sides and the leaders placed on the map) with the scenario editor of BfW first?
Re: Help with creating sides
Locations come from map file, I checked those were present.
Re: Help with creating sides
I think I don't use custom unit types I took them from here: https://units.wesnoth.org/1.16/mainline ... nline.html
Instead I just wrote down the wrong type for them. About the two "side=1", I originally had "side=3" and "team_name=1" for side 3, but then I tried to turn side 3 into a foe, to find out, whether the "team_name=1" was the problem and when I changed it back, I must have mixed up "team_name=" and "side=".
Re: Help with creating sides
Hello, about the two "side=1", I originally had "side=3" and "team_name=1" for side 3, but then I tried to turn side 3 into a foe, to find out whether the "team_name=1" was the problem and when I changed it back, I must have mixed up "team_name=" and "side=".lhybrideur wrote: ↑November 3rd, 2023, 7:44 am Hi,
I see several problems with your sides code.
First, there are two side=1 (first and third sides).
Second, there are no location for the leader to spawn (x,y=) in any of the sides. I would need to try because it might work anyway, but the leader would definitely not spawn where you want them too.
Have you tried making a basic scenario (no extra events, only the three sides and the leaders placed on the map) with the scenario editor of BfW first?
And about the locations, I have them in my map file, that should be enough right?
I have not tried it without the events, I will see how that goes, but I think I know where my problem is: I have given the two other leaders (side 2 and side 3) the wrong "type=" value, I gave them underscores where I actually should have given them a space.
Re: Help with creating sides
Hi,Spannerbag wrote: ↑November 3rd, 2023, 12:59 am Hiya,
Just a couple of quick thoughts:
1. It might be worth checking the log, it sometimes reports issues that don't appear on-screen.
2. Also I think this won't work the way you expect:
I assume you want to append the string ",Elvish_Fighter,Elvish_Scout,Elvish_Shaman" to whatever (string) valueCode: Select all
[set_variable] name=Ausbildungsliste add=",Elvish_Fighter,Elvish_Scout,Elvish_Shaman" [/set_variable]
$Ausbildungsliste
is currently assigned?
However[set_variable]
'sadd
key expects a numeric value.
Just tried this code:
first of all thanks for all the tips,Code: Select all
{VARIABLE testvar "first"} {DEBUG_MSG (_"before: testvar=$testvar")} [set_variable] name=testvar add="second" [/set_variable] {DEBUG_MSG (_"after: testvar=$testvar")}
The first message was correct but the second value was "0" (zero).
There are varioius ways to append string values but this way is probably the simplest (at least for short strings)
The "|" just indicates the end of the variable name ("testvar"), it doesn't do anything clever and can be omitted if it's obvious where the variable name ends.Code: Select all
{VARIABLE testvar "first"} {DEBUG_MSG (_"before: testvar=$testvar")} {VARIABLE testvar "$testvar|second"} # This appends "second" to $testvar's value {DEBUG_MSG (_"after: testvar=$testvar")}
Hope this helps and good luck with your first campaign!
Cheers!
-- Spannerbag
I think I already know where my problem about the spawning is: I have given the two other leaders (side 2 and side 3) the wrong "type=" value, I gave them an underscore where I actually should have given them a space.
But thank you very much for the tips about the variables but I do have a question or two: While I know that "testvar" is just a placeholder for a name of a variable, I want to make sure I understand the "first" thing after the variable name. I would assume it is the value of the variable? If this is right, could I also write "$testvar" instead of the value? I ask this, because I want to have two events were something will be added to the variable, but I can't be sure which one would fire first if it even fired at all.
I will fix the errors about the spawning and then look into the log and also change the variable things.
Also thank you for the good wishes.
- Atreides
- Posts: 1090
- Joined: March 30th, 2019, 10:38 pm
- Location: On the 2nd story of the centre village of Merwuerdigliebe turning the lights on and off
Re: Help with creating sides
Haha, Der Ork Haufen. Gefällt mir. Looking forward to trying it when done.
Re: Help with creating sides
Generally variables are only available during [event]s. So not in the scenario definition.
The recruit key does automatically add too the recruit list, so if you already had a recruit list from a previous scenario, it does not overwrite it,
The recruit key does automatically add too the recruit list, so if you already had a recruit list from a previous scenario, it does not overwrite it,
Try out the dark board theme.
Re: Help with creating sides
Thanks for the tip!
But this is the first scenario, what can I do for the list to change within the scenario at specific events? I want the player to be able to encounter someone on a specific location and then being able to recruit more different units. I should probably make a new thread for that right?
- Pentarctagon
- Project Manager
- Posts: 5597
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: Help with creating sides
See https://wiki.wesnoth.org/DirectActionsW ... recruit.5D and the next couple tags following it.Mr_Moist wrote: ↑November 4th, 2023, 12:24 am But this is the first scenario, what can I do for the list to change within the scenario at specific events? I want the player to be able to encounter someone on a specific location and then being able to recruit more different units. I should probably make a new thread for that right?
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
- Spannerbag
- Posts: 562
- Joined: December 18th, 2016, 6:14 pm
- Location: Yes
Re: Help with creating sides
Hiya,
Edit: missed off last bit of post
{VARIABLE.. is a core macro that comes with the game, the definition is:
So it's just the same
Sets the value of the variable named
So the value of
This is just a lazy way of displaying the value of
This sets
Cheers!
-- Spannerbag
Edit: missed off last bit of post
Just to clarify,Mr_Moist wrote: ↑November 3rd, 2023, 2:29 pm Hi,
...While I know that "testvar" is just a placeholder for a name of a variable, I want to make sure I understand the "first" thing after the variable name. I would assume it is the value of the variable? If this is right, could I also write "$testvar" instead of the value? I ask this, because I want to have two events were something will be added to the variable, but I can't be sure which one would fire first if it even fired at all.
I will fix the errors about the spawning and then look into the log and also change the variable things.
Also thank you for the good wishes.
{VARIABLE.. is a core macro that comes with the game, the definition is:
Code: Select all
#define VARIABLE VAR VALUE
# Macro to initialize a variable. Strictly a syntatic shortcut.
[set_variable]
name={VAR}
value={VALUE}
[/set_variable]
#enddef
[set_variable]
as you used, I'm just lazy {VARIABLE testvar "first"}
Sets the value of the variable named
testvar
to the string "first".So the value of
testvar
(i.e. $testvar
) is now "first", though it could be anything you want; -99, 4.77 or "W1Bbl3".{DEBUG_MSG (_"before: testvar=$testvar")}
This is just a lazy way of displaying the value of
testvar
{VARIABLE testvar "$testvar|second"} # This appends "second" to $testvar's value
This sets
testvar
to "the present value" with the string "second" immediately bolted on.{DEBUG_MSG (_"after: testvar=$testvar")}
Hope this helps/makes sense!Cheers!
-- Spannerbag
Re: Help with creating sides
Thank you so much! I didn't know there was such an easy way for that!Pentarctagon wrote: ↑November 4th, 2023, 12:51 amSee https://wiki.wesnoth.org/DirectActionsW ... recruit.5D and the next couple tags following it.Mr_Moist wrote: ↑November 4th, 2023, 12:24 am But this is the first scenario, what can I do for the list to change within the scenario at specific events? I want the player to be able to encounter someone on a specific location and then being able to recruit more different units. I should probably make a new thread for that right?