Current time: 22.12.2024, 02:10 Hello There, Guest! (LoginRegister)
Language: english | russian  

Post Reply 
Threaded Mode | Linear Mode
[Скрипт] Мгновенная тактическая растановка
Author Message
Berserker Offline
Administrators

Posts: 16662
Post: #1

Позволяет быстро расставлять отряды мышкой без анимации передвижения.



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

Posts: 1177
Post: #2

Great script but HoMM 3 HD already got this feature ready for ERA Rolleyes


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

Posts: 16662
Post: #3

Nope. In HD mod troops really move, which is slow animation and thus NOT INSTANT. And clicking on stack does not pass turn to it immediately (some lag occurs). My script is much better.


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

Posts: 1177
Post: #4

Ah I see, great one.

I may be wrong, but I ask anyway if this bit of detail can also be improved:
When switching turns to troops with different passabilities (wide or not, for example, current: Titan, switch to Ghost Dragons by clicking on them) + some obastacles placed at the edge of Tactics range, it can be seen that the hexes on the screen are updated more than once. I suppose hexes range are updated on every stack's turn between the current stack and the clicked stack? It's not very comfortable for eyes.

Another problem is that wide unit sometimes cannot be placed, like in this situation:
Image: GB4PkyU.png
If you click on the position of the arrow pointed, the blood dragon won't be placed. It's only possible when clicking on the hex right to the arrow, which is not convenient, and counters intuition as the shadow already indicated a valid position for the Blood Dragons.


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

Posts: 16662
Post: #5

I tried to play one map a long ago, downloaded daemon's assembly and found out, that for me it's quite uncomfortable to play without Phoenix mod features. Thus I had to semi-port at least two scripts for hit'n'run and instant tactics alignment. Anyway, as you can see from TODO lines, a few features were still missing:

Code:
; TODO: Allow LMB on active stack, allow to place wide stack [here][W][W] and provide better acting side check for hot seat (non-real multiplayer)
; introduce mouse_owner


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

Posts: 1177
Post: #6

Very cool. I'd like to see more of this kind of script.


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

Posts: 16662
Post: #7

Thanks. I hope, I'll be able to work on scripts engine a bit in August.


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

Posts: 1177
Post: #8

I encountered a problem when using this script. It's not the problem of the script itself, but the multiplayer Synchronization.

In MP, if a hero forgets his tactics skill just before initiating a battle, and then initiates a battle with another hero with tactics, this defending hero cannot place the troops correctly (coz (tacticsRange)=0).
I checked the Tactics levels on the defender's PC, it shows both heroes have Expert Tactics, which isn't true coz the attacking hero has already forgotten Tactics skill.

Here's my revised script.
Allow LMB on active stack - fixed
Allow LMB on opponent's stacks - fixed
Place wide stack [here][W][W] - fixed
Provide better acting side check for hot seat - fixed
Introduce mouse_owner - not sure what it is
The only remaining issue is the MP issue as I mentioned above - should be fixed in ERA.



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

Posts: 16662
Post: #9

Archer30, great additions, thanks!
I thought actual hero structures are synchronized right on battle start, thus any skill changes should be preserved. Maybe you mean script, changing skills in !?BA trigger?


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

Posts: 1177
Post: #10

Quote:Maybe you mean script, changing skills in !?BA trigger
No. I forgot Tactic skills for my attacker with Valery's Trainer (HE:S). That's long before the !?BA. I thought the change should be reflected in the defender's PC, but surprisingly it didn't.


Latest ERA mods and scripts in development - My GitHub
26.07.2023 13:21
Find all posts by this user Quote this message in a reply
SergOz Offline

Posts: 1316
Post: #11

Странно, но только заметил этот скрипт 36
Сперва, прочитав название скрипта, подумал что это аналог того "костыля", который я сделал для своего мода.
Но, оказалось, что он производит иные действия.

В сложных боях, когда приходится часто их переигрывать, игрок, раз за разом, тратит время и нервы на повтор тактической расстановки своих войск. Я, в событии !?FU(OnAfterTacticsPhase); считываю расстановку войск, а потом, при переигровке, в !?FU(OnKeyPressed);, по нажатии F8, через !!BM#:P; мгновенно её повторяю.
Вот это действительно очень нужная для игроков фишка. Потому было бы замечательно, если бы её реализовали.

Свой скрипт приводить не буду, так как работает он "не очень" ну и не тянет он на глобальность, а "заточен" на мои скромные нужды... 147

P.S. В идеале эти скрипты объединить бы .


Карта-мод "Война на Холсте"
(This post was last modified: 22.10.2023 01:38 by SergOz.)
22.10.2023 01:32
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16662
Post: #12

SergOz, идея интересная, если расстановку игрок менять не хочет.


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

Posts: 1316
Post: #13

Berserker, так в чём проблема? Если захочет - поменяет, не нажимая F8 (условно).


Карта-мод "Война на Холсте"
22.10.2023 03:13
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16662
Post: #14

Я про то же. Один раз расставил — дальше горячая клавиша. Полностью поддерживаю идею.


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

Posts: 1316
Post: #15

Berserker, да, там ещё нужно обнулять данные, чтобы в следующей битве не воспроизводилась расстановка. Я думаю что нужно просто блокировать нажатие F8, если переменные нулевые


Карта-мод "Война на Холсте"
(This post was last modified: 22.10.2023 03:33 by SergOz.)
22.10.2023 03:31
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