Current time: 30.04.2024, 05:29 Hello There, Guest! (LoginRegister)
Language: english | russian  

Post Reply 
Threaded Mode | Linear Mode
Ваши вопросы по ERM-скриптам
Author Message
SergOz Offline

Posts: 1294
Post: #9061

XEPOMAHT, спасибо. Я подозревал, что именно так и придётся делать.
Но надеялся на то, что кто-то уже этим заморачивался ...


Карта-мод "Война на Холсте"
11.04.2023 22:37
Find all posts by this user Quote this message in a reply
daemon_n Offline
Administrators

Posts: 4338
Post: #9062

SergOz, я за постановку хука между ними


Image: widget.png?style=banner2

Новейший Heroes 3 Launcher
11.04.2023 22:50
Visit this user's website Find all posts by this user Quote this message in a reply
SergOz Offline

Posts: 1294
Post: #9063

daemon_n, я так понимаю, чтобы различить первый и второй удары счётчик то всё равно нужен?
Иначе хук будет мимо тела


Карта-мод "Война на Холсте"
12.04.2023 08:15
Find all posts by this user Quote this message in a reply
daemon_n Offline
Administrators

Posts: 4338
Post: #9064

SergOz, хук будет прямо перед нанесением второго удара;
счётчик не нужен, а вот переменная перед стартом действия не помешает.


Image: widget.png?style=banner2

Новейший Heroes 3 Launcher
12.04.2023 17:34
Visit this user's website Find all posts by this user Quote this message in a reply
SergOz Offline

Posts: 1294
Post: #9065

daemon_n, ничего не понял, но очень интересно)))
Как определить момент второго удара, чтобы поставить хук?


Карта-мод "Война на Холсте"
12.04.2023 17:53
Find all posts by this user Quote this message in a reply
Archer30 Offline
Moderators

Posts: 1126
Post: #9066

Is there a way to unset all the erm hooks?


Latest ERA mods and scripts in development - My GitHub
25.04.2023 19:15
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16500
Post: #9067

There is not such possibility, but it's possible to make plugin version with UnhookAll exported function. What is the purpose?


Скачать Герои 3 Эра и всё, что с ней связано / ERA 2.46f для старых модов
Поддержать проект
26.04.2023 09:02
Find all posts by this user Quote this message in a reply
Archer30 Offline
Moderators

Posts: 1126
Post: #9068

Berserker, it's no longer needed. I wanted to test without hooks in some save games as the save games stuck on AI turn. And then I realise all the hooks can be simply disabled by disabling erm hooker.


Latest ERA mods and scripts in development - My GitHub
26.04.2023 18:48
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16500
Post: #9069

Archer30, ahah, right solution.


Скачать Герои 3 Эра и всё, что с ней связано / ERA 2.46f для старых модов
Поддержать проект
27.04.2023 06:49
Find all posts by this user Quote this message in a reply
Archer30 Offline
Moderators

Posts: 1126
Post: #9070

Is there a hook that I can use for entering/switching to a new town screen?

I used to use the OnPreTownScreen trigger. It worked well, until recently I realised it won't trigger when your hero teleports with Inferno's Castle Gate.

Any alternative?

A hook after entering the new town with Castle Gate would also satisfy this request.


Latest ERA mods and scripts in development - My GitHub
(This post was last modified: 13.05.2023 17:39 by Archer30.)
13.05.2023 17:38
Find all posts by this user Quote this message in a reply
wessonsm Offline

Posts: 779
Post: #9071

Archer30, возможно, подойдет хук на функцию по адресу 0x005BDCE0
(6020320 десятичное).
Эта функция отвечает за срабатывание спецпостроек в городах (конюшни, вихрь маны, клетка богов войны, боевая академия, орден огня и так далее).
Только нужно отсеять случаи ложного срабатывания,
так как функция сработает также при строительстве постройки в городе и при обмене гарнизонного героя и героя-визитера местами, и для ИИ тоже.
Я не пробовал.

Archer30, perhaps a hook to the function at 0x005BDCE0 will do
(6020320 decimal).
This function is responsible for the triggering of special buildings in towns (stables, mana vortex, cage of the gods of war, battle academy, order of fire, and so on).
Just need to weed out cases of false positives,
since the function will also work when building a building in a town and when exchanging places between a garrison hero and a visitor hero, and for AI too.
I haven't tried.
(This post was last modified: 13.05.2023 20:03 by wessonsm.)
13.05.2023 19:57
Find all posts by this user Quote this message in a reply
Archer30 Offline
Moderators

Posts: 1126
Post: #9072

wessonsm, this is fantastic, thanks!


Latest ERA mods and scripts in development - My GitHub
14.05.2023 16:56
Find all posts by this user Quote this message in a reply
fatsawhorse Offline

Posts: 1013
Post: #9073

Здравствуйте..

Подскажите пожалуйста, кто знает, а как можно компьютера заставить биться заклинанием гипноз. Я проверял, что устанавливая силу, эффект и значимость хоть до 1000 применения компьютером не разумеет всё равно! Если есть какое-нибудь инферно или удар молнии, я уже не говорю про другие заклинания (наиболее мощные и значимые в плане битвы), то гипноз не использует компьютер вообще!

Может есть возможность прописать какой-нибудь код через !!UN:С, как например с берсерком, который заставлял бы врага его применять в бою?
15.05.2023 15:05
Find all posts by this user Quote this message in a reply
Archer30 Offline
Moderators

Posts: 1126
Post: #9074

Is this syntax for replacing frames from def correct?
Here's my script for replacing the icons of Death Stare of Fire Shield abilities of Commanders.

It used to work, but for some reason not anymore. The value of v1 was 1, which means my pictures were detected, yet the replacement wasn't successful, even when I moved the timing of execution to !#.

Download pictures for testing


Latest ERA mods and scripts in development - My GitHub
28.06.2023 13:13
Find all posts by this user Quote this message in a reply
AnT Offline

Posts: 33
Post: #9075

День добрый.
Как сделать так, чтобы новые созданные объекты (жилища существ, банки существ) генерировались на картах?
(This post was last modified: 30.06.2023 07:02 by AnT.)
30.06.2023 06:55
Find all posts by this user Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Forum Jump:

Powered by MyBB Copyright © 2002-2024 MyBB Group