Always "night" tile? (for caves)
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.
Always "night" tile? (for caves)
I want to know how I can make certain parts of a map being indepedent of daytime. It's usually used for caves. Can I do this somehow with the map editor or do I need WML? Is there a guide for it? If you have large caves it would be pretty annoying to set every single maptile in WML, I'd assume.
Also does this + illuminate cause "neutral" or "day"?
Also does this + illuminate cause "neutral" or "day"?
Wesnoth
The developer says "no".
The developer says "no".
Re: Always "night" tile? (for caves)
You need to do it in WML, use the [time_area] tag. You also don't need to set each tile individually, because the Standard Location Filter supports ranges like
x=1-45
.
Since "Underground" is basically the same as night, with illumination you'd get neutral.Also does this + illuminate cause "neutral" or "day"?
Co-Creator of The Fellowship of the Clay (BfW 1.10) ~~ Maintainer of the German Code of Conduct
How to isolate problematic WML code ~~ WML error messages and their reasons
How to isolate problematic WML code ~~ WML error messages and their reasons
Re: Always "night" tile? (for caves)
Hmm, I was thinking: Couldn't I just say that all cave-like tiles count as underground?
That would be something like...
That would be something like...
Code: Select all
[time_area]
terrain=Cave
{UNDERGROUND}
[/time_area]
Wesnoth
The developer says "no".
The developer says "no".
Re: Always "night" tile? (for caves)
Yes, that would be possible too. However, it only works if [time_area] is in an [event] (e.g. prestart).
The location filter should be
The location filter should be
terrain=U*
, because all cave terrain codes start with U.Co-Creator of The Fellowship of the Clay (BfW 1.10) ~~ Maintainer of the German Code of Conduct
How to isolate problematic WML code ~~ WML error messages and their reasons
How to isolate problematic WML code ~~ WML error messages and their reasons
Re: Always "night" tile? (for caves)
The standard "illuminates" ability increases the lawful bonus by 25, up to a maximum of +25. So if you set your cave to use the "underground" schedule, the resulting lawful bonus would be -25 (underground) + 25 (illuminates) = 0. If you instead use "deep underground", the result would be -30 (deep underground) + 25 (illuminates) = -5, for a small penalty to lawful (and liminal) units and a small bonus to chaotic units.Rya wrote:Also does this + illuminate cause "neutral" or "day"?
(If you define custom terrain, it is also possible to define an illumination level for that terrain, but that is more work than just defining a [time_area] for what you want.)
Re: Always "night" tile? (for caves)
Deep underground? =o
Are there more types like this? For example something that is always 0 (neutral)?
Are there more types like this? For example something that is always 0 (neutral)?
Wesnoth
The developer says "no".
The developer says "no".
Re: Always "night" tile? (for caves)
Dawn? Dusk? Indoors?Rya wrote:Are there more types like this? For example something that is always 0 (neutral)?
Re: Always "night" tile? (for caves)
Can I find a list of all of them somewhere?
Wesnoth
The developer says "no".
The developer says "no".