Skip to content

Posts from Current questions and answers regarding the map editor. Auto-translated

5.0 (12 ratings)
User Avatar
#2756
Auto-translated
Gray line for cheating debugging. Appears on 1/3 of the screen when pressing Ё.

Added after 3 minutes
Here is a link to the topic about its activation Cheat codes for Tribes of the East
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#2757
Auto-translated
Yes, there's a lot of red text in the console. But it's all related to the hero Letos and Vlad, saying that he doesn't have an army. And since the map is currently being tested, the army is large.
Правило во взгляде...
User Avatar
#2758
Auto-translated
And even after scrolling with PageUp/PageDown, does it only show information about Lethos and Vlad?
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#2759
Auto-translated
I'll go take a look... My humble Oak didn't think of that)

Added 4 minutes later
Hero (Letos/Vlad) without an army. Generated a standard full army for this hero. Is this supposed to hint that I shouldn't use Renish with Wolves? I didn't find anything else red.
Правило во взгляде...
User Avatar
#2760
Auto-translated
This suggests that Letos and Vlad should probably be given an army. But it's also possible not to. As for the dragon situation, I'm at a loss. :smile35:
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#2761
Auto-translated
Do you have TeamViewer? It's free, and you can access my system through the network, and I'll watch your actions. And the guys have an army too... One has 10 vampires and 10 liches, the other has 10 Shadow Lords.

Added 7 minutes later
What does the number 3 represent in the script? No, I have an even worse option... Writing a separate script for each spitting dragon in the map properties... By the way, what if I write this script in the object's personal properties? What is the scripting tab for, if we set everything in the map's root?

Added 5 minutes later
Suddenly, Letos and Vlad don't have a biography. My laptop must have gotten something mixed up.
Правило во взгляде...
In reply to Rhenish
User Avatar
#2762
Auto-translated
What does the number 3 represent in the script?
The number 3 corresponds to ONESHOT, meaning the animation is played only once.
No, I have a really terrible option... To write a separate script for each spitting dragon in the map properties...
It can be generalized.
By the way, what if I write this script in the object's personal properties? What is the scripting tab for, if we set everything in the map's root?
This tab is for combat scripts.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#2763
Auto-translated
I understand... Well, when there are many objects and there's a generalization, it doesn't want to work. I left only one object with that name, and it immediately reproduced. I'm already at my wit's end...
Правило во взгляде...
User Avatar
#2764
Auto-translated
A-a-a! Well, each object should have its own unique name.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#2765
Auto-translated
Okay, how can I generalize this in a script so that all creatures with the name "laonXX," where XX is a number, breathe fire?
Правило во взгляде...
In reply to Rhenish
User Avatar
#2766
Auto-translated
function PlayAnim(object) while IsObjectExists(object) do PlayObjectAnimation(object, "attack00", 3) sleep(50) end end for i=1,число do startThread(PlayAnim, "laon"..i) end ``` Replace "число" with your desired number. Do not add a leading zero to single-digit numbers in the name.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#2767
Auto-translated
Didn't receive it. Which specific number? What's the range?
Правило во взгляде...
User Avatar
#2768
Auto-translated
Yeah, that's right. Here are some names:
laon1, laon2, laon3, ..., laon45
and in this case, the "number" will be 45, i.e., the last one.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#2769
Auto-translated
Thank you very much!

Added 5 minutes ago
As for the buildings, you can modify the script so that the "wells" used for recruiting units simply disappear when Vlad captures the town, and they don't turn into Necropolis buildings. But the town itself should be converted into a Necropolis...
Правило во взгляде...
In reply to Rhenish
User Avatar
#2770
Auto-translated
Yes. Replace the TransformBuilding function with this code snippet.
function TransformBuilding(_, _, hero, building)
if hero == "Pelt" then
RazeBuildingWithEffects(building)
end
end

function RazeBuildingWithEffects( objectName )
local x, y, floor = GetObjectPosition( objectName );
Play2DSound( "/Maps/Scenario/A2C2M1/Siege_WallCrash02sound.xdb#xpointer(/Sound)" );
PlayVisualEffect( "/Effects/_(Effect)/Buildings/Capture/Start_dust_S.xdb#xpointer(/Effect)", "","tag1", x, y, 0, floor ); -- Dust
PlayVisualEffect( "/Effects/_(Effect)/Characters/Heroes/DemonLord/Path/Level_2b.xdb#xpointer(/Effect)","","tag2", x, y, 0, floor ); -- Fire
RazeBuilding( objectName );
end;
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4