Skip to content

Scripts for beginners.

User Avatar
#160
Auto-translated
zahar0z

We need to figure out one more thing: is it possible to allow infinite building through scripts or some other means, instead of one building per day (preferably in a specific city, but if that's not possible, then it's acceptable for all cities)?

As far as I know, it's not possible, although maybe I just don't know all the tricks. The only thing that comes to mind is to implement it through a custom campaign spell talkbox with building options, but this would require a fairly large script.
zahar0z

Is it possible to bypass this limitation in some clever way, for example, by using a script to quickly exit and re-enter the city (although this seems impossible), but maybe someone has other ideas?

The situation is even more dire here. Only general game functions like random, sqrt, etc., work in the city window, as well as 2 functions called when hiring a hero or creatures. So, as far as I can tell, it's impossible to do anything in the city.