I have been struggling to make an extensive building tree, and I would like to know if there are any solutions to some of the problems I've encountered.
My first and most important problem is that I can't get my buildings to behave like temples. I have made several groups of buildings and my intent is that the player may only construct one of the buildings inside a group, just as it is with temples. I have a group of 3 buildings f.e. that contains Tavern, Workshop and Hospital. I have tried naming the buildings in EDB so that they all share a prefix such as prefix_tavern, prefix_workshop and prefix_hospital but I was still able to build all 3 of them.
Then, I tried excluding the others by conditionals, f.e. tavern had requirements such as "not building_present workshop and not building_present hospital" (I adapted the requirements for all 3 buildings) and this worked as intended but in return the buildings stopped showing up in my in-game building browser. I can't really have that because the whole point of the building tree I'm making is to force the player to plan the city ahead.
I am hoping someone knows a functional way of achieving this. I read a thread a while back where someone was trying to have 2 temples per city, where both the main temple and the second one offered a choice from the same variety of deities. I can't find that thread however. I would gladly name all my buildings temples in EDB if only I would get it to work.
My second problem has made me completely rethink my original design of the building tree. I was making full use of branched levels so I could fit in more buildings. For example, I had a building containing a start level that branched to 8 possibilities for level 2 and thought I could save about 7 building slots that way but it turned out to be a useless design.
I wanted to make other buildings require one of the 8 branches of that building but was unable to detect which branch was built exactly. The game didn't see my building as a level one and 8 different levels 2 to choose from, but 9 levels one on top of the other. So if I had a building_a that required branch_8 such as "requires building_present_min_level branch_building branch_8", building_a could be built even if branch 1, 2, 3... or 7 where built because it saw branch 8 as the next level after the base level and all the others as superior to it. If building_a required branch_2, than both branch_2 and branch_1 would satisfy the requirement because branch_1 was seen as a superior level to branch_2.
I tried a conditional such as "requires building_present_min_level branch_building branch_8 and not building_present_min_level branch_building branch_7" since apparently branch 8 was seen as level 2 and branch 7 was seen as level 3, thinking that I could narrow it down to the exact level I was looking for but it didn't work at all. The game crashed if I remember correctly. What I would have needed was a conditional such as "building_present current_level" but that doesn't exist. Personally I suspect there is no way of doing this but if anyone has additional knowledge on this it would be very welcome.
These are my greatest plagues regarding EDB so if anyone has any info regarding these I would greatly appreciate it.
EDIT: I completely forgot to mention I am running vanilla RTW although I have both expansions installed. Also, I wasn't able to find answers for these problems in the EDB guide.
Bookmarks