Skip to content

Posts from Scripts

4.8 (8 ratings)
User Avatar
Auto-translated
Clarified: not with the game, but with the map. All maps can be opened in an archiver. Example Good-1b(hard).h5m\Maps\SingleMissions\Good-1b(hard)
Всё, что сейчас происходит во мне, тоже является частью Вселенной. (с) Иванов Александр.
Цикл кампаний "Дыхание Смерти" из трёшки в четвёртом исполнении
Учебная карта
Астралия
За Королеву!
Подземелья и Дьяволы
Отголоски войны
Освобождение
User Avatar
Auto-translated
Help, the scripts aren't working at all. I'm writing a script in the HOMM5 ScriptEditor: SetRegionBlocked("Block1", true, PLAYER_3); And nothing happens!
User Avatar
Auto-translated
SetRegionBlocked("Block1", true, PLAYER_3);
There used to be a list of scripts here. Look for it. It explains how to write variables correctly.
Your script definitely lacks a comma after true.
Because true and PLAYER_3 are different things, and there should be a comma between them.
Всё, что сейчас происходит во мне, тоже является частью Вселенной. (с) Иванов Александр.
Цикл кампаний "Дыхание Смерти" из трёшки в четвёртом исполнении
Учебная карта
Астралия
За Королеву!
Подземелья и Дьяволы
Отголоски войны
Освобождение
User Avatar
Auto-translated
Hello everyone! Guys, if anyone knows about scripts, please tell me: how do I create and configure a quest in the game? I currently have one quest called "Kull Them All," but I want to add my own.
P.S. If possible, please also explain how to make it so that this quest is triggered when the hero enters a specific area.

Added 4 minutes later

Kvant
Clarified: not with the game, but with the map
All maps can be opened in an archiver

Example
Good-1b(hard).h5m\Maps\SingleMissions\Good-1b(hard)
I don't have a SingleMissions folder; all the maps are in one folder.
P.S. Where is the map.xdb file located (or do I need to open my own map)?
Кто шарит в скриптах отпишите плиз:)
User Avatar
Auto-translated
I don't have a SingleMissions folder; all the maps are just in one folder.
P.S. Where is the map.xdb file located (or do I need to open my map)?
You need to open your map in an archive program. There will be folders, and the map.xdb file will be in one of them.
Всё, что сейчас происходит во мне, тоже является частью Вселенной. (с) Иванов Александр.
Цикл кампаний "Дыхание Смерти" из трёшки в четвёртом исполнении
Учебная карта
Астралия
За Королеву!
Подземелья и Дьяволы
Отголоски войны
Освобождение
In reply to Квант
User Avatar
Auto-translated
Quant
There used to be a list of scripts here. Look for it. It explains how to properly write variables.
Your script definitely lacks a comma after true.
Because true and PLAYER_3 are different things, and there should be a comma between them.
I fixed it, but even in a regular editor, I see that there's something wrong with my script.
:smile07:
Кампании
К оружию!
______________________________
Нужна помощь:
Делать ролики
Писать скрипты
In reply to Квант
User Avatar
Auto-translated
Quant
You need to open your map file in an archiver. There will be folders, and in one of them, you'll find map.xdb.
Please forgive my stupidity, but what kind of archiver are you talking about? 7-Zip?:D
Кто шарит в скриптах отпишите плиз:)
User Avatar
Auto-translated
Any archiving program that can open zip files.
Всё, что сейчас происходит во мне, тоже является частью Вселенной. (с) Иванов Александр.
Цикл кампаний "Дыхание Смерти" из трёшки в четвёртом исполнении
Учебная карта
Астралия
За Королеву!
Подземелья и Дьяволы
Отголоски войны
Освобождение
In reply to Квант
User Avatar
Auto-translated
Quant
Any archiver that can open zip files.
I did everything as you said, I didn't make any changes, but I have a black screen. What could be the reason? Maybe I needed to change something?
Кто шарит в скриптах отпишите плиз:)
In reply to Квант
User Avatar
Auto-translated
Quant
There was a list of scripts somewhere here. Look for it. It explains how to properly write variables.
Your script definitely lacks a comma after "true."
Because "true" and "PLAYER_3" are different things, and there should be a comma between them.
I fixed it, but even in a regular editor, I see something strange in my script: :smile39:
Кампании
К оружию!
______________________________
Нужна помощь:
Делать ролики
Писать скрипты
In reply to Квант
User Avatar
Auto-translated
Quant
Any archiver that opens zip files.
Takz, I did everything and thought it was all working, but instead of the image in the upper left corner, there are many white squares, and the image itself is not there - a black screen.
Кто шарит в скриптах отпишите плиз:)
User Avatar
Auto-translated
Tatz, I did everything and thought it was all working, but instead of the image in the upper left corner, there are many white squares, and the image itself is missing - a black screen.
Is the format and type definitely DDS?
Всё, что сейчас происходит во мне, тоже является частью Вселенной. (с) Иванов Александр.
Цикл кампаний "Дыхание Смерти" из трёшки в четвёртом исполнении
Учебная карта
Астралия
За Королеву!
Подземелья и Дьяволы
Отголоски войны
Освобождение
User Avatar
Auto-translated
Yes, the file properties state that the file type is "DDS" (.dds).
Кто шарит в скриптах отпишите плиз:)
User Avatar
Auto-translated
I fixed it, but even in the regular editor, I see that there's something unclear in my script.
Create a new, empty map.
Place two heroes on it (yours and an enemy's).
Place single-cell impassable objects around your hero, and make one cell a region.
Name the region "Block".
Write the script (only this one):
SetRegionBlocked ("Block", nil, 1);
Run the map and check if your hero can pass through the block.
The region should be blocked.

After that, reply here with the result.

Added 1 minute ago
Yes, the properties say: file type "DDS" (.dds)
Does the FORMAT match the description in the xdb file? TF_DXT1
Are the height and width divisible by 4?
Всё, что сейчас происходит во мне, тоже является частью Вселенной. (с) Иванов Александр.
Цикл кампаний "Дыхание Смерти" из трёшки в четвёртом исполнении
Учебная карта
Астралия
За Королеву!
Подземелья и Дьяволы
Отголоски войны
Освобождение
User Avatar
Auto-translated
I can open DDS files via Photoshop.
p.s. Is DDS DirectDrawSurface?

Added after 6 minutes
Kvant

Added after 1 minute
[/U]
Does the FORMAT match the description in the xdb file? TF_DXT1
Are the height and width divisible by 4?
The height and width are 1024х1024.
Wait, I'm a bit confused. What is "TF_DXT1"?
Maybe I should send a screenshot?

Added after 1 minute
Кто шарит в скриптах отпишите плиз:)

Statistics

Welcome our newest member: Emil