Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
In reply to }{0TT@6bI4
4 years ago
Auto-translated
}{0TT@6bI4
The number of creatures generated depends on the area of free cells on the map and the type of creature.
You can generate creatures using the GenerateMonsters function.

I apologize, but where can I find this function?
User Avatar
4 years ago
Auto-translated
This is a script function. It is used in Lua scripts; you can find it in the Beginner's Guide.
In reply to }{0TT@6bI4
4 years ago
Auto-translated

}{0TT@6bI4
This is a script function. It is used in Lua scripts; you can find it in the Novice's Guide.

Thank you very much.

Could you also answer another question if you know? How can I change the amount of resources that a mine produces daily? For example, if a gold mine produces 1000 daily, can I change it to 2000?

In reply to padonkoff
User Avatar
4 years ago
Auto-translated
How can I prevent the death animation from playing in a scene and instead have the unit immediately lie dead?
In reply to Alinksolo
User Avatar
4 years ago
Auto-translated
Alinksolo
How can I prevent the death animation from playing in a scene and have the unit immediately lie dead?

Assign this animation to the unit in the very first scene. But set the Delay parameter to -5. Then the animation will already have played, and the unit will simply lie there.
In reply to padonkoff
User Avatar
4 years ago
Auto-translated
padonkoff


Thank you very much.

Could you also answer one more question, if you know? How can I change the amount of resources a mine produces daily? For example, if a gold mine produces 1000 daily, can I change it to 2000?

You can also add resources using a script.
function NewDay()
pl = GetObjectOwner("Mine Name")
if pl ~= PLAYER_NONE then
SetPlayerResource(pl, GOLD, GetPlayerResource(pl, GOLD)+1000)
end
end

Trigger(NEW_DAY_TRIGGER)
In reply to }{0TT@6bI4
User Avatar
4 years ago
Auto-translated
A question arose, and possibly a problem. Today, I managed to create a hero and leave him among the heroes in the game. But now I'm starting to doubt my action. Please advise, is my action problematic, or will it not have a significant impact?
Attachments 1
1 file attached • Total size: 243.1 KB
In reply to Alinksolo
User Avatar
4 years ago
Auto-translated
Script: SetObjectPosition.
SetObjectPosition(hero_name, x, y, flor)
Dungeon level 1

Added 56 seconds later

Grigory Kovalev
Script: SetObjectPosition.
SetObjectPosition(hero_name, x, y, flor)
Dungeon level 1
But this still needs to be checked.
User Avatar
4 years ago
Auto-translated
If you want the "level of the dungeon" to be the main focus in the dialogue (this is if you are creating a video on your own map), then when creating the map, the HasUnderground parameter should be set to true.
In reply to Andrei_21
User Avatar
4 years ago
Auto-translated
Andrei_21
If you want the "main" part of the dialogue to take place in the dungeon (this is if you are creating a video on your own map), then when creating the map, the HasUnderground parameter should be set to true.
So, here's how it's done. I somehow thought that it should be set after the scene in the dungeon.
In reply to Григорий Ковалев
User Avatar
4 years ago
Auto-translated
Grigory Kovalev
So, this is how it's done. For some reason, I thought he needed to do it after the scene in the dungeon.
Grigory, all of this is described in more detail in the video guide by }{0TT@bI4. There's a lot of interesting stuff there.
In reply to Andrei_21
User Avatar
4 years ago
Auto-translated
Andrei_21

Grigory, all of this is described in more detail in the video guide by }{0TT@bI4. There's a lot of interesting stuff there.
I don't think I need anything more than that.
User Avatar
4 years ago
Auto-translated
To make the default level in the video a Dungeon, you need to manually find the xdb maps, open them with Notepad, and find the line "InitialFloor" at the top. Change its value from zero to one. Important: if the map doesn't have a Dungeon, it will crash the game.

Grigory, creating a new hero will not negatively affect the state of the game.
In reply to }{0TT@6bI4
User Avatar
4 years ago
Auto-translated
}{0TT@6bI4
To make the default level in the video a Dungeon, you need to manually find the xdb maps, open them with Notepad, and find the line "InitialFloor" at the top, changing its value from zero to one. Important: if the map doesn't have a Dungeon, it will crash.

Grigory, creating a new hero will not (negatively) affect the state of the game.
Khotabych, thank you, you comforted the paranoid. I was just wondering, but will it disappear when the map is deleted?

Statistics

Welcome our newest member: recijeb