Wake of Gods Forum | Форум Во Имя Богов

Full Version: Разные вопросы
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
XEPOMAHT, вопрос риторический. Конечно стоит )
(24.04.2019 18:43)XEPOMAHT Wrote: [ -> ]Стоит ли здесь на форуме выкладывать мод к ERA, добавляющий 10-й город, артефакты, монстров с жилищами и банками для грабежа, накладные почвы, корабли и прочие мелочи при условии, что все ресурсы этого мода являются ворованными (т.е. авторы могут обратиться к администрации форума о удалении этого компота и соответствующем забанивании)?

В таких случаях, можно указать списком ники разработчиков, кто изначально создал эти ресурсыAb
Не редко такое встречается в виде комментариев в доработанных скриптах.

А выкладывать всегда стоит.
I have a question regarding WoG/ERA. Probably it is already known but maybe someone can point me towards the solution.

When in battle and giving a creature HP with !!BM:H command in !?BF trigger. So this "extra" HP vanishes/resets when I afterward use the !!EA receiver to give abilities to this stack, so do all other bonuses, also a defense boost from the Stoneskin spell will vanish after using !!EA receiver.

What do you usually do to avoid this? Because there arise several problems with scripts like "21 wog - neutral units.erm"

Edit: Okay one solution is to just do it the other way round obviously, like use !?BA for !!EA manipulation and afterwards !?BF for !!BM, but that's just a workaround...
Not the worst workaround it is )
I once more want to point out that there are problems using the !!EA battle receiver (or at least the way I do it, maybe I'am doing something wrong?)
Below you can find a test script.
The problem here is you set extra abilities with EA receiver than you start a fight. Retreat from that battle and now if you start a new battle the creatures will have wrong stats. Most likely they will carry the HP from the last battle you fought. Tested with clean ERA 2.77 assembly.
Best to witness if you first fight a pack of Gnolls -> Retreat and then fight some lvl 7 creature with 6 HP Sm


loop400. By the way, label names are local to trigger handler block !?XX before next !?XX, thus loop1 or [:forEachCreature] can be reused.

I will look into EA receiver, seems like a bug really.
Could you explain, what does
!!EAy2:F0/?y3; [Check for next available bonus line: y3]
mean?

0 is not a valid number for ability.
Even if it works, it seems that you search for the first empty line (ability 0 will never be found). Ok, but ability number to set up is generated randomly (y10) and thus can be non-unique. So instead of overwriting the same line for the same ability in case of random number collision, you always allocate the new one, right?

Apart from possible duplicated exp line, I see no errors in code.
(19.05.2019 22:22)Berserker Wrote: [ -> ]Could you explain, what does
!!EAy2:F0/?y3; [Check for next available bonus line: y3]
mean?

0 is not a valid number for ability.
Even if it works, it seems that you search for the first empty line (ability 0 will never be found). Ok, but ability number to set up is generated randomly (y10) and thus can be non-unique. So instead of overwriting the same line for the same ability in case of random number collision, you always allocate the new one, right?

Apart from possible duplicated exp line, I see no errors in code.

Yes that is how I understood it, I took from ERM manual
Quote: F$1/$2; If you set $1 to 0, you will find the first free bonus line.

So for every iteration, it searches the stack for free lines and sets a new random ability (always) which comes with y10(x1) in this case. Admittingly it misses some checks for double abilities or no free space but I don't think that is the core of the problem.
The question is how can the HP/Att/Def from one stack be transferred to another stack in the next battle, or how can I avoid it? And why does it only happen if I retreat? If the combat finishes normally there are no problems.

By the way, thanks for the hint with the local label names Sm , though they would be global and started to enumerate.
I need to investigate it further, wether it's a simple lack of EA clearing on retreat or some other sort of bug. Seems like the former variant.
Welcome Sm It's nice that someone read those boring changes.txt and used new feature.
(28.04.2019 17:26)PerryR Wrote: [ -> ]When in battle and giving a creature HP with !!BM:H command in !?BF trigger. So this "extra" HP vanishes/resets when I afterward use the !!EA receiver to give abilities to this stack, so do all other bonuses, also a defense boost from the Stoneskin spell will vanish after using !!EA receiver.
PerryR, try this plugin. Maybe he will solve the problem. (link)
(20.05.2019 12:19)igrik Wrote: [ -> ]
(28.04.2019 17:26)PerryR Wrote: [ -> ]When in battle and giving a creature HP with !!BM:H command in !?BF trigger. So this "extra" HP vanishes/resets when I afterward use the !!EA receiver to give abilities to this stack, so do all other bonuses, also a defense boost from the Stoneskin spell will vanish after using !!EA receiver.
PerryR, try this plugin. Maybe he will solve the problem. (link)

No, unfortunately, it does not.
Stats are still reset if you give ability with EA. At the beginning of combat (BF) or during (BR) doesn't matter.
What does this plugin actually do?
Добрый день. Интересует вопрос по моддингу командиров. В каком файле указана привязка (ссылка на нахождение файлов) к озвучиванию действий командиров? Был бы благодарен, если бы кто-нибудь скинул ссылочку на статью по моддингу командиров (если таковая ещё где-нибудь осталась в живых)

UPD: Вопрос решён
Подскажите, пожалуйста, что я делаю не так?
Заменил картинку спелла у Астрал Спирита (файл /mods/wog/data/zvs/lib.res/_b9_1.bmp) с контрудара на призыв:
Проверяю в игре, картинка не изменилась:
(21.08.2019 14:37)slater777 Wrote: [ -> ]Подскажите, пожалуйста, что я делаю не так?
Заменил картинку спелла у Астрал Спирита (файл /mods/wog/data/zvs/lib.res/_b9_1.bmp) с контрудара на призыв:
Проверяю в игре, картинка не изменилась:
плагин wog native dialogs.dll изменяет использование этих файлов на один деф "Dlg_NPC1.def".
Редактируйте этот деф, либо отключайте плагин wog native dialogs.
igrik, благодарю.
Reference URL's