Current time: 02.06.2024, 13:15 Hello There, Guest! (LoginRegister)
Language: english | russian  

Post Reply 
Threaded Mode | Linear Mode
ERA III
Author Message
Berserker Offline
Administrators

Posts: 16521
Post: #2566

Just modify stdlib then



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

Posts: 1135
Post: #2567

Maybe this?
Assumes that mouse click will have the same result with mouse hint wait it won't


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

Posts: 16521
Post: #2568

Nope, click is click, hint is hint. You can add to both events to be able to differentiate hints for active and non-active player.


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

Posts: 1135
Post: #2569



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

Posts: 16521
Post: #2570

Archer30, great. Now it will be much easier to add check. Will add to Era log too.

What's about hotseat? Seems like we should check game type for network gaming or at least add check for hotseat too.

hotseat, battle against AI => true if non-AI active
hotseat, human vs human => always true
single player => true if non-AI active
network battle => true if this PC player active


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

Posts: 16521
Post: #2571

Code:
[+] Added the following global variables to Era Erm Framework:

  i^battle_isThisPcActive^: bool. Used in battle hint and battle click events to allow GUI interaction or display action hint for active GUI user.
                                  Single player, Hot seat => TRUE if active side is human
                                  Multiplayer => TRUE if active side is this PC human


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

Posts: 1135
Post: #2572

Logic looks great. Script is ready?


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

Posts: 16521
Post: #2573

Will send you soon updated EEF.


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

Posts: 1135
Post: #2574

I propose to add a new function to be added in EEF.

A simple function to check if a monster is disabled in most events like a random monster encounter in Souting II events.
The default monsters to be disabled are those that should never appear in the hero army slots plus emissaries.
The function result can be modified by mod makers. They can define their disabled monsters, usually some boss creatures that should not appear elsewhere.
This function can help build mod compatibilities. For example, to disable a new monster added by typhon to appear in all those WoG Scripts events, we only need to change the result here, and then it applies everywhere.


Latest ERA mods and scripts in development - My GitHub
(This post was last modified: 18.05.2024 19:17 by Archer30.)
18.05.2024 19:16
Find all posts by this user Quote this message in a reply
XEPOMAHT Online
Moderators

Posts: 2296
Post: #2575

(18.05.2024 19:16)Archer30 Wrote:  This function can help build mod compatibilities. For example, to disable a new monster added by typhon to appear in all those WoG Scripts events, we only need to change the result here, and then it applies everywhere.

Привязка к номерам монстров - чудовищные костыли. Так ещё и плюс к несовместимости с ERA+ заработаете с помощью ERM. Почему не можете посмотреть в коде игры содовский способ проверки генерации случайного монстра?

Игра проверяет мин. и макс. количество монстров на карте и если там нули, то монстр не генерируется. Так же точно можно проверять генерируемость монстра с помощью ERM.
18.05.2024 20:26
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16521
Post: #2576

Archer30, I agree with Heromant, that universal checking of MinAdvMap and MaxAdvMap values is better (if commanders and emissaries have proper zero values)
I would call the function something like MonsterIsAdvMapGeneratable.


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

Posts: 1135
Post: #2577

The function is meant to be used by different scripts/mods so we don't have to deal with checking again and again.

And you can initiate the fancy check in this function as well.

It only gives a standard so everyone can use the same function to check. If the function returns the positive (disabling) result, it means one of the mod components doesn't want a monster to appear in most events, and thus other scripts can respect the result here.

___

Well, assuming all those monsters we don't want to use have the correct MinAdvMap and MaxAdvMap values, I think my proposal is abundant. We have a handful of mods, I will try to go through each of them and see if they are correct.

____

Well, just rethink about it, and I feel the idea of MinAdvMap and MaxAdvMap values is not perfect. There was a time I set MinAdvMap and MaxAdvMap values to 0, and then players came back and said they found it weird - when they put such a creature on the map by map editor, the quantity of it is 0 by default (when they attack it in the game).

If ERA introduces a mechanism to correct the adv stack number with <=0 to 1, I can set MinAdvMap and MaxAdvMap values to 0 without worry.

In conclusion, two ways:
- Use MinAdvMap and MaxAdvMap values as a reference, correct all the existing mods, ERA should set adv creature number at least 1
- Intorduce a function in EEF and use it to check if a monster should be ignore


Latest ERA mods and scripts in development - My GitHub
(This post was last modified: 19.05.2024 03:34 by Archer30.)
19.05.2024 02:32
Find all posts by this user Quote this message in a reply
Archer30 Offline
Moderators

Posts: 1135
Post: #2578

Is there a list of era hooks placed in the game, especially for different era triggers (events)?
Somewhere from era source?


Latest ERA mods and scripts in development - My GitHub
(This post was last modified: 27.05.2024 16:44 by Archer30.)
27.05.2024 16:44
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