Current time: 22.11.2024, 22:59 Hello There, Guest! (LoginRegister)
Language: english | russian  

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

Posts: 2196
Post: #2386

Such def is required only by Phoenix mod, and backpack mod is not compatible with, igrik uses other buttons. Disable Phoenix 118
(This post was last modified: 24.12.2013 00:26 by Valery.)
23.12.2013 23:31
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16657
Post: #2387

I see.
1) People have 2.46, not 2.463.
2) SN:D redraws troops, but not artifacts. Need reworking.


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

Posts: 2196
Post: #2388

It looks like backpack needs special redraw, as when you move equipped artifacts manually from one hero to another, screen automatically redraws, but NOT backpack.
24.12.2013 01:56
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16657
Post: #2389

You're right.


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

Posts: 2196
Post: #2390

Is there any reason why igrik buttons size isn't specified?

To trigger button animation it should be:
Heroes;YBackpack1;bckpck.def;326;521;52;36; but last two were 0;0;

Asking because I gonna make several buttons in CM3, and I see that parameters work ok, have you had any problems I am not aware of?
(This post was last modified: 24.12.2013 23:32 by Valery.)
24.12.2013 23:29
Find all posts by this user Quote this message in a reply
igrik Offline

Posts: 2819
Post: #2391

Да есть причина. Если кнопки сделать отличными от 0.0., то часть кода не срабатывает (а именно автоматический клик в первый слот (строка 021 скрипта). Артефакты не берутся. Поэтому пришлось отказаться от нажимаемых кнопок.


game bug fixes extended.dll || My Plugins || My GitHub
(This post was last modified: 25.12.2013 01:00 by igrik.)
25.12.2013 00:57
Visit this user's website Find all posts by this user Quote this message in a reply
Valery Offline

Posts: 2196
Post: #2392

Thanks, I got it.
25.12.2013 01:41
Find all posts by this user Quote this message in a reply
Valery Offline

Posts: 2196
Post: #2393

I have a question: what is y3 when you activate one button?

Example: I have 10 buttons named YBackpack0 to YBackpack10. How to know which one was clicked without having to do:
...and so on until YBackpack10?

   y3 returns 417 to 427 to those buttons. Any idea how to simplify search so the right button is activated if y3 is specified right?
(This post was last modified: 25.12.2013 03:37 by Valery.)
25.12.2013 03:36
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16657
Post: #2394

If buttons are stored in config file sequentially, then:


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

Posts: 2196
Post: #2395

Don't understand 105
(This post was last modified: 25.12.2013 10:07 by Valery.)
25.12.2013 06:13
Find all posts by this user Quote this message in a reply
igrik Offline

Posts: 2819
Post: #2396

не фонтан, но брызги есть...
for Valery


game bug fixes extended.dll || My Plugins || My GitHub
(This post was last modified: 25.12.2013 17:30 by igrik.)
25.12.2013 17:24
Visit this user's website Find all posts by this user Quote this message in a reply
Valery Offline

Posts: 2196
Post: #2397

And what does MoP code? I see no change in test.
(This post was last modified: 25.12.2013 18:36 by Valery.)
25.12.2013 18:31
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16657
Post: #2398

igrik, обновление с этой функцией работает?

Valery,

Quote:Hero;YBackpack;bckpck.def;386;430;0;0;Click here to open your hero backpack bag.;Look into your backpack bag;
Heroes;YBackpack1;bckpck.def;326;521;0;0; Click here to open your hero backpack bag.;Look into your backpack bag;
Heroes;YBackpack2;bckpck.def;420;521;0;0; Click here to open your hero backpack bag.;Look into your backpack bag;
Heroes;YBackpack3;BTM1.def;377;521;0;0; Transfer backpacks.;Transfer backpack between heroes;
Heroes;YBackpack4;BTM2.def;401;521;0;0; Transfer backpacks.;Transfer backpack between heroes;
YBackpack will obtain some unknown ID, say X.
YBackpack1 will have ID = X + 1
YBackpack2 will have ID = X + 2 and so on.

To determine which particular button was pressed 0..4 in the above example, where 0 is YBackpack , 1 is YBackpack1 and so on, you should obtain ID of the first button and ID of the button pressed.



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

Posts: 2819
Post: #2399

(25.12.2013 19:23)Berserker Wrote:  igrik, обновление с этой функцией работает?
Да. Но небольшой косяк. Если много раз передать арты через кнопки Valery, то после закрытия окна встечи героев оно несколько раз быстро мелькает.
Valery, у меня работает! Автообновление окон переданых артефактов
Вы эти строки учли?
!!if&y50>=378/y50<=394/y51>=523/y51<=554/y36=13:; тут


game bug fixes extended.dll || My Plugins || My GitHub
(This post was last modified: 25.12.2013 19:33 by igrik.)
25.12.2013 19:30
Visit this user's website Find all posts by this user Quote this message in a reply
Valery Offline

Posts: 2196
Post: #2400

Bers, thanks, got it.

Igrik, still not working, pasted as you did it, no effect. Anyway my code changed a lot yesterday, half shorter.
25.12.2013 19:35
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