Skip to content

Posts from The message window does not appear.

No ratings yet — be the first to rate!
User Avatar
5 years ago
Auto-translated
Here is the script code: ``` function mes1() MessageBox("Maps/SingleMissions/nasledieshantir/mes1.txt"); Trigger(REGION_ENTER_AND_STOP_TRIGGER, "sar", nil) end; Trigger(REGION_ENTER_AND_STOP_TRIGGER, "sar", "mes1"); ``` The console displays a message that the message is empty when entering the specified region. Another script, which should give the player a quest when entering the same region, works normally.
User Avatar
5 years ago
Auto-translated
Another script, which, upon entering the same region, should give the player a quest, works normally.
Here's your answer: you can only assign one function to a trigger for the same region. And you're probably resetting it in that other function.
In reply to Ment
User Avatar
5 years ago
Auto-translated
Ment
Here's the answer: you can only assign one function to the same region using a trigger. And you're probably resetting it in that other function.
But the other function is executed second, so the problem should be with it, right? But I'll try moving it to a different region now; maybe that will fix it.

Added 13 minutes later
Ment
Here's the answer: you can only assign one function to the same region using a trigger. And you're probably resetting it in that other function.
I moved it to a different region, but unfortunately, it didn't help.
User Avatar
5 years ago
Auto-translated
The "empty message" error appears if the specified txt file has empty content. Are you sure that the message at this address exists and is not empty?
In reply to }{0TT@6bI4
User Avatar
5 years ago
Auto-translated
}{0TT@6bI4
The "empty message" error appears if the specified txt file has empty content. Are you sure that the message exists at that address and is not empty?
Yes, the file exists, and it contains text. However, I'm not sure about the path. The file is located inside the .h5m file, at the specified path (here is its exact path, considering the location of the .h5m file in the game folder: Maps/nasledieshantir.h5m/Maps/SingleMissions/nasledieshantir/mes1.txt). Perhaps it needs to be specified differently? I also tried using the full path, which I indicated in parentheses, but it didn't work.
User Avatar
5 years ago
Auto-translated
Please send me the map in a private message. I'll take a look and figure it out. For example, if you're creating a map using RMG, the path will be different, and so on. And yes, any map is an archive; you can open it with any archiver (7-zip, Total Commander, WinRAR), and then look at the folders to see where everything is located.
In reply to }{0TT@6bI4
User Avatar
5 years ago
Auto-translated
}{0TT@6bI4
Please send me the map in a private message. I'll take a look and figure it out. For example, if you're creating a map using RMG, the path will be different, and so on. And yes, any map is an archive; you can open it with any archiver (7-zip, Total Commander, WinRAR), and then look at the folders to see what's inside.
Thank you very much! I'm not sure exactly what the error was, but I noticed that I had created two files with the same text (mes1.txt and message.1.txt), so I changed the first one to the second one in the script, and it worked.
In reply to Callum
User Avatar
5 years ago
Auto-translated
Callum
Thank you very much! I don't know exactly what the error was, but I noticed that I apparently created two files with the same text (mes1.txt and message.1.txt), so I changed the first one to the second one in the script - and it worked.

It's strange that there is a dependency on the content. But if everything works now, that's fine.

Statistics

Welcome our newest member: recijeb