Search found 73 matches

by Nyanyanyan
June 4th, 2022, 10:25 pm
Forum: Faction & Era Development
Topic: Age of Lords (Era)
Replies: 8
Views: 5838

Re: Age of Lords (Era)

gothic_loli wrote: May 29th, 2022, 3:18 pm Do you still check this thread, Nyanyanyan? I left you a message.
Hey, replied to your DM. I'm usually playing/modding Wesnoth on-and-off so it may take a while for me to reply to stuff.
by Nyanyanyan
August 22nd, 2021, 4:50 pm
Forum: WML Workshop
Topic: [Solved] Undefined Macros for Units with Custom Abilities in Map/Scenario Editor
Replies: 1
Views: 259

Re: Undefined Macros for Units with Custom Abilities in Map/Scenario Editor

I found the solution already.
I did not include the abilities.cfg in the editor section of the _main.cfg.
Now that I included it, everything works as intended.

Should I delete this thread or keep it up for people googling the issue?
by Nyanyanyan
August 22nd, 2021, 4:45 pm
Forum: WML Workshop
Topic: [Solved] Undefined Macros for Units with Custom Abilities in Map/Scenario Editor
Replies: 1
Views: 259

[Solved] Undefined Macros for Units with Custom Abilities in Map/Scenario Editor

Hi, I'm trying to make a scenario using custom units, but when I open the map editor I get the Macro/File missing error and the custom units from my era don't show up. The era in itself works perfectly fine without errors. It seems the abilities.cfg file I'm using to store ability/special macros is ...
by Nyanyanyan
June 5th, 2021, 10:23 am
Forum: Faction & Era Development
Topic: Age of Lords (Era)
Replies: 8
Views: 5838

Re: Age of Lords (Era)

Somehow, I got the advancements from age of lords in a default era game... Do you know how that is possible? Because I'm interested in having them and being able to use them with my default era mods (like extra recruits and extra advancements for default) That's a bug which I need to fix. If you wa...
by Nyanyanyan
January 2nd, 2021, 9:46 pm
Forum: WML Workshop
Topic: Store a variable using [option] in [message]
Replies: 4
Views: 585

Re: Store a variable using [option] in [message]

Huh, you're right. Putting the the [command] tag inside the [option] tag works as intended.
Thanks.
by Nyanyanyan
January 1st, 2021, 5:28 am
Forum: WML Workshop
Topic: Store a variable using [option] in [message]
Replies: 4
Views: 585

Store a variable using [option] in [message]

I'm trying to allow a player to hand over gold to a unit which can then in turn hand that gold over to another player. For that I'm using a right click menu prompt which contains the following code: [store_side] side=$side_number variable=goldsendsidevar [/store_side] [message] speaker=unit message=...
by Nyanyanyan
November 18th, 2020, 4:44 pm
Forum: WML Workshop
Topic: Lifting fog around units with custom status
Replies: 3
Views: 392

Re: Lifting fog around units with custom status

Apparently I did not correctly save before adding the multiturn=yes. Just lifting the fog at turn refresh apparently is not working since it is recalculated at a slightly later point and thus not displayed at all. I now tested it again and it works as intended.
by Nyanyanyan
November 18th, 2020, 4:30 pm
Forum: WML Workshop
Topic: Lifting fog around units with custom status
Replies: 3
Views: 392

Re: Lifting fog around units with custom status

Are you sure you don't want delayed_variable_substitution=yes ? By setting it to no, $possessionvar.side is evaluated at the creation of the event (trigger of partent event), but unless I'm wrong, here you want it to be evaluated when the event is actually triggered. That would mean setting it to y...
by Nyanyanyan
November 18th, 2020, 2:17 am
Forum: WML Workshop
Topic: Lifting fog around units with custom status
Replies: 3
Views: 392

Lifting fog around units with custom status

I'm trying to code a possession ability and for that I need to grant vision around a unit to a side that doesn't control that unit. For some reason the code I've written doesn't work though. I would be happy if someone could tell me what I did wrong. [event] delayed_variable_substitution=no name=tur...
by Nyanyanyan
November 17th, 2020, 4:10 pm
Forum: WML Workshop
Topic: Structure of stored unit array and traits thereof
Replies: 7
Views: 717

Re: Structure of stored unit array and traits thereof

Ok, I no longer use transform_unit because in my use case I need to change the types on the recall list. I didn't bother with the amla, check out the sota-utils as beetlenaut said for that part. In my case, whatever experience the unit currently has gets copied over. apart from modifications, i'm a...
by Nyanyanyan
November 8th, 2020, 12:27 pm
Forum: WML Workshop
Topic: Structure of stored unit array and traits thereof
Replies: 7
Views: 717

Re: Structure of stored unit array and traits thereof

SotA creates a lich out of a necromancer preserving all the traits (and also all experience--even if the unit had an AMLA). There is a macro in the utils folder you can look at. It's a little bit more involved than it seems like it should have to be. Thanks! Edit2: I tested transform_unit some more...
by Nyanyanyan
November 5th, 2020, 3:34 pm
Forum: WML Workshop
Topic: Structure of stored unit array and traits thereof
Replies: 7
Views: 717

Structure of stored unit array and traits thereof

I'm trying to have a unit be replaced by a different unit but retain name and traits (and possibly objects), but I can't get it to work. I'm sure I saw the structure of stored unit arrays somewhere on the wiki but I'm not finding it. The name works fine, as one would expect, but I can't seem to just...
by Nyanyanyan
November 5th, 2020, 3:22 pm
Forum: WML Workshop
Topic: Gaining XP whenever a unit is killed by plague
Replies: 28
Views: 1615

Re: Gaining XP whenever a unit is killed by plague

Truth be told I didn't realize there was a second page of replies :9
And oh yeah, you're right. [filter_attack] is definitely the way to go. I was trying to show how to filter a unit having a weapon, like Helmet tried to do. Didn't think about the case of multiple weapons.
by Nyanyanyan
November 5th, 2020, 12:11 pm
Forum: WML Workshop
Topic: Gaining XP whenever a unit is killed by plague
Replies: 28
Views: 1615

Re: Gaining XP whenever a unit is killed by plague

Bit late, but the reason this doesn't work is that "special" simply isn't a valid unit filter. Only things listed on this wiki page are valid entries for the [filter] tag: https://wiki.wesnoth.org/StandardUnitFilter Using the [has_weapon] tag should do the trick. [filter_second] [has_weapo...
by Nyanyanyan
November 5th, 2020, 12:05 pm
Forum: WML Workshop
Topic: Team colors and transparency
Replies: 4
Views: 554

Re: Team colors and transparency

First of all, I'm not sure using the dev version is a good idea when doing anything multiplayer, since it has a lot of new features (ways to filter for example) that, if I understand this correctly, won't be understood by the stable release. Anyway, regarding your question, couldn't you do it using ...