Skip to content

Current questions and answers regarding the map editor. Auto-translated

5.0 (12 ratings)
#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.
#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!
#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 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.