Current time: 20.09.2024, 04:52 Hello There, Guest! (LoginRegister)
Language: english | russian  

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

Posts: 1170
Post: #9331

Not very common. I think I used it 3 times in about 50 hooks


Latest ERA mods and scripts in development - My GitHub
23.06.2024 08:30
Find all posts by this user Quote this message in a reply
SergOz Offline

Posts: 1305
Post: #9332

В моём моде игрокам часто приходится смотреть в журнал Роланда (HERO_ROLAND).
Я хочу облегчить жизнь игрокам, сделав открытие журнала по клику на F3. Но как я не крутил - ничего не получается. Любую свою функцию могу вызвать без проблем. Например:
а вот плагин Игрика на журнал героя - ну никак не открывается 105
Па-ма-ги-те!!!


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

Posts: 1170
Post: #9333

SergOz,


Latest ERA mods and scripts in development - My GitHub
12.08.2024 12:04
Find all posts by this user Quote this message in a reply
SergOz Offline

Posts: 1305
Post: #9334

Archer30, спасибо большое!
P.S. А можно так же по нажатии клавиши, например F4, открыть индивидуальный журнал героя (ресивер QW)?


Карта-мод "Война на Холсте"
(This post was last modified: 13.08.2024 01:13 by SergOz.)
12.08.2024 23:42
Find all posts by this user Quote this message in a reply
Archer30 Offline
Moderators

Posts: 1170
Post: #9335

SergOz, unfortunately, I don't know a way


Latest ERA mods and scripts in development - My GitHub
13.08.2024 22:40
Find all posts by this user Quote this message in a reply
SergOz Offline

Posts: 1305
Post: #9336

Archer30, жаль, но всё равно спасибо за ответ.
Тогда сделаю по этой клавише принудительное открытие окна героя:всё же будет быстрее.


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

Posts: 1170
Post: #9337

SergOz, QW:A is rarely used. And I don't think scripts can show its dialogue in any way.

Your best bet might be to abandon QW and use a global string variable, like s^myGlobalStr^.

Example:


Latest ERA mods and scripts in development - My GitHub
(This post was last modified: 14.08.2024 18:03 by Archer30.)
14.08.2024 18:02
Find all posts by this user Quote this message in a reply
SergOz Offline

Posts: 1305
Post: #9338

Archer30, да, я так и сделал в скрипте, дающем общую информацию об игре. Потому что этот скрипт писался относительно недавно. Но, в то время, когда писались строчки кода для журнала QW, ещё не было именованных переменных и прочих удобств, присущих для ERA 3. А это десятки строк, разбросанных по десяткам скриптов. Так что переделывать их нет никакого желания. Тем более потому, что и свободного времени мало, и другой работы по скриптам невпроворот.
Но, вполне возможно, я когда-нибудь сделаю эти измененияMail1
И ещё раз спасибо за помощь)


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

Posts: 1170
Post: #9339

SergOz, then try this


Latest ERA mods and scripts in development - My GitHub
14.08.2024 19:39
Find all posts by this user Quote this message in a reply
SergOz Offline

Posts: 1305
Post: #9340

Archer30, ура!!! Это работает! Dance3
Огромное спасибо от меня и, я уверен, от всех игроков, которые будут играть на моей карте. Ведь вместо нескольких кликов мышкой им теперь будет достаточно нажать одну клавишу, чтобы открыть журнал Роланда.

P.S. И мне не нужно будет делать скучную работу по переписке кода160


Карта-мод "Война на Холсте"
(This post was last modified: 14.08.2024 20:56 by SergOz.)
14.08.2024 20:54
Find all posts by this user Quote this message in a reply
Archer30 Offline
Moderators

Posts: 1170
Post: #9341

Is there a way to restore any specialty pictures set by UN:G2?

Usually, if you set a hero's specialty via HE:X, the specialty icon will be changed according to the specialty set.
You can execute UN:G2 to give a new icon on top of that.
However, once a UN:G2 is set, executing HE:X on the same hero will no longer give a new specialty icon, which is quite annoying.

Possible to unbind the previous UN:G2 settings?

Script for testing:
Press 1 or 2 to change the specialty of Orrin (The specialty icon will be change accordingly). Press 3 to lock the specialty icon (Pressing 1/2 no longer changes the icon, which I don't want it to happen).


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

Posts: 16624
Post: #9342

Picture Number 0 means not set and use default. UN:G2 with 0 as picture number.


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

Posts: 1170
Post: #9343

Berserker, inspiring, not entirely true, but I found a solution

This code
locks the icon as the frame 0#, which is Archery (the specialty of Orrin)

If we set it to -1, it restores the icon that matches HE:X


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

Posts: 16624
Post: #9344

Archer30, ah, right, the value is increased by 1. So -1 is for reset, correct.


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

Posts: 2
Post: #9345

Здравствуйте. Как сделать так, чтобы при повышении героем уровня у него не изменялись статы? И, соответственно, как отредактировать окно повышения уровня, чтобы там не было картинки и надписи, например "Знание +1"?
02.09.2024 18:49
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