Auto-translated
Ment, it's almost done, but the problem remains...
I used the ID of existing items... take a look.
I used the ID of existing items... take a look.
New here? I'm Roha — want a quick tour?
function AddArchangelsSpecialization()
if GetObjectDwellingCreatures('AdvMapTown-12119', CREATURE_ANGEL) ~= -1 then
local add = 1
if grail_built == 1 then
add = add + 3
end
SetObjectDwellingCreatures('AdvMapTown-12119', CREATURE_ANGEL, GetObjectDwellingCreatures('AdvMapTown-12119', CREATURE_ANGEL) + add)
end
end
function NewDay();
if GetDate(DAY_OF_WEEK) == 1 then
AddArchangelsSpecialization()
end
end
Trigger(NEW_DAY_TRIGGER, 'NewDay')
grail_built = 0
function WaitForBuildGrail()
while GetTownBuildingLevel('AdvMapTown-12119', ID_14) == 0 do
sleep(10)
end
grail_built = 1
end
startThread(WaitForBuildGrail)
The town's name is not assigned as the default. Give it a script name and substitute it instead of AdvMapTown-12119. ID_14 is also incorrect; just use 14.
7Legion_5_Creature_Tier>7<7Legion_5_Creature_Tier
7Legion_5_Creature_Count>1<7Legion_5_Creature_CountIf this is not where to write the ID, then where should I write it? Replacing someone else's ID is not a problem, I just need to know where and how to change it.<7Legion_5_Creature_Tier>7
<7Legion_5_Creature_Count>1
It's not a problem for me to replace someone's ID; I just need to know where and what to change it to.
but the idea was to create an independent h5u so as not to bother with the maps again.
The ID is definitely in the documentation - IDs_for_scripts.pdf.
2. How can I implement a "week of" bonus when building a Grail (like the "week of demons" in Heroes 3), and also ensure that after construction, the bonus only increases the growth of a SPECIFIC type of creature, without changing the bonus for other creatures? (For example, if you build a Grail in a Knight city with an Archangel specialization, you get a +1 Archangel bonus from the city's specialization + a +3 bonus from the Grail + all weeks are declared Archangel or Elrath weeks...).