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

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

Posts: 16488
Post: #7396

Guys, please, specify Era/Mods version, when you ask something, because a generic anwer for all versions may not exist.

Archer30, it's not released, but I hope will be released today or tomorrow.
https://dropmefiles.com/Msmgs

From this version one can safely use !?BR (prefer to use named !?FU(OnBattleRound) version though), !?FU(OnBattleRound) or even !?FU(OnCombatRound). All 3 triggers are the same. All occur in visible rounds only. In all of them v997 is valid round number. For all of them Tactics phase starts from -1000000000 round. For all of them the first non-tactical round starts from 0 and has no duplicates.

As you know, in WoG round 0 can occur twice, round -1 depends on tactics, tactics has negative DECREASING round numbers, so it's a great buggy mess.

Valery, selecting creatures in tactics phase is "WoG Native Dialogs" harmless feature. We need mods/versions/savegame to give more information.


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

Posts: 136
Post: #7397

Bes, да, разобрался, спасибо.

Вопрос: можно ли с помощью !!EA:B дать Податливость (нет иммунитета к дружественным заклинаниям)? В crexpbon.txt у этой способности/модификатора значения w/0. Для w в ЕРМ соответствует код 119, но нуля нет.
30.10.2020 22:14
Find all posts by this user Quote this message in a reply
Archer30 Offline
Moderators

Posts: 1117
Post: #7398

Thanks, Berserker. It makes sense to remove double round 0. Just there may be some wog scripts relying on v997=-1 will have to be updated, I will try to do my part. Yes


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

Posts: 16488
Post: #7399

Archer30, if you need to check for Tactics phase, the condition should be v997<0. Then it's correct and may be left untouched.


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

Posts: 1005
Post: #7400

Archer30, Berserker, накидал список кандидатов, которые нужно будет просмотреть...


Тот, кто просыпается рано - жаворонок, поздно - сова. А тот, кто плохо спит и ходит с черными кругами под глазами - панда!
30.10.2020 22:36
Find all posts by this user Quote this message in a reply
Archer30 Offline
Moderators

Posts: 1117
Post: #7401

Berserker, hmmm. I'm trying to understand the idea of the good old (not really) WoG Scripts, let me show you the code here.


So this is the part of tactics enhancement from 75 wog - secondary skills boost.erm. From what I can see, in WoG the battle round always starts from -1 (even tactics phase was not there). If this is not true, then !?BR with v997=-1 won't be run at all as tactic phase have been removed in !?BA.

But in ERA 3.2, the battle round starts from 0 unless there is a tactic phase. That's different from WoG.

I tried to fix the code above for ERA 3.2. I changed !?BR to !?BF and removed v997 requirement, so far so good.


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

Posts: 16488
Post: #7402

Archer30, round -1 does not occur in WoG without tactics. Replace !?BR; in original code with
!?BR&v997=-1000000000;
and remove
!!FU&v997<>-1:E; [Exit if not tactics round]

I've added new constant to Era Erm Framework:
!#DC(FIRST_TACTICS_ROUND) = -1000000000;


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

Posts: 1117
Post: #7403

(tested on ERA 3.2.0 dll you uploaded yesterday)

Nope, Berserker, your code doesn't work. Bonus speed is not added to creatures with your edit.

My guess is that with !!FU&v35=0/v36=0:E; round -1000000000 is removed, it starts from 0 even if a hero has tactics skill.

Why not replace !?BR with !?BF here though, bonus speed only needs to be applied once before entering combat mode.


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

Posts: 16488
Post: #7404

Archer30, nope, tactics round is present.
Try
!?BF is an alternative too, though, the later bonuses are applied, the better.


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

Posts: 1117
Post: #7405

Well, I got the result "0" with tactics skill + tactic enhancement.

Round -1000000000 is only there when turning off tactic enhancement from 75 wog secondary skill boosts.erm.


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

Posts: 16488
Post: #7406

Archer30, ah, got it. The script disables tactics for hero, so no real tactics round takes place.

Replace
!?BR; [Battle round trigger for tactics, before tactics phase]
with
!?FU(OnBattleRound)&v997=0/v35<>v36; [Battle round trigger for tactics, before tactics phase]
Meaning: if it's first non-tactics combat round and attacker's tactics skill differs from defenders tactics skill

And remove
!!FU&v997<>-1:E; [Exit if not tactics round]


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

Posts: 1117
Post: #7407

RolleyesBerserker, that works but not as intended, the speed bonus now occurs double the amount. Perhaps the release of 3.2 will fix this?


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

Posts: 16488
Post: #7408

Archer30, hmm, check on this dll: https://dropmefiles.com/vsj1H


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

Posts: 1005
Post: #7409

Berserker, проверил, что то пошло не так...
Image: Tactic-bag.jpg


Тот, кто просыпается рано - жаворонок, поздно - сова. А тот, кто плохо спит и ходит с черными кругами под глазами - панда!
31.10.2020 23:31
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16488
Post: #7410

Panda, подтверждаю. Займусь исправлением.


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