Хаос во всём тоже порядок...
Кампания Седьмое затмение. Грань Империи.
В стадии разработки 10%
New here? I'm Roha — want a quick tour?
No, I would like it to simply slowly approach from a certain angle and then stop completely. Without any sudden movements.
Ah, yes. You said that there is a way to set a point for a unit/hero to move to. Can you tell me how to do this?
And another question, probably also related to movement. How can I make a unit turn to the angle I need (for a certain second, of course)?
And another question. How do I add spells to the video? In Select Tables, I choose AdvMapEffect.
@print(GetObjectNamesByType('TOWN')) The name turned out to be AdvMapTown-12119 (the city of Angelat, the one in the upper right corner of the map).
Here's the code: 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)
I decided to create my own set.
Found it! I finally found the descriptions of their sets in DefaultStats.xdb! You can edit them.