Current time: 25.11.2024, 19:45 Hello There, Guest! (LoginRegister)
Language: english | russian  

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

Posts: 16657
Post: #3301

Hi, Val!
Did I say it? I lied you )))
If OB:T = 34 (hero). #get object under hero / erm snippet
Val, be careful not to use function numbers equal or greater than 134 217 728 )

I didn't understand the whole code, but you can safely loop through huts, then access OB:T and if it is 34 (enemy hero), then use snippet above to get real subtype, type and control word of object under hero.


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

Posts: 7107
Post: #3302

Интересно. Надо взять на заметку.


When all gods have burnt to ashes in eternity of sorrow,
Demons gonna tear your soul because there is no tomorrow.
18.04.2015 22:04
Find all posts by this user Quote this message in a reply
Valery Offline

Posts: 2196
Post: #3303

Thanks)
19.04.2015 00:22
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16657
Post: #3304

You are welcome Sm


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

Posts: 7107
Post: #3305

Valery, actually you can just check object type. While UN:U extracts objects from under heroes, OB does not. So if you find an object with UN:U, check its type instead of checking for an error in HE:N.


When all gods have burnt to ashes in eternity of sorrow,
Demons gonna tear your soul because there is no tomorrow.
19.04.2015 01:13
Find all posts by this user Quote this message in a reply
Valery Offline

Posts: 2196
Post: #3306

Yes I know, I fixed the problem by turning off temporary (until next search) the error display.

19.04.2015 01:41
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16657
Post: #3307

Do you restore P904 after check?


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

Posts: 2196
Post: #3308

Yes Boss, I restore it on DL close action.
19.04.2015 19:39
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16657
Post: #3309

Better do it right after check. Player can activate key press events being in dialog, so UN:P must be virginely clean any time )


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

Posts: 2196
Post: #3310

The problem is that, when DL is up, if hero is on seer hut, pressing buttons in DL will show error message if that hut. Script is not interrupted, is just a stupid pop up, so I must keep errors off as long as DL is up. I see no reason player would press any keys in DL.
19.04.2015 20:14
Find all posts by this user Quote this message in a reply
gamecreator Offline

Posts: 7107
Post: #3311

Can't you disable errors just during button press?


When all gods have burnt to ashes in eternity of sorrow,
Demons gonna tear your soul because there is no tomorrow.
19.04.2015 20:17
Find all posts by this user Quote this message in a reply
Russia Punk

 
Post: #3312

У меня появилась идея нельзя ли расширить боевое поле?102
20.04.2015 00:23
Quote this message in a reply
gamecreator Offline

Posts: 7107
Post: #3313

Нет, нельзя.


When all gods have burnt to ashes in eternity of sorrow,
Demons gonna tear your soul because there is no tomorrow.
20.04.2015 00:30
Find all posts by this user Quote this message in a reply
k : / Offline

Posts: 328
Post: #3314

(20.04.2015 00:23)Russia Punk Wrote:  нельзя ли расширить боевое поле?102
А можно проиграть анимацию монстра, как будто он выходит из-за пределов экрана, появляясь со стороны противника? Тогда поле можно умозрительно "как бы расширить", на деле не расширяя.


Дɑтɑ, nодnucь.
20.04.2015 03:24
Find all posts by this user Quote this message in a reply
feanor Offline

Posts: 624
Post: #3315

Можно попробовать переупорядочить гексы. Но увеличивать их число..хз, варьируется от "сложно" до "почти невозможно".
20.04.2015 03:39
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