How to do starting villages.
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.
How to do starting villages.
I don't know how to to add villages to a certain side in prestart. I did the {STARTING_VILLAGES} script without the AREA one, just for one village and it didn't work. What do i do?
- beetlenaut
- Developer
- Posts: 2825
- Joined: December 8th, 2007, 3:21 am
- Location: Washington State
- Contact:
Re: How to do starting villages.
{STARTING_VILLAGES} creates an event, so it can't be used inside an event (like prestart). It won't cause an error, but it won't do anything either. Put it directly in the [scenario] tag.
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
-
- Posts: 4
- Joined: July 23rd, 2018, 1:11 pm
Re: How to do starting villages.
I don't know if it's the best way of doing it but I used the code below (example coordinates etc.) multiple times for campaign scenarios in 1.14 already and it works.
Code: Select all
[event]
name=prestart
[capture_village]
side=1
x,y=11,22
[/capture_village]
[/event]
- ResExsention
- Posts: 97
- Joined: March 17th, 2018, 12:00 am
- Location: Alberta, Canada
Re: How to do starting villages.
That would work. I don't think it's efficient though. Have you considered putting that in a macro? Like:
Oh, and by the way, the
Code: Select all
#define CAPTURE_A_VILLAGE SIDE X Y
[village]
x={X}
y={Y}
[/village]
#enddef
[village]
tag is sort of like [capture_village]
, but can be used in a side definition.I am a ranger and my WML knives will implant themselves in your back.
Creator of the abandoned campaign Royalties Forgotten and the work in progress campaign Purger of Evil.
Maintainer of Fate of a Princess.
Creator of the abandoned campaign Royalties Forgotten and the work in progress campaign Purger of Evil.
Maintainer of Fate of a Princess.
Re: How to do starting villages.
No matter what you do, having macro makes it less efficient.
- ResExsention
- Posts: 97
- Joined: March 17th, 2018, 12:00 am
- Location: Alberta, Canada
Re: How to do starting villages.
How so? Maybe I said it wrong. Maybe I should have said reusable. Either way,
[village]
or [capture_village]
in a macro do the same thing. It's all on performance, mostly.I am a ranger and my WML knives will implant themselves in your back.
Creator of the abandoned campaign Royalties Forgotten and the work in progress campaign Purger of Evil.
Maintainer of Fate of a Princess.
Creator of the abandoned campaign Royalties Forgotten and the work in progress campaign Purger of Evil.
Maintainer of Fate of a Princess.