Units Not Spawning In Custom Scenario WML
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.
Units Not Spawning In Custom Scenario WML
This is my first attempt at a Wesnoth custom scenario I made it and debugged everything but now I'm at a point where it isn't showing any error messages but it is also not working. I am trying to spawn units. I have this at the end of my .cfg file.
Could someone please tell me how to fix this?
Code: Select all
[scenario]
[unit]
type=Peasant
side=4
name=“King’s Guard”
x=9
y=17
[/unit]
[unit]
type=Peasant
side=4
name=“King’s Guard”
x=11
y=17
[/unit]
[unit]
type=Peasant
side=4
name=“King’s Guard”
x=10
y=18
[/unit]
[/scenario]
- Pentarctagon
- Project Manager
- Posts: 5564
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: Units Not Spawning In Custom Scenario WML
Moved to the WML Workshop.
To create units, all you need is to put the
To create units, all you need is to put the
[unit]
tag describing the unit inside an [event]
. You also may need to use plain quotes(") rather than the curly quotes(”) you have.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
Re: Units Not Spawning In Custom Scenario WML
Ok so I did that and I now I have this but it still isn't spawning
Code: Select all
[event]
name=start
[unit]
type=Peasant
side=4
name="King’s Guard"
x=9
y=17
[/unit]
[unit]
type=Peasant
side=4
name="King’s Guard"
x=11
y=17
[/unit]
[unit]
type=Peasant
side=4
name="King’s Guard"
x=10
y=18
[/unit]
[/event]
- Pentarctagon
- Project Manager
- Posts: 5564
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: Units Not Spawning In Custom Scenario WML
Can you post the code for the entire scenario? Just what you posted above works for me.
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
Re: Units Not Spawning In Custom Scenario WML
I figured out what was wrong I forgot to add side 4 so the units couldn't exist I think.