Skip to content

Posts from Attempt to add new spells and skills. Auto-translated

5.0 (1 rating)
In reply to vasik
User Avatar
#32
Auto-translated
vasik
I'm telling you - in the simple version, there's a gray spell, and after that, it's useless.

NCF doesn't even have this, probably because the byte is incorrect.

I understand what you're writing... you just don't want to read it for some reason!

Added 1 minute ago
}{0TT@6bI4
Thank you, I understand. I wanted to try making it myself. If it's not too much trouble, could you make a patch with spells up to SPELL_CUSTOM_ABILITY_10 inclusive? Maybe I'm asking too much, but I hope...)

We'll need to systematize the information and put it in the header.

I'll definitely add up to 10, but first, I need to check if this trick will work with at least 1 new spell!
С уважением, Psatkha (Псатха)

---------------------------------------------

Неудачное планирование ведёт к неудаче ...

NCF - мод, добавляющий дополнительных существ в HeroesV 3.1
#33
Auto-translated
What do you mean by "what to read"? I launched your files, and I got a gray spell in the book, but there's no way to apply it. After playing around with it a bit, including adding it to EnumEntries and other places, nothing changed at all. Regarding version 97, I understand, but for some reason, it doesn't work.
In reply to psatkha
User Avatar
#34
Auto-translated
psatkha

I understand what you're writing... you just don't want to read it for some reason!

Added 1 minute ago

I'll add more, of course, up to 10, but first, I need to check if this trick will work with at least one new spell!
If vasik doesn't check, I will; I can't do it right now. At the same time, I'll test the scripting part!
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
In reply to vasik
User Avatar
#35
Auto-translated
vasik
What do you mean by "what to read"? I ran your files, and I got a gray spell in the book, but there's no way to apply it. After playing around with it a bit, including adding it to EnumEntries and other places, nothing changed at all.

I understand about 97 too, but for some reason it doesn't work.
That's right - CUSTOM5 is a script-based spell that's used in the field; it won't just run on its own... it needs the corresponding script content!

As for SPELL_VASIK, it consumes mana when applied, but nothing happens, because it seems that SPELL_VASIK is launched, and the handler tries to find code for it, but there isn't any... because there's no reference to the SPELL_VASIK subroutine in the .exe... i.e., for any non-existent argument, some procedure DO_SPELL returns false and jumps to some C3h code (return, i.e., a return occurs to the calling procedure).
С уважением, Psatkha (Псатха)

---------------------------------------------

Неудачное планирование ведёт к неудаче ...

NCF - мод, добавляющий дополнительных существ в HeroesV 3.1
In reply to psatkha
User Avatar
#36
Auto-translated
psatkha

That's right - CUSTOM5 is a script-based spell for use during expeditions; it won't run on its own... it needs the corresponding script content!

As for SPELL_VASIK, it consumes mana when applied, but nothing happens, probably because SPELL_VASIK is executed, and the handler tries to find code for it, but there isn't any... because the .exe file doesn't have a reference to the SPELL_VASIK subroutine... i.e., for any non-existent argument, some procedure DO_SPELL returns false and jumps to some C3h code (return, i.e., a return occurs to the calling procedure).
Probably, that's exactly what's happening. Expedition spells are the optimal solution because the developers intended for their reactions to be handled by user scripts.
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
In reply to }{0TT@6bI4
User Avatar
#37
Auto-translated
}{0TT@6bI4
Gerter, in the video example, are you activating the Berserker's Rage spell on the zombies or...?
No, there's just a script that uses UnitMoveAttack().

I checked the spell that psatkha provided, and yes, it can be cast, but there's no effect. On the other hand, such "empty" spells would be very useful for adding cool effects to battles without affecting the course of the battle. As expected, the xdb files don't contain much besides basic information; all the mechanics are inside the exe file. It definitely won't be possible to implement a new combat spell mechanic (using scripts). If it's designated as a "travel" spell, maybe it's possible, but in reality, new travel spells won't be very useful.
Нет войне.
User Avatar
#38
Auto-translated
Hmm, by the way, the idea regarding effects is quite interesting... And as for travel spells, you can either come up with an interesting mechanic for them that can be implemented with scripts, or give them to creatures.
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
In reply to }{0TT@6bI4
User Avatar
#39
Auto-translated
}{0TT@6bI4
Hmm, by the way, the idea about effects is very interesting... And regarding travel spells, you can either come up with an interesting mechanic for them that can be implemented with scripts, or give them to creatures.
Yes, I already have ideas on how to create beautiful summoning effects in battles instead of the standard ones. Travel spells are a bit more complicated; I added one travel spell to the mod that allows you to summon an unlimited number of other units using a script. But spells like the one for zombies can definitely be created; at least, I will add this patch to MCCS.
Нет войне.
User Avatar
#40
Auto-translated
Good luck! I plan to use this approach to diversify both the map and the NHHD.
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
User Avatar
#41
Auto-translated
Is it possible to increase hero specializations and add new ones in this way? Even if not through leveling up, but with fixed bonuses from the start. In Heroes of Might and Magic III, there were heroes who provided a fixed bonus from the beginning, and it couldn't be upgraded. It would be possible to implement something similar.
Ссылка на мой мод Heroes 5 Armageddons Blade

Ссылка на мои уроки по модостроению в Героях 5

Ссылка на мой Artstation
User Avatar
#42
Auto-translated
Probably, yes. But you can’t add mechanics to them, only scripted ones, most likely. And then it’s easier to just link a script, and give the special hero a zero value, without any complications. So, I don’t see the point in increasing the number of special heroes.
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
In reply to Waterfall_13
User Avatar
#43
Auto-translated
Waterfall_13
Can hero specializations be increased and new ones added in this way? If not through leveling up, then at least as a fixed bonus.

In the third game, there were heroes who immediately gave a certain bonus, and it couldn't be upgraded. In principle, you could also make heroes like that.
Specializations can be added freely using scripts without manipulating the game's core.
Нет войне.
In reply to Gerter
User Avatar
#44
Auto-translated
Gerter
specializations can be added freely via scripts without any manipulations with the game core.

=)
If you still release a tutorial on adding artifacts, I feel the next request will be about specializations xD
However, artifacts are more important to me...
Ссылка на мой мод Heroes 5 Armageddons Blade

Ссылка на мои уроки по модостроению в Героях 5

Ссылка на мой Artstation
In reply to Waterfall_13
User Avatar
#45
Auto-translated
Waterfall_13

=)
If you do release a tutorial on adding artifacts, I have a feeling the next request will be about specializations xD
However, artifacts are more important to me...
What's wrong with specializations?
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________