Skip to content

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

5.0 (12 ratings)
In reply to Победитель
User Avatar
#700
Auto-translated
I apologize, I need to add the objective – to kill someone. I will test it in my map, and tomorrow I will explain it in the screenshots, okay?
No problem!
I just need a new screenshot showing the killing of the enemy general because they said the previous one was incorrect. Thank you very much for your help.
----------------------------------------------
Я начинающий картостроитель.Скоро буду
выкладывать карты, когда научусь всё делать.:smile01: :smile01:
User Avatar
#701
Auto-translated
Duncan, I haven’t quite figured out how DefeatHero works yet, but I found Ment's post where he explains how it works. Apparently, you need to enter the enemy's name in the Parameters field, as shown in Ment's screenshot. You can give it a try.
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
In reply to Победитель
User Avatar
#702
Auto-translated
Hello again, forum visitors!
I have another question: I need to know why the number of creatures that join my army is half of what I set it to.
Look at this:

and this:

How can this be explained????
Thank you for your answer, Pobeditel!
----------------------------------------------
Я начинающий картостроитель.Скоро буду
выкладывать карты, когда научусь всё делать.:smile01: :smile01:
User Avatar
#703
Auto-translated
I've never noticed that before :eek:! Perhaps it's related to the fact that you're starting on "Recruit" difficulty, and the number of creatures is set to 100% on that difficulty – i.e., on "Warrior"?
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
In reply to Победитель
User Avatar
#704
Auto-translated
Okay, I launched it on recruit difficulty. But now I'll set it to hero difficulty and see what happens; I'll write the result soon.

Added 15 minutes later
Winner was right; I launched it on hero difficulty, and all the creatures I specified were exactly 3; I set 3, and there were 3!:smile01: :smile01:
----------------------------------------------
Я начинающий картостроитель.Скоро буду
выкладывать карты, когда научусь всё делать.:smile01: :smile01:
In reply to Дункан
User Avatar
#705
Auto-translated
Duncan
I launched it on Recruit difficulty. But now I'll set it to Hero difficulty and see what happens; I'll write the result soon.

Added 15 minutes later
Winner was right; I launched it on Hero difficulty, and all the creatures I specified were exactly 3; I set 3, and there were 3!:smile01: :smile01:
If there wasn't a range limit, it would be 6.
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
In reply to Победитель
User Avatar
#706
Auto-translated
Winner, do you perhaps not know how to make it so that a character is initially neutral, and only becomes allied with you when your hero approaches it? For example, like in the mission "Choice," where you need to free Duncan. Initially, he was a turquoise player, but when Frida approached him, he became allied with you.
Thank you for your answer, Winner!
----------------------------------------------
Я начинающий картостроитель.Скоро буду
выкладывать карты, когда научусь всё делать.:smile01: :smile01:
#707
Auto-translated
I need help. How can I make a hero move towards an object? This function doesn't seem to be working:
MARKEL_ENEMY = "Pelt";
SetAIHeroAttractor("Lord", MARKEL_ENEMY, 2);
Дайте мне всего шесть строк, написанных рукой самого честного человека, и я найду, за что его можно повесить.
Весьма хороший попутчик... До первого перекрестка.
In reply to Дункан
User Avatar
#708
Auto-translated
Duncan
Winner, do you happen to know how to make a character neutral at first, and then, when my hero approaches, that neutral character joins my side? For example, in the "Choice" mission, you need to free Duncan. At first, he was a teal player, but when Frida approached him, he joined my side. Thank you for your answer, Winner!
You first make the hero an enemy hero. Then you disable him:
EnableHeroAI('--script name of the hero--', false);

And when you need to, you transfer the "rights" to the hero to another player:
SetObjectOwner('--script name of the hero--',PLAYER_1);
Tell me separately about the condition-trigger ;).
His Most Eminence
I need help. How do I make a hero go to an object? This function doesn't work:
MARKEL_ENEMY = "Pelt";
SetAIHeroAttractor("Lord", MARKEL_ENEMY, 2);
Ment in the "Scripts" topic wrote that Attractor works intermittently, if it works at all. He advised using MoveHero. But it didn't work for me either. Only MoveHeroRealTime works reliably.
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
In reply to Победитель
User Avatar
#709
Auto-translated
Let's discuss the trigger condition separately.
What do you mean????
Does it mean that it won't work without a trigger condition????
----------------------------------------------
Я начинающий картостроитель.Скоро буду
выкладывать карты, когда научусь всё делать.:smile01: :smile01:
#710
Auto-translated
Thank you, everything is working now.
Дайте мне всего шесть строк, написанных рукой самого честного человека, и я найду, за что его можно повесить.
Весьма хороший попутчик... До первого перекрестка.
User Avatar
#711
Auto-translated
And how do you plan to "show" the right moment to change a hero's allegiance without a trigger? Such situations could be: a hero entering a region, breaking through a garrison, completing a quest, and so on. What exactly do you need?
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
In reply to Победитель
User Avatar
#712
Auto-translated
Such situations can include: a hero entering a region, breaking through a garrison, completing a quest, and so on.
I need him to switch sides to my faction after I break through the enemy garrison. If possible, please include a screenshot! Thank you for your response. Winner
----------------------------------------------
Я начинающий картостроитель.Скоро буду
выкладывать карты, когда научусь всё делать.:smile01: :smile01:
User Avatar
#713
Auto-translated
Ah, it’s easier to do it with a region. You create it right next to the garrison. Then you write a script like this:

EnableHeroAI('Duncan',false);
function garrison(hero)
if hero=='Giovanni' then
SetObjectOwner('Duncan',PLAYER_1);
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, 'reg', nil);
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, 'reg', 'garrison', nil);
Here, Giovanni is the script name of your hero, and Duncan is the hero who should join. I recommend naming the region 'reg' so you don't get confused later. The script has been tested and works (see screenshots).
Attachments 3
3 files attached • Total size: 413.6 KB
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
In reply to Победитель
User Avatar
#714
Auto-translated
Thank you very much, everything worked!
I made a mistake the first time and named the region "red".
I looked carefully and corrected it to "reg" the second time, and it worked!
Thank you again!:o :o :o
----------------------------------------------
Я начинающий картостроитель.Скоро буду
выкладывать карты, когда научусь всё делать.:smile01: :smile01: