Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
Auto-translated
Here’s a screenshot I took!
Attachments 1
1 file attached • Total size: 6.9 KB
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
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%), Война Грааля
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
Auto-translated
There seems to be an issue with the text file; the encoding might be incorrect.
 

К А
Стикеры GBF в Telegram
Auto-translated
What encoding should be used, and how can it be changed?
User Avatar
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
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
Auto-translated
zehir12
Here's a screenshot I took!
The console tells you exactly which line the error is in! - Post the entire script.
function blockF ()
MessageBox ("/Maps/RMG/4939-1686-2472-1326/preymushestvo/block.txt");
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "block", "blockF");-вот скрипт
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)...
Auto-translated
The console displays an error on the first line!
In reply to HAndOS
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
Auto-translated
Judging by what the console displays, there's an extra "end" command. However, when looking at this script, no errors are apparent.

Statistics

Welcome our newest member: Emil