Search found 2278 matches

by Celtic_Minstrel
Today, 12:47 pm
Forum: WML Workshop
Topic: WFL get adjecent units
Replies: 12
Views: 388

Re: WFL get adjecent units

Yes, it's a pure functional language inside Wesnoth (pure meaning that there are no functions with side-effects).
by Celtic_Minstrel
Yesterday, 5:59 pm
Forum: WML Workshop
Topic: AI ability damage counting
Replies: 3
Views: 183

Re: AI ability damage counting

The AI already takes most abilities into account when deciding how to attack, as long as the ability doesn't rely on events. It doesn't handle backstab-like or leadership-like events very well, either – it won't position units so as to take advantage of such abilities, but it will take advantage of ...
by Celtic_Minstrel
Yesterday, 1:02 pm
Forum: WML Workshop
Topic: WFL get adjecent units
Replies: 12
Views: 388

Re: WFL get adjecent units

Out of curiosity (and I'd really like to learn WFL), 1 Could you explain me how is that supposed to work. adjacent_locs(loc(x,y) gets all the locations adjacent to the unit under consideration (x,y is equivalent to self.x,self.y here). map(..., 'loc', unit_at(loc)) converts the list of locations to...
by Celtic_Minstrel
Yesterday, 12:34 am
Forum: WML Workshop
Topic: WFL get adjecent units
Replies: 12
Views: 388

Re: WFL get adjecent units

Do you know how to get all adjacent units, fulfilling certain conditions(enemy=yes)? If you need to do this all in a single formula, I think something like the following should work (untested): size( filter( filter( map( adjacent_locs(loc(x,y)), 'loc', unit_at(loc)), 'maybe_unit', maybe_unit != nul...
by Celtic_Minstrel
Yesterday, 12:21 am
Forum: WML Workshop
Topic: various WFL problems
Replies: 2
Views: 130

Re: various WFL problems

1. How to get the "real" damage of an attack(after applying all other [damage], and other modifications) That's simply not possible to obtain in an ability formula. It would only be an infinite loop if you tried to implement something capable of that into the engine. Outside of the abilit...
by Celtic_Minstrel
Yesterday, 12:18 am
Forum: WML Workshop
Topic: Reset achievements for UMC campaign?
Replies: 32
Views: 3515

Re: Reset achievements for UMC campaign?

It would be beneficial for me as a campaign creator to have the ability to reset the achievements counter exclusively for my own test games. When playing test games, I wanted to reset everything to the beginning. I think adding a button for this in the preferences dialog would be a reasonable reque...
by Celtic_Minstrel
May 26th, 2024, 7:03 pm
Forum: Mainline Campaign Development
Topic: Winds of Fate
Replies: 357
Views: 2521794

Re: Winds of Fate

As for woses it is even less propably since we remember how they reacted when orcs wanted to burn forest (and drakes literally breath with fire). I think it's possible for wose and drakes to get along – unlike orcs, drakes to not clear forests. Certainly, their fiery breath is a great danger to for...
by Celtic_Minstrel
May 20th, 2024, 4:16 am
Forum: WML Workshop
Topic: An error in inspect
Replies: 2
Views: 236

Re: An error in inspect

I'm pretty sure [variables] can just hold any arbitrary WML, so no, I doubt that's the cause.

It seems like a bug to me. I guess the code is probably trying to look up the variable in a different config, somehow…?
by Celtic_Minstrel
May 18th, 2024, 3:25 am
Forum: Art Contributions
Topic: Zombies
Replies: 92
Views: 110749

Re: Zombies

I think Duke_Anax's reasoning makes more sense here. The skin's not going to suddenly lose its pigmentation all of a sudden.
by Celtic_Minstrel
May 18th, 2024, 3:23 am
Forum: Users’ Forum
Topic: Are humans overfeatured?
Replies: 35
Views: 14124

Re: Are humans overfeatured?

The specific span of time can vary by forum, sure. However, I think most people would agree that 7 years is clear necromancy. :)
by Celtic_Minstrel
May 17th, 2024, 6:11 pm
Forum: Lua Labs
Topic: [solved] units on the recall list
Replies: 12
Views: 452

Re: units on the recall list

What I wonder is should there be a difference in .valid between the two? I was looking for the answer to the in the above quoted documentation, but didn't see/understand it. __cfg just returns WML. It doesn't know that it's a unit anymore, it's just an arbitrary untyped chunk of data formatted acco...
by Celtic_Minstrel
May 17th, 2024, 6:04 pm
Forum: Developers’ Discussions
Topic: A grand design for singleplayer mainline lore
Replies: 70
Views: 44167

Re: A grand design for singleplayer mainline lore

It's the masters that would be evil, not the undead themselves. Undead can't do much without a master... Unless they're a lich or a death knight or a ghost, all of which at least potentially retain a will of their own. Though that doesn't make them evil, either. It depends on what they actually do.
by Celtic_Minstrel
May 17th, 2024, 6:03 pm
Forum: Users’ Forum
Topic: Are humans overfeatured?
Replies: 35
Views: 14124

Re: Are humans overfeatured?

That is thread necromancy, isn't it? Yup, it is. Not sure if the forums have an official policy on that though. I personally think it's fine as long as it's actually adding to the thread. (Your mileage may vary on whether holypaladin's comment adds to the thread.) I don't think so. Thread necromanc...
by Celtic_Minstrel
May 17th, 2024, 1:25 pm
Forum: Lua Labs
Topic: [solved] units on the recall list
Replies: 12
Views: 452

Re: units on the recall list

Wait, why are you grabbing .__cfg off the unit in the first place? There isn't really any reason to do that unless you want to stuff it into a variable or read stuff that's not otherwise accessible. It serializes the entire unit to WML. Just don't do that and you should be fine… or if you absolutely...
by Celtic_Minstrel
May 17th, 2024, 1:21 pm
Forum: Developers’ Discussions
Topic: A grand design for singleplayer mainline lore
Replies: 70
Views: 44167

Re: A grand design for singleplayer mainline lore

Since they will be just another evil entity. I don't know why you're assuming that anything is "just another evil entity". Orcs are clearly not evil, as seen by Son of the Black Eye. Undead are really more chaotic neutral than evil in Wesnoth, as seen in the two undead campaigns (and prob...