Skip to content

Scripts for beginners.

User Avatar
#177
Auto-translated
zahar0z, does your script work? I suspect it might be related to `s_dwe_fa[0]`, because if you don't specify the indices manually, the tables here are indexed starting from 1 by default. To make it work for all buildings, simply iterate through all of them using a loop: ```lua s_dwe_fa=GetObjectNamesByType("BUILDING_FAIRIE_TREE"); for i, dwe in s_dwe_fa do ReplaceDwelling(dwe, TOWN_PRESERVE, 991 ); end ``` To make it work on all maps, you probably need to edit some script from data.pak/scripts/: advmap-startup.lua or advmap-common.lua or common.lua.
РПГ-сценарий для HoMM5: Путь героя
ЧаВо по созданию карт для HoMM5: ЧаВо