Skip to content

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

5.0 (12 ratings)
User Avatar
#2786
Auto-translated
Hmm, I immediately thought about a garrison... After all, you can take a creature model and create a new object with it, giving it the type "garrison". And then you wouldn't need any scripts at all... Right?
By the way, this would also solve the problem of interacting with your own player: you would simply need to open a dialogue for exchanging creatures. It would also be easy to set up so that a flag of the player hangs over such a garrison creature. But deleting it would probably require scripts.
 

К А
Стикеры GBF в Telegram
In reply to Ment
User Avatar
#2787
Auto-translated
Essentially, this creature and a garrison are very similar. However, you cannot create or remove garrisons during the game. ;)
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#2789
Auto-translated
The issue of what should happen when a hero and a monster belonging to the same player interact has not yet been resolved.
Currently, the hero will be teleported to another location if they approach the monster from behind or in front (which is why the angle of rotation is important); otherwise, the creature exchange window will open.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#2790
Auto-translated

I thought that the flag above this archer indicates his "loyalty" to the red player in this case. I once saw a blue flag like that. If this isn't what I'm thinking of, then what is it, what is it for, and... how do you set it up?
Правило во взгляде...
User Avatar
#2791
Auto-translated
This flag doesn't mean anything; it's just a decoration, and there isn't even a blue flag.
So, does that mean my suggestion doesn't work?
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#2792
Auto-translated
I think I'd need a script for the units, I'll just make a couple of scouts... I'm also interested in seeing a neutral hero, and I'd also like a range of names for the anti-crusader units...

Added 1 minute ago
And how do I add that kind of checkbox? I'll annoy my boyfriend XD, he also thinks it indicates affiliation.
Правило во взгляде...
User Avatar
#2793
Auto-translated
But how do you even set such a flag?
It appears automatically if there are several different creatures in the squad.
I'd probably need a script for the squads, I'll just make a couple of scouts...
It would be good to know how many of each and where to place them.
I'm also interested in seeing a neutral hero.
SetObjectOwner('hero name', 8)
At the same time, the 8th player must be inactive (they were not in the game creation menu).

Added 2 minutes ago
range of names for anti-circle...
for i=1,number do
SetObjectEnabled("name"..i, nil)
end
sleep()
for i=1,number do
SetMonsterSelectionType("name"..i, 0)
end
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to RedHeavenHero
User Avatar
#2794
Auto-translated
RedHeavenHero
He also appears if there are several different creatures in the squad.
I don't know about something like that...
RedHeavenHero
It would be good to know how many of each and where to place them.
Who - Archliches. Quantity 50. Additionally, Death Knights 10 and Greater Vampires 55, coordinates 84, 292
RedHeavenHero
SetObjectOwner('hero name', 8)
At the same time, the 8th player must be inactive (he was not in the game creation menu).
So, that won't work. The map is for 8 players.
Правило во взгляде...
In reply to Rhenish
User Avatar
#2795
Auto-translated
Okay. Let's unpack the guards.zip archive and pack its contents into the map file. In the script, we write: ``` doFile("/scripts/guards.lua") sleep() CreateGuard("any unique name", player owner number, CREATURE_DEMILICH, 50, 84, 292, 0, 0, 2, CREATURE_DEATH_KNIGHT, 10, CREATURE_VAMPIRE_LORD, 55)
Attachments 1
1 file attached • Total size: 6.6 KB
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to RedHeavenHero
User Avatar
#2796
Auto-translated
Here is the template:
CreateGuard(name, player, creature, number, x, y, rotation, floor, additionalStacksCount, creature1, number1, creature2, number2, ..., growth)
Parameters after floor are optional.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#2797
Auto-translated
The circles haven't disappeared....
Правило во взгляде...
User Avatar
#2798
Auto-translated
Is there anything in the console?
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#2799
Auto-translated
Besides the trash about Letos and Vlade...:
(Script) ERROR: Object "sair30" does not exist or is not interactive.
Правило во взгляде...
User Avatar
#2800
Auto-translated
The object named sair30, during the script torture, was subjected to some action, but it did not exist on the map and was not interactive.

Whatever