1. I made a map, everything is fine, but the opponent (computer) doesn't engage in battles (even against 10 units with 150 gold dragons), it only picks up easy loot. I didn't use scripts. What's the problem? Do I need to set priorities for the computer?
Posts from Current questions and answers regarding the map editor.
In the middle of the Dungeon, I have a large lake. The background is black, so without lighting, nothing is visible when moving on a ship.
Let's try a "perversion," I'll give it a shot.
In general:
1. We 'hide' the ship, already with lighting, in an inconspicuous place.
2. We place a trigger on the shipyard.
3. Upon contact with the shipyard, we teleport the ship to the desired location, i.e., near the shipyard.
...yes, here you'll also need to play around with the ship's price, the purchase message, etc. :smile33:
It's not that difficult to figure out why the computer isn't attacking; send me the map draft (you can send it in a private message), I'll take a look and maybe I'll figure out what's going on.
Added after 56 minutes
1. I made the map, everything is fine, but the opponent (the computer) doesn't engage in battles (even against 10 fey with 150 zealot dragons), it only picks up easy loot. I didn't use scripts. What's the problem? Do I need to set priorities for the computer? If so, how?
I have version 3.1, so you messed something up - it seems you were trying to make a Campaign, as a result, extra folders with incorrect paths appeared, and that's why the start was impossible. It also didn't load as a Campaign.
Check it - everything should work, everything is fine for me, so I don't think you'll need any priorities for the computer. :cool:
How to change the creature growth rate in a castle, or "CreatureHired" using a script and the SetObjectDwellingCreatures function?
Here's a simple example:
SetObjectDwellingCreatures('HeavenTown', CREATURE_ARCHER, GetObjectDwellingCreatures('HeavenTown', CREATURE_ARCHER)+12);
A more complex example (here, the growth rate is increased randomly for a random level of creatures in a town named TOWN_DWARVEN):
dwellingRnd = random(6);
if IsObjectExists(TOWN_DWARVEN) == true then
if dwellingRnd == 0 then
dwellingCreatures = 92;
text = GetMapDataPath()..'dwelling_d01.txt';
elseif dwellingRnd == 1 then
dwellingCreatures = 94;
text = GetMapDataPath()..'dwelling_d02.txt';
elseif dwellingRnd == 2 then
dwellingCreatures = 96;
text = GetMapDataPath()..'dwelling_d03.txt';
elseif dwellingRnd == 3 then
dwellingCreatures = 98;
text = GetMapDataPath()..'dwelling_d04.txt';
elseif dwellingRnd == 4 then
dwellingCreatures = 100;
text = GetMapDataPath()..'dwelling_d05.txt';
elseif dwellingRnd == 5 then
dwellingCreatures = 102;
text = GetMapDataPath()..'dwelling_d06.txt';
elseif dwellingRnd == 6 then
dwellingCreatures = 104;
text = GetMapDataPath()..'dwelling_d07.txt';
end;
count = GetObjectDwellingCreatures(TOWN_DWARVEN, dwellingCreatures);
if count > 0 then
dwellingCount = count*3;
SetObjectDwellingCreatures(TOWN_DWARVEN, dwellingCreatures, dwellingCount);
MessageBox(text);
else
print('addDwellingCreatures: Dwelling (creatures id: '..dwellingCreatures..' in Dwarven town not found');
end;
end;
You can also do this with a mod, but in that case, the growth rate will be increased for all towns on all maps (not recommended :smile28: )
Multiplayer: Господство, Извечное противостояние, Война за Магию, Торговая империя, Анатомия войны, Эксперимент
SingleScenario: Последний Рубеж, Трон, Элиралис, Вернуться домой!, Лабиринты разума
Campaign: Колонизация
Multiplayer: Господство, Извечное противостояние, Война за Магию, Торговая империя, Анатомия войны, Эксперимент
SingleScenario: Последний Рубеж, Трон, Элиралис, Вернуться домой!, Лабиринты разума
Campaign: Колонизация
What is the best way to modify the "refugee camp" so that it contains all creatures (orcs, dwarves, neutrals, all levels)?
http://webfiles.ru/29588505
Right on the map itself? Well, I personally sometimes indulge in changing the music for a specific type of terrain using a mod. If you change it for all types of terrain, you'll get what you need, if I understand correctly.
Maybe you can use Play2DSound for this?
Multiplayer: Господство, Извечное противостояние, Война за Магию, Торговая империя, Анатомия войны, Эксперимент
SingleScenario: Последний Рубеж, Трон, Элиралис, Вернуться домой!, Лабиринты разума
Campaign: Колонизация
2) You need to put in a little effort to pack the sound into the map; it won't work if you take it from the music folder.