Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
In reply to Askenwinger
User Avatar
Auto-translated
Askenwinger
Guys, can you tell me how to enable the "undo" button? I mean, how do I undo the last actions?
I've never used it. Try Ctrl+Z.
Askenwinger
Added 51 minutes later
And another question. Why are all the textures so blurry in the map editor? It feels like the detail level is at its lowest. Everything is blurry, from the ground to the game objects. But at the same time, new game objects and textures are displayed normally (in the case of a new map, only the starting ground cover is blurry). Do you know how to fix this?
What difference does it make? You won't see it in the game.
By the way, regarding the fact that a hero can only be chosen for one player, and the others buy them in the tavern - how do I solve this?
The map is not multiplayer - it's a single-player scenario.
I'll think about it. Unless someone who already knows answers first.
 

К А
Стикеры GBF в Telegram
User Avatar
Auto-translated
By the way, I'm almost finished with my map. I spent time on it today and worked on it all day. I even got tired. Nevertheless, I still need to fill about 1/3 of the map with treasures and monsters. I have some questions left, but since time is running out, I think I'll solve them after the release, directly during the process.
By the way, where is the best place to upload the map?
Auto-translated
I've never used it. Try Ctrl+Z.
That's the problem, it doesn't work. It's quite annoying.
What difference does it make? It won't be visible in the game.
It's just unpleasant. ;)
User Avatar
Auto-translated
By the way, what is Map Rumours? And also, how can I display an introductory message to the player at the start of the game, i.e., I would like a window to pop up with a message that roughly explains the situation on the map.
Auto-translated
1) rumors that will appear in the tavern; 2) using scripts (2 most common options - through triggers "New Day" and "Enter Region").
User Avatar
Auto-translated
Rumors are just tavern gossip. To display them, you simply need to use a MessageBox. Or am I missing something?
 

К А
Стикеры GBF в Telegram
User Avatar
Auto-translated
Something seems to be glitching on the forum. I couldn't understand half of the last post.

Added 1 hour 45 minutes ago
Another question - I need to create a neutral army consisting of several different monster units. I place the first unit on the map. Then, in the additional stacks, I click add. Under additional stacks, a new branch appears, which looks like this: - Creature - Custom Amount - Amount - Amount 2 What should I click to add, for example, Cave Lord Devils and then Demonesses to the unit? And also, please write in detail how to display a message with a mission description on the screen at the beginning of the game.

Added 29 minutes ago
And also, please tell me where to upload the map - I think I'll post it tomorrow.
In reply to codenameray
Auto-translated
codenameray
Something is glitching on the forum.
I couldn't make out half of the last post.

Added 1 hour 45 minutes ago
Another question - I need to create a neutral army consisting of several different monster units. I place the first unit on the map. Then, in the "additional stacks" section, I click "add." Under "additional stacks," a new branch appears that looks like this:
- Creature
- Custom Amount
- Amount
- Amount 2

What should I click to add, for example, to the unit of Cave Lord Devils and then to the unit of Demonesses?

And also, please tell me how to display a message on the screen at the beginning of the game with a description of the mission, but in detail.

Added 29 minutes ago
And also, please tell me where to upload the map - I think I'll post it tomorrow.
1) Creature
2) You can look at the script on the "Gantritor" map - I think it will make a lot of things clear to you ;)
3) You can upload it directly to this forum (in the "attachment management" tab) - but don't forget to pack it into a zip format first
In reply to codenameray
User Avatar
Auto-translated
codenameray
Something is glitching on the forum.
I couldn't make out half of the last post.
It's my internet connection on my phone that's acting up, I apologize.
 

К А
Стикеры GBF в Telegram
User Avatar
Auto-translated
I figured everything out, but when I try to add a script and click "add script," the map editor closes. It just says that the program will be closed.
Damn, that's a shame – I wrote such a great introduction...
Maybe we can figure something out?

Added 5 minutes later
And one last question – is it possible to change the music, specifically for this map, in the town, or when the hero moves around the map?

