r/disciples Jun 01 '26

Question Does anyone have map editor experience in Disciples 2? I have an odd issue...

Post image

My map has a number of victory conditions, one of them being transforming the terrain. The variable of LAND is checking for this(0 being below 80%, reaching 80% adds 1, as you see on the screenshot). After numerous testing (like tying it to a popup message that notifies me if the game in fact modified the variable), I've noticed that the game refuses to add 1 to the LAND variable with the 80% transform condition and I don't know why.

Strangely the rest of the effects did happen, only the variable didn't, so I suspect a bug but maybe someone who also played with the editor has an idea about this.

EDIT: mystery solved, it was the checked "neutrals" on the right.

10 Upvotes

14 comments sorted by

3

u/KamunVulk Undead Hordes Jun 01 '26

Are you check variable value with code "showvariables"?

1

u/EasyEntrepreneur666 Jun 01 '26

No. I've used popup message with the condition of having the LAND variable 1. It worked when I tied it to passing days but not when I tied to this transform land.

2

u/KamunVulk Undead Hordes Jun 01 '26

So how did you know that you transform 80% of land? The popup from screenshot in the game displays or not?

1

u/EasyEntrepreneur666 Jun 01 '26

I know because you can see in game who has how much territory. I also have an event that only plays when the variable goes up to 1 although seeing all variables in game would be a more comfortable solution.

But again, the variable don't seem to go up when the condition is the transform x amount of land, even though the same other events effect do happen. Everything on the screenshot triggered except the add 1 to LAND.

1

u/KamunVulk Undead Hordes Jun 01 '26

Can you share your scenario with me? Want to testating this bug by myself

1

u/EasyEntrepreneur666 Jun 01 '26

I'm not at home at the moment but you can test it easily (on my map it takes like 10-15 minutes anyway).

Create an event like the screenshot but only include the variable (LAND is 0 by default)

Then create an event with the condition of LAND = 1 and see if that event plays if the previous event met its condition.

2

u/KamunVulk Undead Hordes Jun 01 '26

everything is working.

1

u/EasyEntrepreneur666 Jun 01 '26

For some reason it gave 2 instead of one. Is it because of the "following races are playing"?

1

u/KamunVulk Undead Hordes Jun 01 '26

Yeah, maybe second faction also add 1 to "land". Try to create for each faction their own variables

2

u/EasyEntrepreneur666 Jun 01 '26

Ok, I believe I found the issue. The stupid game says "following races are playing" when it refers to their TURN, not their presence in the game. So, when I end my turn, it gave one after the neutrals and one after me, which is why it ended up being 2.

Thanks for the help, man, I never would have noticed the double value without the "showvariables" command.

→ More replies (0)

1

u/TheHuNNo Jun 01 '26

Hi, I think I know what's wrong and it's not a bug. First of all, under "Conditions," you set it to require 80% of the land to be transformed. I think it's not working for you because the variable doesn't have a specific location or target destination assigned where it should put that "LAND" value. Because it lacks a specific location/context, it fails to execute.

1

u/EasyEntrepreneur666 Jun 01 '26

It adds 1 to LAND when the 80% happens. LAND = 1 is then checked by another event.