Connection ErrorBad RequestSession 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.
Request Failed
We encountered an issue while processing your request.
Please check your internet connection and try again.
Error Details:
Share Link
Posts from Current questions and answers regarding the map editor.
But can you do it underground? I thought it wasn't possible...
In that case, I usually divide the video into parts.
When creating a video, a window appears where you need to specify the desired map.xdb file.
I make a copy of this file, name it, for example, map2.xdb, and in it, I specify InitialFloor=1, meaning that the underground level is displayed by default.
First, I create a video with map.xdb, for example, and make it on the surface, then I create one with map2.xdb. This results in 2 or more videos. However, when they are shown sequentially, there is a small pause, but it allows you to create a video on different levels.
Мои карты: Town Готовится:Чума (40%), Сосиска(42%), Война Грааля
If it’s necessary to film on two levels (both on the surface and in the Dungeon), then part of the surface will have to be designed as a Dungeon. Fence off part of the map with underground walls. You can see an example in the dialogue DialogScenes\A2Single\SM2\S2\DialogScene.xdb
Added 2 minutes later The second question then becomes irrelevant.
Added 7 minutes later If the surface is not needed, then 1. Open the map in Notepad. 2. Change the InitialFloor parameter to 1. 3. Close. 4. Save.
When you open the map/dialogue, the Dungeon should be displayed.
Then set the height to ≈17.
Thank you, it helped.
Added 11 hours 43 minutes later Another question arose: how do I make scripted heroes be released from the prison? (since the prison settings only apply to regular heroes).
Added 3 minutes later Never mind, I found the answer myself
How do I make a map with both surface and dungeon levels (a two-level map)? How do I create a video? How do I write scripts? I looked at scripts from other maps with scripts, but I don't understand anything! How do I make it so that scripted heroes are released from the dungeon (for example: Alantír, Isabel)?
How do you make a map that has both surface and Dungeon levels (a two-level map)? How do you create a video? How do you write scripts? I looked at the scripts on other maps with scripts, but I don't understand anything! How do you make it so that scripted heroes are released from prison (e.g., Alantír, Isabel)?
1) When the map is already created in the editor, press M on the keyboard, or View -> Map properties. A window with various settings will open. Check the "HasUndergroundLevel" box. Save. 2) To create a video, first "expand" the editor, then Resource -> Select Tables -> DialogScenes -> Ok. And create. More detailed information about this can be found in the corresponding topic here. 3) For scripts, open the Map properties window, select the Scripts tab, and click Edit Script there. Or use a special program posted on the website. 4) There are Manuals on writing scripts. I will post what I have. 5) I did the prison thing through scripts (there might be another way). Learn them first. link to download the Manuals http://rghost.ru/47699868
Added 2 minutes later Now I have some questions: 1) Which function in Lua converts a real number to an integer? (rounds) 2) How does the function SetPlayerHeroesCountNotForHire(nPlayerID, nCount) work? (detailed description)
For juss456. Sorry, I can't answer your questions because I only started working with the map editor yesterday. How do I create and draw a new hero? What does it mean to expand the editor? When will you release the scripts?
LonelyMaxStatistics
Registered:
Posts:16
Auto-translated
Basically, here's my idea: a Portal. But it only allows passage if you sacrifice a certain number of developed creatures (15 Overlords or Broodlings, 35 Nightmares or Warhorses, 60 Succubi or Temptresses, 150 Cerberuses or Hellhounds, 250 Elder Demons or Fire Demons, and 350 Imps or Parasites). So, I'm thinking it works like this: you enter the portal, and a message appears saying that a specific sacrifice is required to proceed. If you have the required units, the message asks, "Do you agree to sacrifice these units?" and if you agree, you can pass through. Is this possible? I've named the portal Shio.
P.S. Please send the answer via private message.
For juss456. Sorry, I can't answer your questions because I only started working with the map editor yesterday. How do I create and draw a new hero? What does it mean to expand the editor? When will you release the scripts?
These questions are for everyone here on the forum.
To expand the editor, go to the folder where the game is installed and find the profiles folder there. Open the editor_a2 file in it with Notepad, find the line "setvar map_editor_mode =", and change the "1" at the end to "0". That is, it should look like this: setvar map_editor_mode = 0. Save. Exit. Load the editor. I have uploaded the Manuals, the link is in the previous message.
Added 11 minutes ago LonelyMax
Basically, my idea is this: a Portal. But it only allows passage if you sacrifice a certain number of developed units (15 Lords or Broodlings, 35 Nightmares or Unicorns, 60 Succubi or Temptresses, 150 Cerberuses or Hellhounds, 250 Archdevils or Pitfiends, and 350 Imps or Parasites). So, I'm thinking that you enter the portal, and a message appears saying that a certain sacrifice is required if you want to pass. And if you have it, a message appears asking if you agree to give those units, and then you pass. Is this possible? I named the portal Shio. PS: Please answer in a private message.
There is such an option: Assign a name to this portal, for example, portal. Disable it in the scripts: SetObjectEnabled("portal", nil);
Attach a trigger to it: Trigger(4, "portal", "portalF");
Write the function you need for the trigger:
function portalF(heroname) --// heroname - the name of the hero entering the portal
if heroname=="hero" then --// check if the right hero entered QuestionBox(GetMapDataPath().."vopros.txt", "otvetDAF"); --// When the player answers OK, the otvetDAF function is called end; end;
function otvetDAF()
RemoveHeroCreatures("hero", nCreatureID, nCount ) --// removes creatures with id nCreatureID from the hero's army. nCount - the number of creatures to remove ...
SetObjectPosition("hero", nX, nY, nFloorID = -1 ) --// moves the hero to the desired coordinates (looks like teleportation)
end;
Added 2 minutes ago Instead of "portal" it will be "Shio"
1) Once the map is created in the editor, press M on the keyboard, or go to View -> Map properties. A window with various settings will open. Check the "HasUndergroundLevel" box. Save. 2) To create a cutscene, first "expand" the editor, then go to Resource -> Select Tables -> DialogScenes -> Ok. And start creating. More detailed information about this can be found in the corresponding topic here. 3) To work with scripts, open the Map properties window, select the Scripts tab, and click Edit Script. Alternatively, you can use a special program available on the website. 4) There are Manuals on writing scripts. I will post what I have. 5) I created the prison using scripts (there might be another way). Learn how to use them first. Link to download the Manuals: http://rghost.ru/47699868
Added 2 minutes ago Now I have some questions: 1) Which function in Lua converts a real number to an integer? (rounds) 2) How does the function SetPlayerHeroesCountNotForHire(nPlayerID, nCount) work? (detailed description)
1) round(n) is the standard rounding function ceil(n) rounds up floor(n) rounds down intg(n) simply discards the fractional part of the number. Not relevant: frac(n) discards the integer part of the number. All these functions are only available in version 3.1 2) Prevents player nPlayerID from hiring more than nCount heroes.
For Juss456. When creating a two-level map, besides pressing M (English) on the keyboard after the map is already created in the editor, or going to View -> Map properties, is it also necessary to check the box next to "two-level map" in the "create new map" window at the beginning? What do "Single Scenario" and "Multiplayer arena" mean in the "create new map" window at the beginning? What does "show this dialog at startup" mean in the "create new map" window at the beginning? How do you assign tasks on the map? For example, "hero such and such must survive" or add your own custom tasks (e.g., recruit 100 peasants)?
For Juss456. When creating a two-level map, besides pressing M (English) on the keyboard after the map is already created in the editor, or View->Map properties, is it also necessary to check the box next to "two level map" at the beginning in the create new map window? What does "Single Scenario" and "Multiplayer arena" mean at the beginning in the create new map window? What does "show this dialog at startup" mean at the beginning in the create new map window? How do you assign tasks on the map? For example, "hero such and such must survive" or add some of your own нестандартные tasks (for example: recruit 100 peasants)?
1) Yes, it is necessary. 2) Single Scenario - A scenario map, such as any mission in Campaigns or Scenarios. Usually, there is only one human player in it, there is a plot, scripts, etc. Most often, the conditions for the players differ significantly. Multiplayer Arena - a regular Multiplayer map, an equal map for all players, without scripts (or something like that). Well, and so on, I hope it's clear. Show this dialog at startup - if you want to remove this stupid window every time you load the editor, then when creating a new map, just uncheck this line. 3) View->Map Properties Tree. A panel will appear on the left. New tasks are created in the Objectives field. This has been described in detail somewhere
Added 2 minutes ago RedHeavenHero
You can use mod in some expressions. For example, n - mod(n, 1)