An update. I was indeed able to transfer the powers of one building to another, just like Otter had suggested. Here, I wanted to rename the "Lenin Statue" to "Chairman Statue" (as it's a Chinese scenario, Chairman Mao is more suitable than Lenin) and then I wanted to give it the same powers as a Temple would have. This is how I did it:
Now it works fine in test runs. I attach a screenshot to show that the Chairman Statue gives bonuses according to a Temple.
- Rename the Lenin Statue to Chairman Statue in the Buildingrules.xml file. (This is only for aesthetic purposes, but it will require the NAME and the TYPENAME fields to be changed. Also you need to do a find and replace of all instances of Lenin and change it to Chairman in all rules files... which shouldn't be hard for Lenin's Statue, but which might be much more tedious for buildings that see a lot more use, like the Library.)
- Change the FROM field to read Temple, so the game knows it has the same powers.
- Change the BUILD-FLAGS field to be the same as Temple (jam) and add "c" to the end, so the game knows that all Temples should convert to Chairman Statues when the relevant tech is researched. (This may cause problems if the prior building is smaller than the later building. Here, Chairman is smaller than the Temple so we're all right.) So essentially here the BUILD-FLAGS field reads "jamc".
- Change the CAT and GRID-X and GRID-Y entries to be the same as Temple. CAT becomes "e" and the grids become 3 and 0 respectively. This ensures that the new building's icon will appear in the correct place in the economic building menu.
Now it works fine in test runs. I attach a screenshot to show that the Chairman Statue gives bonuses according to a Temple.
Comment