Auto-translated
It seemed like Tiera was still moving when Biara killed her... but I didn't find anything about it in the map's script.
New here? I'm Roha — want a quick tour?
It seemed like Tiera was still moving when Biara killed her... but I didn't find anything about it in the map's script.
But can you do it underground? I thought it wasn't possible...
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.
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)?
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?
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.
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)
Thanks! Are there any similar functions in 3.0?
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)?
You can use mod in some expressions.
For example,
n - mod(n, 1)