When working on improvements for my mod, I encountered some cases where I want to restrict them to some plot types, which can't be done through the existing tables and columns in the database. For example, I want my version of the Terrace Farm to require the following:
(grass OR plains) AND hills AND (fresh water OR adjacent mountain)
I think it can probably be done using the CanBuild event, but I'm not very good at such things, so I need an example of Lua code that does something similar to be able to do it properly. I'd be grateful if someone can post such an example here, or point me to it...
(grass OR plains) AND hills AND (fresh water OR adjacent mountain)
I think it can probably be done using the CanBuild event, but I'm not very good at such things, so I need an example of Lua code that does something similar to be able to do it properly. I'd be grateful if someone can post such an example here, or point me to it...