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.
Error Details:
Share Link
Current questions and answers regarding the map editor.Auto-translated
It's me again. How do I create nighttime lighting? I go into the map properties, open the lighting list, and there are so many options:smile07: Is there a "night" option among them? Or should I use dungeon lighting instead?
Прокрастинирую... "...Завтра станет лучше но солнце так и не взошло..."
Well, it's me again.
Perhaps this question has already been asked, but I'll ask it again. How can I remove the limit of 999 creatures in an army, so that I can have any number of creatures? Or is it impossible to do?
Прокрастинирую... "...Завтра станет лучше но солнце так и не взошло..."
Basically, it's me again. This question might have already been asked, but I'll ask it again. How can I make it so that when setting the number of creatures in an army, there's no limit of 999? Or is it impossible?
You can assign an army of 1 creature to a hero. And using scripts, you can give him as many as you need.
Basically, it's me again. This question might have already been asked, but I'll ask it again. How can I make it so that there's no limit of 999 creatures in an army when setting the number of creatures? Or is it impossible?
In the object's properties tree, you can change the number without any limitations (armySlots).
Hello again! I have 2 questions: 1) Is it possible to change the amount of resources mined in mines? 2) How do I rotate an object diagonally? I read that you need to press the Ctrl key, but it doesn't work:smile27:
Прокрастинирую... "...Завтра станет лучше но солнце так и не взошло..."
I have a hero in the dungeon, and I need to set a condition under which he can be released. That is, so that when someone approaches the dungeon, the prisoner does not immediately come out, but only if certain requirements are met, for example, if 2 artifacts are brought. It should look something like this:
artId=23 # my art's id
art2Id=24 #
If (HasArtifact(getCurrentHero(),artId) and HasArtifact(getCurrentHero(),art2Id) ) then
RemoveArtefact(getCurrentHero(), artId);
RemoveArtefact(getCurrentHero(), art2Id);
FreeHero(prisonedHerO) else
showmessage("an artifact is needed");
end;
However, I can't find how to get the name of the hero who visits the dungeon (there is no such function as getCurrentHero()) and how to make it so that when visiting the dungeon, the hero is released only if my IF condition is met. (FreeHero(prisonedHerO) - ??)
Place a trigger, first disabling the dungeon. Trigger(OBJECT_TOUCH_TRIGGER, dungeon name, function name) The function that the trigger will launch will receive the hero's name as an argument. The dungeon must be disabled using SetObjectEnabled (or something similar, but check the manual), and then enabled again at the appropriate time using the same function. You will also need MakeHeroInteractWithObject so that the hero interacts with the dungeon after it is enabled. However, you can simply place a new hero on the map using a script, as you have done.
The map editor crashes. When I select the size and name, click "Done," and after a while, it crashes before it can generate the world. Does anyone know or have any idea what might be wrong with the editor?
Thank you, it worked! Could you please provide a function to remove/dismiss a hero, preferably so that he doesn't appear in the tavern anymore. Also, a function to get a list of runes from a hero, or to check if a hero has learned a specific rune, and a function to teach a hero a rune.
Hello again! I have 2 questions: 1) Is it possible to change the amount of resources mined in mines? 2) How do I rotate an object diagonally? I read that you need to press the Ctrl key, but it doesn't work:smile27:
1) Not directly, unless you use script-based simulations. 2) Select the object, hold down Ctrl, and click on the cell to which the object should be rotated.
1) Directly - no, unless through scripted imitations. 2) Select the object, hold down Ctrl, and click on the cell to which the object should be rotated.
1) Oh, it's a shame that it's so complicated. (I'm not good with scripts.) 2) Oh, thank you!
Прокрастинирую... "...Завтра станет лучше но солнце так и не взошло..."