Auto-translated
Thank you, that was very helpful.
Perhaps you could tell me how cutscenes are made?
Perhaps you could tell me how cutscenes are made?
New here? I'm Roha — want a quick tour?
Does anyone still have the manual for the Novice level?
I'm thinking about creating a new map with the title: "Brain Test." It would be a map with a lot of puzzles. Is it possible to make it so that you can walk through objects?
Good afternoon, I decided to use a script for the first time, and, of course, it didn't work:o Please tell me what's wrong here? (the idea is to display a text message at the beginning of the game):
Trigger(NEW_DAY_TRIGGER, "hello")
function hello()
if GetDate(DAY) == 1 then
then MessageBox(GetMapDataPath().."message.txt");
end;
Good afternoon, I decided to use a script for the first time, and, of course, it didn't work:o Please tell me what's wrong here? (the idea is to display a text message at the beginning of the game)
Could you please provide the correct version? I've tried several variations, but the message doesn't appear, neither on the first day nor on any other day...
...
MessageBox(GetMapDataPath().."message.txt");
...
Trigger(NEW_DAY_TRIGGER, "hello");
function hello()
if GetDate(DAY)==1 then
then
MessageBox(GetMapDataPath().."message.txt");
end;
In general, I looked at the comments the script editor was writing; it complained that another end should be added. Now the script looks like this:
Trigger(NEW_DAY_TRIGGER, "hello");
function hello()
if GetDate(DAY)==0 then
MessageBox(GetMapDataPath().."message.txt");
end;
end
At the bottom, it says "syntax successfully checked," but in the game itself, nothing still happens:(
P.S. When opening the map itself, even before I click MapScript.lua, the editor with an error sign says "An invalid character was found in text content" Line: 79392 < Item >, could this be the problem? But then what is it and how can I fix it?
At the bottom, it says "syntax successfully checked," but in the map itself, even before I click MapScript.lua, the editor with an error sign says "An invalid character was found in text content" Line: 79392 < Item >, could this be the problem? But then what is it and how can I fix it?
Probably, either you placed some incorrect object, or you changed something in the object, and frankly, it's not your level to change objects with scripts, so it's one of the two.
I replaced the day with the first and added a semicolon to the last end, but nothing changed.
Trying to make this message is my first and only script :) , before that, for a week, I was working on the landscape and didn't run any script editors, so I don't know what exactly it's complaining about.
--Map script
path=GetMapDataPath();
MessageBox(path.."message.txt");
function newday()
if GetDate(DAY)==1 then
MessageBox(path.."message.2.txt");
elseif GetDate(DAY)>1 then
MessageBox(path.."message.3.txt");
end;
end;
Trigger(NEW_DAY_TRIGGER, "newday");This script displays the message "message.txt" at the beginning of the game, the message "message.2.txt" on the next day, and the message "message.3.txt" on all other days.