Skip to content

Posts from Current questions and answers regarding the map editor. Auto-translated

5.0 (12 ratings)
User Avatar
#836
function Zone(hero)
if GetObjectOwner(hero)==1 then
MessageBox(GetMapDataPath()..'message_name.txt');
AddHeroCreatures(hero,Creature_ID,Creature_Count);
gold_count=GetPlayerResource(1,GOLD);
SetPlayerResource(1,GOLD,gold_count+10000);
Trigger(REGION_ENTER_AND_STOP_TRIGGER,'region_name',nil);
end;
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER,'region_name','Zone');
 

К А
Стикеры GBF в Telegram
In reply to Ment
#837
Auto-translated
Ment
function Zone(hero)
if GetObjectOwner(hero)==1 then
MessageBox(GetMapDataPath()..'message_name.txt');
AddHeroCreatures(hero,Creature_ID,Creature_Count);
gold_count=GetPlayerResource(1,GOLD);
SetPlayerResource(1,GOLD,gold_count+10000);
Trigger(REGION_ENTER_AND_STOP_TRIGGER,'region_name',nil);
end;
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER,'region_name','Zone');

Thanks. Could you also tell me, I have a finished map, I load it, it runs fine, but when I add something new, save it, it weighs 1 KB. The path to the map seems to be not very long, and it's named in English. Could it be that something needs to be changed in the map settings?
User Avatar
#838
Auto-translated
I'm not sure. Maybe there are files with Russian names inside the map? Although, I don't even know, it could be some kind of editor glitch.
 

К А
Стикеры GBF в Telegram
In reply to heroesFAN111
#839
Auto-translated
heroesFAN111
Thanks. Could you also tell me, I have a finished map, I upload it, it loads normally, but when I add something new and save it, it weighs 1 KB. The path to the map seems to be not very long, and it's named in English. Could it be that something needs to be changed in the map settings?
Please provide: 1) the path to the game;
2) the name of the map.
Then we can figure out what's causing your problems.
In reply to antonag07
#840
Auto-translated
antonag07
provide: 1) the path to the game;
2) the map name.
then we can figure out what's causing your problems.

1) D/Games/heroes 5 /Heroes Tribes of the East/bin/h5 game.exe
2) dbbd (the name is silly, I didn't know what to call it, I just made the map and thought I'd change it later, but now the map won't launch) I bought the game disc shortly after it was released, so maybe that's why the editor is glitching. Maybe I should download it from the internet?
In reply to heroesFAN111
User Avatar
#841
Auto-translated
heroesFAN111
1) D/Games/heroes 5 /Heroes tribes of the east/bin/h5 game.exe
2) dbbd (the name is stupid, I didn't know what to call it, I was just making a map and thought I would change it later, but then the map doesn't launch) I bought the disc with Heroes almost as soon as the game came out, maybe that's why the editor is glitching, maybe I should download it from the internet?
I think it would be better to copy the path instead of typing it manually.

Sometimes Russian letters get lost in English, so check everything.

Are you loading the map from the Maps folder?
And please provide more details: the exact size in bytes. Is it 1024 or 22?
Моды для HeroesV:
NHF 0.90 : NHF - группа в VK

Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...
#842
Auto-translated
Could you provide a script that, for example, destroys a castle when player 5 captures it? Please write the script text.
User Avatar
#843
Auto-translated
function to(old,new)
if new==5 then
RazeTown(city name);
end;
end;
Trigger(OBJECT_CAPTURE_TRIGGER, CITY NAME, 'to');
 

К А
Стикеры GBF в Telegram
#844
Auto-translated
Could you please advise? I'm creating a Prophet's Hut, setting the reward and name, and I've placed all the parameters. The quest requires me to bring an artifact, but I'm not sure how to specify which one. I've set the parameters and their corresponding numbers (7 and 15), but only Shackles of Fate are available. How do I set a different artifact, and in which field should I do it?
In reply to heroesFAN111
User Avatar
#845
Auto-translated


You select the type of reward – an artifact, and I highlighted the field where you choose it in the screenshot.

Added after 5 hours 23 minutes
Is it possible to completely disable the AI companion so that it does absolutely nothing?
User Avatar
#846
Auto-translated
Is there a way to completely disable the AI opponent? So that it does absolutely nothing.
There is a function to make it inactive if there are no towns and active heroes.
DoNotGiveTurnToPlayerAIIfNoTownsAndActiveHeroes(-player name-,1);
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
User Avatar
#847
Auto-translated
And what if they do exist?
In reply to 32MeTpa
#849
Auto-translated
32MeTpa


You select the type of reward - artifact, and I highlighted the field where you choose it in the screenshot.

Added after 5 hours 23 minutes
Is there a way to completely disable the AI companion so that it does nothing?

You didn't quite understand me. I want the quests to require bringing an artifact, but the reward should be an army (for example, bring a crown, and you get archers). In the "type" field in the "award" tab, I set it to AWARD_CREATURE. I probably need to specify something in the "aeard" tab, but I don't know where (
User Avatar
#850
Auto-translated
That's correct. Next, click on "+ArmySlot" and select the desired parameters there.