Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
User Avatar
#1456
Auto-translated
And what does it write before that?
 

К А
Стикеры GBF в Telegram
#1457
Auto-translated
Here’s a screenshot I took!
Attachments 1
1 file attached • Total size: 6.9 KB
#1458
Auto-translated
functon blockF()
MessageBox("/Maps/RMG/4939-1686-2472-1326/preymushestvo/777.txt");
end;

Trigger(REGION_ENTER_AND_STOP_TRIGGER, "block", "blockF")
This is what I modified after the previous messages.
In reply to HAndOS
User Avatar
#1459
Auto-translated
zehir12
I fixed it to: function blockF()
MessageBox("/Maps/RMG/4939-1686-2472-1326reymushestvo/block.txt");
end;

Trigger(REGION_ENTER_AND_STOP_TRIGGER, "block", "blockF")
But it still doesn't work. And the console displays an error!

Remove the line break before the Trigger line, and you also forgot the slash (corrections are highlighted in bold):
function blockF()
MessageBox("/Maps/RMG/4939-1686-2472-1326/preymushestvo/block.txt");
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "block", "blockF");
Мои карты:
Town
Готовится:Чума (40%), Сосиска(42%), Война Грааля
#1460
Auto-translated
Copied and pasted into the script. Opened the map, but there's no message, and an error appears in the console: (SCRIPT)ERROR: Empty message text!

Added 1 minute ago
Instead of the smiley, something appears in the console.
User Avatar
#1461
Auto-translated
There seems to be an issue with the text file; the encoding might be incorrect.
 

К А
Стикеры GBF в Telegram
#1462
Auto-translated
What encoding should be used, and how can it be changed?
User Avatar
#1463
Auto-translated
Well, that's if you weren't writing the text directly in the game, but in a text editor. Then you need to click "save as" and change the encoding at the bottom from the default one. If it's Unicode, change it to ANSI or vice versa.
 

К А
Стикеры GBF в Telegram
#1464
Auto-translated
thank you!!!!!!

Added 4 minutes ago
Not thanking doesn't change anything!

Added 2 minutes ago
I changed the encoding! I tried both ANSI and Unicode, but it still gives the same result!
In reply to HAndOS
#1465
Auto-translated
zehir12
Here's a screenshot I took!
The console tells you exactly which line the error is in! - Post the entire script.
#1466
function blockF ()
MessageBox ("/Maps/RMG/4939-1686-2472-1326/preymushestvo/block.txt");
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "block", "blockF");-вот скрипт
#1467
Auto-translated
well, if the console indicates an error on line 4, it's logical to assume that the error is in the region name (linked to a specific trigger)...
#1468
Auto-translated
The console displays an error on the first line!
In reply to HAndOS
#1469
Auto-translated
zehir12
the console is throwing an error in the first line!


in the screenshot you posted, the error is actually in the 4th line ...
In reply to antonag07
User Avatar
#1470
Auto-translated
Judging by what the console displays, there's an extra "end" command. However, when looking at this script, no errors are apparent.