I would write it using auxiliary values. For example, at the very beginning of the map, I would set
a = 0;
In the second trigger, I would add a check
if a == 1 then
Your function
Trigger reset
else
if a == 0 then
Text: you have not visited the first hut
end;
end;
And in the first hut, write your function, and at the end add
a = 1;
If it's not clear, I can write a detailed template later.
I tried to do it - it all worked out. Thanks again. I just don't quite understand: what exactly is "a"? I understand very little about programming; I only have a basic understanding of CSS. How does this "a" work? I tried to assign a numerical value to another letter - "b", but when both "a" and "b" are in the script, the editor gives an error and doesn't save the map for some reason.
Added after 48 seconds
Here's a question: I need to start a dialog, and then display a text message summarizing the idea of the dialog, something like, "You need to go there." I'm writing:
StartAdvMapDialog("0");
MessageBox("path\name.txt");
But this message appears before the dialog, not after it. Is there a function to separate them in time?