Skip to content

Posts from Scripts

4.8 (8 ratings)
User Avatar
6 years ago
Auto-translated
EnterEsc, I also have a pirated copy. But the manuals are included... Apparently, some pirates included manuals, while others didn't.
User Avatar
6 years ago
Auto-translated
I tried to use the AllowPlayerTavernRace command to make it so that only heroes of a specific race could be recruited, but for some reason, the game still randomizes the initial pool of heroes from all races, despite the restrictions.
User Avatar
6 years ago
Auto-translated
As far as I remember, strict limitations on the number of heroes that can be recruited were successfully implemented in the last mission of the campaign for Arantir (Undead) in Tribes of the East. There, you can only recruit about 3-4 heroes, and all of them are Necromancers; no other types of heroes can be recruited. I need to take a look at how this is done there.
User Avatar
6 years ago
Auto-translated
The simplest option in Map Properties => Heroes is to uncheck all heroes except for the desired faction. After that, you won't be able to hire them in the tavern.
In reply to }{0TT@6bI4
User Avatar
6 years ago
Auto-translated
An even simpler solution has been found: in the map properties, there is a filter for the tavern for each individual player, where you can ban both individual heroes and entire factions.
User Avatar
6 years ago
Auto-translated
Yes, that's possible. But the method I mentioned above has a slight advantage: you can discard individual heroes you don't like, so I recommend using it.
In reply to }{0TT@6bI4
User Avatar
6 years ago
Auto-translated
Good day, I'm having trouble again with simple scripts that display text messages :(
For some reason, when I write a script like this:

--Starting messages
path=GetMapDataPath();
MessageBox(path.."message-day1.txt");
function newday()
if GetDate(DAY)==2 then
MessageBox(path.."message-day2.txt");
end;
end;
Trigger(NEW_DAY_TRIGGER, "newday");

everything works perfectly, but when I try to expand these messages to include several other days:

--Starting messages
path=GetMapDataPath();
MessageBox(path.."message-day1.txt");
function newday()
if GetDate(DAY)==2 then
MessageBox(path.."message-day2.txt");
if GetDate(DAY)==3 then
MessageBox(path.."message-day3.txt");
if GetDate(DAY)==7 then
MessageBox(path.."message-day7.txt");
if GetDate(DAY)==9 then
MessageBox(path.."message-day9.txt");
end;
end;
Trigger(NEW_DAY_TRIGGER, "newday");

nothing happens, not even the initial message loads. Of course, the text documents with the desired names have been created:)
User Avatar
6 years ago
Auto-translated
The if block must end with the end instruction.
In reply to Ment
User Avatar
6 years ago
Auto-translated
Thank you very much, everything is working now.
In reply to Navkratis
User Avatar
6 years ago
Auto-translated
I am developing a cooperative scenario. I have created several combat scripts. When I launch the map through a single-player game, everything works perfectly. But when I launch it through multiplayer, the console says that the combat scripts are not available. Is there a way to make them work in multiplayer?
User Avatar
6 years ago
Auto-translated
No, this feature is not available in multiplayer.
User Avatar
6 years ago
Auto-translated
in general, it's possible through an EXE patch; dredknight posted it here, and you can find the message in this thread. Currently, if I'm not mistaken, this patch is already used in RTA, although there's one problem that RedHeavenHero fixes with a rather crude method. I should say that I managed to find another way to fix it, but that's a secret for now.
In reply to Gerter
User Avatar
6 years ago
Auto-translated
Yes, I found your conversation with Dreadnought. The problem is that the page opened by the link no longer exists. Could you upload this patch?
User Avatar
6 years ago
Auto-translated
Yes, here is the file I used to apply the patch.
Attachments 1
1 file attached • Total size: 772 B
In reply to Gerter
User Avatar
6 years ago
Auto-translated
Thank you very much!

Added 40 minutes later
Excellent, everything works. Thank you again. You mentioned some kind of problem. What is it? Perhaps it will affect my map as well.

Statistics

Welcome our newest member: recijeb