Current time: 16.01.2025, 02:03 Hello There, Guest! (LoginRegister)
Language: english | russian  

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

Posts: 1319
Post: #9346

Artemidius, мало данных.
Непонятно: для всех героев должно действовать или для конкретного.
Непонятно: уровень всё же должен повышаться или должен оставаться прежним.
Если для всех героев уровень не должен повышаться, то проще в конце боя выставлять конкретный уровень опыта.
Вот пример с постоянным обнулением опыта в конце боя для всех героев:


Карта-мод "Война на Холсте"
(This post was last modified: 03.09.2024 18:28 by SergOz.)
03.09.2024 18:24
Find all posts by this user Quote this message in a reply
Artemidius Offline

Posts: 2
Post: #9347

Почему... Написал "при повышении уровня". Нужно сделать так, чтобы статы оставались прежними. Тут больше вопрос в интерфейсе, чтобы окно переделать, если это возможно.
05.09.2024 22:23
Find all posts by this user Quote this message in a reply
igrik Offline

Posts: 2819
Post: #9348

Artemidius, вот мод образец. Изучив его, вы найдёте все ответы на свой вопрос
http://wforum.heroes35.net/showthread.php?tid=4602


game bug fixes extended.dll || My Plugins || My GitHub
06.09.2024 12:48
Visit this user's website Find all posts by this user Quote this message in a reply
Archer30 Offline
Moderators

Posts: 1180
Post: #9349

Is there a way to check if the current map has embedded scripts?

Since ERA 3.9.15, scripts are enabled globally regardless of UN:P5 status. I feel it necessary to inform players that the current ERA is not compatible with their maps they play.


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

Posts: 16695
Post: #9350

UN:P5 should still worked. It worked in my simple tests. Probably it's fixed in 3.9.16, which is not released soon. I'll send test dll to you as soon as possible.


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

Posts: 1180
Post: #9351

Is it possible to pop a register in erm?


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

Posts: 16695
Post: #9352

You could try modifying ESP register in context manually, but it may be a bad idea, check in debugger.


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

Posts: 1180
Post: #9353

Is there a way to show a IF:L message with a custom duration on the screen? For example, by default IF:L shows a msg on the screen for 20 seconds, but for some msg, I only want 5 seconds.


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

Posts: 16695
Post: #9354

Archer30, I don't know ready to use API. Seems something in redraw cycle should be changed.


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

Posts: 16695
Post: #9355

_ScreenLogStruct_.Items (first field) is pointer to array of _ScreenLogStructItem_, the first one starts from _ScreenLogStruct_.FirstItemShift index. It's a circular buffer.
_ScreenLogStructItem_ has field ShowTime (int32, time in milliseconds, when item was shown the first time.

There is also global ScreenLogStruct variable in IDA Pro. Probably you can use IF:L + locate the last item in circular buffer and adjust it's show time (timeGetTime() - 10000).


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

Posts: 1180
Post: #9356

Well, it's complicated. I think I am about to give up and use another implementation for my mod, without using IF:L.

The function for showing a chat msg is @0x553C40. I believe it sets time stamps for each msg. I only need to tweak the time stamp for the message I need to make it disappear sooner. But the function structure here is rather confusing.


Latest ERA mods and scripts in development - My GitHub
(This post was last modified: 11.01.2025 13:50 by Archer30.)
11.01.2025 13:15
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16695
Post: #9357

Archer30, afair, those timings work only in network games, but need rechecking.


Скачать Герои 3 Эра и всё, что с ней связано / ERA 2.46f для старых модов
Поддержать проект
11.01.2025 16:46
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-2025 MyBB Group