Skip to content

Posts from Scripts for beginners.

4.5 (2 ratings)
User Avatar
9 years ago
Auto-translated
Usually, a main quest is created for this purpose, which remains active from the beginning to the end of the game (for example, not losing the main hero).
In the same branch, the task [0] is set. I immediately assigned it and then checked it later: not to lose the main hero. I need to try to incorporate it into the Secondary branch or actually try to work with Ignore.
Завтра - это всего лишь другое название для сегодня.:smile51:
User Avatar
9 years ago
Auto-translated
Let him check every day to see if it has been captured or not.
From the player's perspective, it would probably be clearer if the task was marked as completed immediately after the conditions were met, rather than a day later.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
9 years ago
Auto-translated
Help, I need a way to reset this script, `SetRegionBlocked`, after I complete the quest objective of capturing an object.
Кампании
К оружию!
______________________________
Нужна помощь:
Делать ролики
Писать скрипты
9 years ago
Auto-translated
Hello, fellow fans of Heroes! I have a question, and I need some help!
9 years ago
Auto-translated
Help me with the script editor. When I enter the map editor, create a map, and try to add a script, the map editor crashes. What is this, and what do you advise me to do? Please help.
User Avatar
9 years ago
Auto-translated
This is a common problem. You can find an external script editor or use Notepad for this. In the latter case, I did the following: I opened the script in the editor, quickly typed something, and closed the script and the editor before it crashed. Then, I opened the map with an archiver, found MapScript.lua, and edited it with Notepad. All of this was done with the map editor already closed.
 

К А
Стикеры GBF в Telegram
9 years ago
Auto-translated
And in my case, as you said, it's not possible. Should I completely delete Heroes and download a different version?
User Avatar
9 years ago
Auto-translated
What is not allowed? Reinstalling the heroes might help... or it might not... In principle, almost any editor problem can be solved with an archiver and a notepad, so I wouldn't bother, but it's up to you.
 

К А
Стикеры GBF в Telegram
9 years ago
Auto-translated
How do you edit using HoMM5MapScriptsEditor???

Added 4 hours and 43 minutes ago
And how do you make it so that the enemy just stays in the castle, or how do you make it so that when you capture a castle, you've completed the level?
User Avatar
9 years ago
Auto-translated
HoMM5MapScriptsEditor
I haven't worked with it, so I can't help you.
How do I make the enemy just stay in the castle, or how do I make it so that when you capture a castle, you've completed the map?
1. Disable AI
2. You can do this without scripts; configure the objectives in MapPropertiesTree. There is minimal information about this in the FAQ section of this forum.
 

К А
Стикеры GBF в Telegram
9 years ago
Auto-translated
1. Disable AI
Where and how?

Added 1 minute ago
How and where?
User Avatar
9 years ago
Auto-translated
Using scripts. I don't remember the exact function, so look it up. Perhaps `SetObjectEnabled("object name", nil)` will work.
 

К А
Стикеры GBF в Telegram
User Avatar
9 years ago
Auto-translated
Hello everyone. Maybe someone can help me figure this out? Where can I find `lightName` in the script:
SetCombatLight (lightName);
`lightName` is a pointer to the resource of the diffuse light source in the resource base. The script is for changing the lighting on the arenas.
[url=Таверна (фулдилка) - заходите.


User Avatar
9 years ago
Auto-translated
So, you need to access the resources... You need the path to the xdb file, with the addition of a pointer type, etc. Everything is done in the same way as with the function that displays text, or with the one that plays a video...
 

К А
Стикеры GBF в Telegram

Statistics

Welcome our newest member: recijeb