Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
User Avatar
11 years ago
Auto-translated
Name a city, for example.
User Avatar
11 years ago
Auto-translated
And what should its name be? I mean, what name should be used that isn't a scripted name from its stats...
User Avatar
11 years ago
Auto-translated
Name in the properties tree.
In reply to RedHeavenHero
User Avatar
11 years ago
Auto-translated
It doesn't change for me there... Or rather, I just can't open that name. And it happens with many tabs. I open Shared by pressing Enter and clicking on the button that appears, and something similar happens...

Added 1 minute later
Oh, I get it. I needed to expand the tree view field.)

Thanks!

And after entering the scripts, the map editor started crashing very, very often... What could be causing this?
User Avatar
11 years ago
Auto-translated
The script editor, the one in the map editor, is very unstable. It has ruined many people's progress. It's better to edit scripts, for example, in Notepad. If you continue to use it, it might even corrupt the map.
In reply to RedHeavenHero
User Avatar
11 years ago
Auto-translated
RedHeavenHero
The script editor, the one in the map editor, is very unstable. It has ruined many people's progress. It's better to edit scripts, for example, in Notepad. If you continue to use it, it might even corrupt the map.

Ouch... That's something... Okay, we'll make five copies of the map and spread them around in different places and on flash drives)

Added after 1 hour 50 minutes
And how can I set fog or light on a separate area of the map? (region)
User Avatar
11 years ago
Auto-translated
There are point light sources: `pointLights`. Each object has a corresponding tab.
User Avatar
11 years ago
Auto-translated
Thank you! And what about the fog?
User Avatar
11 years ago
Auto-translated
Solid or with effects, but the latter isn't very good.
User Avatar
11 years ago
Auto-translated
Where can I get the first one?
User Avatar
11 years ago
Auto-translated
In the map lighting properties, there is DistanceFog.
User Avatar
11 years ago
Auto-translated
Okay, thanks)

Added 27 minutes later
Uff... I've done a little, and there's so much to figure out...

Added 10 minutes later
And how are operations with quests performed in general? How do you assign/remove a quest?

Added 19 hours 50 minutes later
Apparently, no one is in a hurry to answer... well, okay :(

If anyone decides to help, I have a problem - the console in the game complains about this function:

function day () I=i+1; end;

Where is the error?
In reply to Valerichek
User Avatar
11 years ago
Auto-translated
How are quest operations actually performed? How do you assign/remove a quest?
There is information about quests in the editor manual. They can be created either through the editor or using scripts.
If anyone decides to try, I have a problem - the console in the game complains about this function:

function day()
I=i+1;
end;

Where is the error?
It depends on what you want it to do.
In reply to Valerichek
User Avatar
11 years ago
Auto-translated
Valerichek
How are operations with quests actually performed? How do you assign/remove a quest?

If anyone decides to help, I have a problem - the console in the game complains about this function:

function day()
I=i+1;
end;

Where is the error?

There was a detailed explanation about quests (Objectives) somewhere here.

Regarding the function. For it to work correctly, the variable i must at least be initialized at the beginning; otherwise, it doesn't make sense. Also, I suspect that it should have been I=I+1, not I=i+1;

I and i are different variables.

That is, it should be approximately like this:

I=*some value*

function day()
I=I+1;
end;
In reply to MasteR
User Avatar
11 years ago
Auto-translated
Regarding the function. For it to work correctly, the variable `i` must be initialized at the beginning; otherwise, it doesn't make sense. And in general, I suspect that it should have been `I=I+1`, not `I=i+1`. `I` and `i` are different variables. So, it should be something like this: ``` I=*some value* function day () I=I+1; end; ``` Ah... damn. I understand. It's just that in programming, case usually doesn't matter. I'll keep that in mind.

Statistics

Welcome our newest member: recijeb