Skip to content

Scripts for beginners.

User Avatar
#97
Auto-translated
Thank you very much! It helped, and everything works.
And now, I'll ask you not to laugh out loud. You can swear at me or use other offensive language. I'm even ashamed to write about such a trivial thing...
Here's the simplest script, which each of you could write with your eyes closed, even if woken up in the middle of the night.
The hero enters a region, and a message appears with a single "Yes" button. Just a MessageBox, nothing complicated. But I've been working on it for two hours, and I'm racking my brains - what does this scripter want from me?
function quest1message ()
MessageBox ("/Maps/SingleMission/Scenario 1/quest1.txt");
end;

Trigger(REGION_ENTER_AND_STOP_TRIGGER, "quest1rg", "quest1message" );
It seems... everything is elementary... but here's the thing. One program says that everything is fine. The standard script editor complains about the function itself. And in the game, the hero stops every time he enters the region, but the message doesn't appear. I've checked all the manuals... and the function lists... and I'm still stuck.
Here are a couple of screenshots:


Завтра - это всего лишь другое название для сегодня.:smile51: