Connection ErrorBad RequestThis page went staleSession ExpiredSign in requiredForbiddenNot FoundToo Many RequestsServer ErrorBad GatewayService UnavailableGateway TimeoutHTTP Version Not Supported
Session Expired
Your session has expired. Please log in to continue.
Sign in required
You need an account to do that. Sign in or create one — it only takes a minute.
This page went stale
Your security token was rejected, usually because the page sat open too long or you signed in elsewhere. Nothing was saved. Reload the page and try again.
Request Failed
We encountered an issue while processing your request.
Please check your internet connection and try again.
Added 3 minutes ago Does anyone know a script where you stand in a region, and then an army appears? Also, I click on Object Properties, and nothing changes. Why?
Added 2 minutes ago I clicked there, and nothing changes. There's no window with settings or anything else.
Sincerely.
Added 3 minutes ago Does anyone know a script where, when you enter a region, an army is added to you? Also, I click on Object Properties, but nothing changes. Why?
Have you selected the creatures on the map? If not, it shouldn't work – you need to select the object first, and then click on object properties.
Best regards.
P.S. Maybe it would be better to show it visually? With screenshots?
Djulian13, I meant character stats, and is it possible to open them with a space, like placing a peasant but giving him different stats, or is that not possible?
Take the advanced editor panel (it's in the lower left corner for me), right-click on the frame, and in the context menu that appears, select "Select Tables" and check the "Creature" box in the list, then click "OK". Go to "Creature" in the dropdown list of the same panel. Select the desired creature in the tree below. The "MapPropertiesTree" panel (in the upper left corner for me) now contains information about this creature: you need to adjust it.
Added after 18 hours and 57 minutes Heroes of Might and Magic V - Epic War Age is a large mod for Heroes 5. Can you tell me why dwellings and neutrals don't work in mapmaking?
Are you sure you're in the right forum? It seems to me that this topic isn't for discussing bugs in the game or mods for it.
Regarding the issue – it could be a conflict between the mod and another mod, or with the game version – there are various possibilities.
Sincerely.
How do I make a non-player hero follow the main hero on the map?
local x, y = GetObjectPosition(MainHero); MoveHero(hero, x+random(2), y-random(2), -1);
in an infinite loop
Alternatively, you can make it more complex by checking the distance between the heroes, and then use MoveHeroRealTime to move the hero, I think that's how it's done in the campaigns.
local x, y = GetObjectPosition(MainHero); MoveHero(hero, x+random(2), y-random(2), -1);
in an infinite loop
P.S. It can be made more complex with a check for the distance between heroes, and then the hero can be moved using MoveHeroRealTime; I think this is how it is done in the campaigns.
How to create an infinite loop?
local x, y = GetObjectPosition("Hero2");
function Moov() while h==1 do MoveHeroRealTime("Hero3", x+1, y, -1); end;
I wrote it like this, but the script doesn't work; it says something about x in the line MoveHeroRealTime("Hero3", x+1, y, -1);. As far as I understand, there should be a number there, but instead, it's a variable.
Мои карты: Town Готовится:Чума (40%), Сосиска(42%), Война Грааля
Okay, here's the deal.
h=1; while h==1 do x, y = GetObjectPosition("Hero2"); MoveHeroRealTime("Hero3", x+1, y, -1); end; end; When I write it this way, the game freezes completely when launched.
h=1; function Moov() while h==1 do x, y = GetObjectPosition("Hero2"); MoveHeroRealTime("Hero3", x+1, y, -1); end; end; When I attach it to a function, there are no errors, but nothing happens.
h=1;
function Moov() while h==1 do x, y = GetObjectPosition("Hero2"); MoveHeroRealTime("Hero3", x+1, y, -1); end; end; Trigger (REGION_ENTER_AND_STOP_TRIGGGER, "reg", "Moov";) <---this is not a smiley, it's a closing parenthesis)) When entering the region "reg", the game freezes again. Could it be because of the "while" loop?
Мои карты: Town Готовится:Чума (40%), Сосиска(42%), Война Грааля