Auto-translated
There is CreateArtifact.
New here? I'm Roha — want a quick tour?
There is CreateArtifact.
Is it possible to make it so that when a hero enters a specific region, one unit of creatures transforms into another, while maintaining the same number?
Well, you could place another unit somewhere in the corner of the map with the required number of warriors, and when the first unit enters, remove it and set the position of the second unit to the coordinates of the first. You could also add some epic animation...
Added 8 minutes later
Or are you talking about a unit on the map, not as a creature in a hero's army?
No, I know animations for maps very well. In the hero's army. For example, according to the plot, the main hero, a Knight, before entering the lands of the Dwarves, where there is snow, orders all the horses to be released because there will be nothing for them to eat. And all the Knights of Isabel become zealots.
No, I know animations for maps very well. In the hero's army. Like, according to the plot, the main hero, a Knight, before entering the lands of the Dwarves, where there is snow, orders all the horses to be released because they will have nothing to eat. And all of Isabel's Knights become zealots.
local n = GetHeroCreatures("hero_name", CREATURE_CHAMPION)
if n > 0 then
RemoveHeroCreatures("hero_name", CREATURE_CHAMPION, n)
sleep()
AddHeroCreatures("hero_name", CREATURE_VINDICATOR, n)
end
You can check the script of the map itself. It should be in data/data.pak/Maps/Scenario/A2C0M1/.
How do you "disable" a computer player so that their heroes stand in one place and do nothing, but they can still build and recruit units in cities?
if it's still relevant, then you need to add this to all heroes:
EnableHeroAI('hero_name', nil);
I can't offer any advice regarding campaigns.
Do the scenarios created by campaign and map authors have system names? If so, how can they be determined?