Skip to content
User Avatar
#4098
Auto-translated

Azgalor
green belly, what's the deal with your console? Have you tried enabling it using internet guides by modifying files in the profile parameters folder? And could you provide more details about the attempt to work with a battle script? If all this is still relevant to you, of course
I tried both the console and the battle script; neither of them works for me. I've reread every possible and impossible guide and even the rarest tutorials I could find on the internet.
In the end, I implemented static creature destruction, but if it's not too much trouble, could you suggest the correct code for percentages? It will definitely be useful for me and other forum members in the future. I am absolutely sure that the code for this effect is super easy for those who know their stuff.
Also, I have a few more questions; maybe someone knows:
1) The idea is a simplified draft: 3-4 random heroes are rolled at the start of the map and you play with them. Question — how do I make it so that at the start of the map, the player is given 3-4 random heroes (including those created from scratch) of the race they chose in the foyer?
The editor doesn't provide this capability, and I haven't found any such scripts in tutorials or across the web.
2) The idea is a special hero ability that gives a stat to a hero if the enemy hero's stat is lower. Similar to Alaric from the message above — request the stats of the enemy heroes (there is always only one there, but it's random), and if my hero's stat is higher, then the rest of the code for increasing the stat is simple. I tried it — the game crashes upon triggering.
3) How do I change spell icons to my own? I use a mod myself, I think by Dreadknight, for mass icons; I did it similarly, including creating a new object in the texture folder and so on with all the links, but the result is always the same — the game won't launch.
4) How do I change the speed of the hero teleportation animation on the adventure map? It's very slow in the Universe mod client.
5) How to properly work with tables and random(). There are no good tutorials for this, only examples with "IT-style" characters that you can't even find on a keyboard, let alone figure out the logic.
The most banal example:
table "artifacts" = {id1, id2... id50}
if hero name is "Alaric"
then
teach "Alaric" a random spell from the table "artifacts"
Something like that, but even here I can't understand the logic: what to write where and what will be taken from where.
P.S. A long time ago on the forum, I asked about the speed of disappearing messages in battle, like "miss", Orc blood points, number of creatures killed, number of resurrected, etc. — this parameter in the autoexec_a2.cfg file is easy to change