Skip to content
#5142
Auto-translated
Good evening. I have some new questions.
1) I have this code snippet. I don't understand the underlined elements. Also, how do I properly reset the trigger for capturing an object? Initially, the Castle should be captured by the AI, and then by one of the players.
function message(n1, n2, s1, s2)
if (n2 == 1)
then MessageBoxForPlayers(2,"/Maps/RMG/.../message.27.txt");
--as I understand it, 2 is the player to whom this message is displayed
Trigger(OBJECT_CAPTURE_TRIGGER,"Castle1",nil);
end;
Trigger(OBJECT_CAPTURE_TRIGGER,"Castle1","message");
2) Signpost (a sign where you can write a message for travelers). The messages disappear almost instantly; how can I fix this?
3) I created a teleport using a trigger... and noticed that if 2 players enter it at the same time, it causes problems. Can this be fixed using IsTilePassable? If the value is -1, then change the teleport destination.
4) Where do all these undocumented functions come from... and so on?
-IsTilePassable - there is no description of it anywhere (well, I found it on the forum, but still)
-MessageBoxForPlayers is also not in the manuals...
What else did I miss? Does anyone have a list?
5) How do I remove or reduce the experience gained from fighting monsters or heroes?
6) How can I organize the Mapscript better? (How can I distribute everything into different scripts so that it's not a mess?)

Statistics

Welcome our newest member: Emil

Users Online 4 users 1181 guests