Added 21 minutes later
And also – I wrote messages for some monsters. But when I attack them, these messages don't appear. Or are they supposed to appear after winning the battle?
User Avatar
Auto-translated
I also have the first problem. I solve it like this: I open the script, type one letter there, and close it very quickly. Then the editor doesn't have time to crash. After that, I simply open the MapScript.lua file that the editor created with Notepad and type in it.
And my last question – is it possible to change the music somehow, specifically for this map, in the town, or when the hero moves around the map?
Yes, you can. Do you have the extended editor? It would be easier with it.
Also, I wrote messages for some monsters. But when I attack them, these messages don't appear. Or should they appear after winning?
Yes. If you need the message to appear before, take a look at this page: /topic/3556/
 

К А
Стикеры GBF в Telegram
User Avatar
Auto-translated
My editor crashes as soon as I click "edit script," and the text field below that button doesn't allow me to type, so your method won't work here. Can I simply create this Lua file myself using Notepad, or does the editor need to create it specifically for this map? I'm not sure about the extended editor; maybe it is the extended one... If not, where can I get it? I read everything on that page, but I didn't understand anything. It talks about some kind of trigger, meaning that I understand there should be some scripted actions, but I just wrote the text in the "message" tab under the monster's properties. I won't be able to figure out triggers. By the way, what script do I need to write to display introductory messages at the beginning of the game? I looked at the script for Gantrytor, but no messages appear at the start, so it's not what I need.
In reply to codenameray
Auto-translated
codenameray
My editor crashes as soon as I click "edit script," and I can't type text in the field below that button, so your method won't work here.
And can I just create this Lua file myself using Notepad, or does the editor have to create it specifically for this map?

Regarding the extended editor, I don't know; maybe it is the extended one... If not, where can I get it?
:) If you don't know which editor you have, I'm going to assume it's not the extended one. Do this: in the game directory, in the profiles folder, open the file editor_a2cfg and in the line setvar map editor mode, change the value from 1 to 0; save the changes, launch the editor, and - voila! - it will now run in extended mode.
codenameray


And I read everything on that page and didn't understand anything. It talks about some trigger, meaning that, as I understand it, some scripted actions should be performed there, but I just wrote text in the properties of the monster in the message tab. I won't be able to figure out triggers.
Triggers (in other words, action starters) are the foundation of scripting; without them, you're unlikely to achieve anything worthwhile with scripts.
codenameray


Added 5 minutes later
By the way, what script do I need to write so that introductory messages appear at the beginning of the game?
I looked at the script on Gantrytor, but no messages appear at the start there, so it's not what I need.
How is it that they don't appear? - There are 4 text messages in a row:confused: (Download the map again, launch the game and the map (without opening it in the editor), and you'll see for yourself; you probably did something to it when you opened it in the editor, which is why the messages aren't appearing)
User Avatar
Auto-translated
Are you sure you don't want to change 1 to 0? Maybe 0 to 1? Because I currently have 0 set there. And usually, when you need to enable something, you change it to 1, i.e., to true. 0 is usually false. If dealing with monster messages is so complicated, I'll leave it... I don't want to and, most importantly, don't have the time to deal with it. I thought it would be enough to simply write something in the "message" tab in the properties. Regarding the Gantrytor, you were right - I re-uploaded the map, and it worked. I looked at the script. By the way, that's exactly what I needed. Now I just need to figure out how to add this script, given that I get kicked out of the editor and can upload the map.
User Avatar
Auto-translated
No, autonag07 is right. So, it's already expanded for you. You can create the Lua file yourself, but in this case, you'll have to manually configure the settings that the editor automatically creates. It seems you need to specify the path to the pre-created MapScript.xdb file in the left panel of the map properties, in the MapScript line, with the following content: ```html

``` (Usually, it's placed in the Maps\SingleMissions[map name] folder). There, the Lua file with the script is located. Added 2 hours 19 minutes ago Almost certainly, the encoding is incorrect. You need to save it in Unicode, not ANSI. P.S. The mod is ready; you can take a look.
 

К А
Стикеры GBF в Telegram

Statistics

Welcome our newest member: Emil