Skip to content

Posts from Scripts

4.8 (8 ratings)
User Avatar
Auto-translated
Selection shows, its size is set by the game
It's a regular skirt that the monster had initially, right?
502 Bad Gateway
__________________________________
nginx/0.8.54
Auto-translated
Thanks for pointing that out; I was about to start checking it in the editor.
User Avatar
Auto-translated
Wow, I didn't know that. Thanks a lot.

Added after 33 seconds
It's really interesting; I never thought something like this existed.

Whatever
Auto-translated
It was in the official manual.
User Avatar
Auto-translated
Unfortunately, a script with that name wouldn't interest me. The thing is, I was sure it simply didn't exist, so I didn't pay attention.

Whatever
Auto-translated
I remember seeing a function somewhere that returns a hero to the tavern after death.
User Avatar
Auto-translated
Well, that's easy.
MakeHeroReturnToTavernAfterDeath ('heroname' , enable (true/nil) , 0 -- will wait forever to be hired again, there may be other options)

Whatever
Auto-translated
However, despite my attentiveness, I searched for it for half an hour, but it was right in front of my eyes. There are so many functions in the manual that if you use them all, it will be a nightmare. Added 5 minutes later
Heroist
Unfortunately, a script with that name wouldn't interest me. The thing is, I was sure it simply didn't exist, so I didn't pay attention.
Therefore, I am never sure of anything.
In reply to HAndOS
User Avatar
Auto-translated
revived
SetMonsterSelectionType( monster name, skirt type )

-1 = Selection is shown, its size is set by the game (default)
0 = No skirt
1 = Small skirt
2 = Large skirt
Yes, this is exactly what I needed, thank you :). However, it doesn't work:

SetObjectEnabled('cr6', nil); exists, but it doesn't help.

Another question: can I change a monster's name on the map? OverrideObjectTooltipNameAndDescription does not work.
Attachments 1
1 file attached • Total size: 5.7 KB
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
User Avatar
Auto-translated
Okay, here are some complex questions for a newbie like me. I'm going to quietly slip out of this thread.

Added 3 minutes later
Maybe `SetMonsterNames`? I didn't quite understand the description. It's probably not that, but still...

Whatever
In reply to Heroist
User Avatar
Auto-translated
Heroist
maybe SetMonsterNames? I didn't quite understand the description. It's probably not that, but still...
Yes, that's it, thank you very much :).
Regarding the description:
SetMonsterNames(monsterName, monsterNamesFilter, nameFileRef)
monsterName - the script name of the monster on the map, which is set in the property tree.
monsterNamesFilter - as far as I understand, it specifies whether to set the name for only one monster, a group (if we have an army with additionalStacks), or change both names (?). In the first case, we write MONSTER_NAME_SINGLE, in the second - MONSTER_NAME_MULTIPLE, and in the third (?) - MONSTER_NAMES_ALL. I used the first option for a regular monster, and it works.
nameFileRef - the path to the text file.
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
User Avatar
Auto-translated
Okay, that makes sense. Thanks for the explanation.

Whatever
In reply to Победитель
User Avatar
Auto-translated
I usually write 2 as the second parameter, and it works.
Мои карты:
Town
Готовится:Чума (40%), Сосиска(42%), Война Грааля
Auto-translated
Is it possible to change the name of a creature on the map?

I'll take a screenshot now showing how to do it without scripts or mods, if needed.
In reply to HAndOS
Auto-translated
revived
Should I take a screenshot now showing how to do this without scripts or mods, if needed?


Go ahead and post it – it can’t hurt, and it might be useful to someone.

Statistics