Posts from Scripts
Is it possible to display the hero's reputation in the list of quests? If a value with a global variable is added to the quest description or progress, will it be updated as the reputation changes?
Is it possible to add complex messages with values to the quest progress description?
2) No.
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
1) You can create multiple texts showing the progress of the quest.
But then you would have to create several thousand texts, because the reputation value changes from approximately 10 to 4000.
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
It could be hidden in the task and appear only when the special ability of the hero is activated (like summoning Ilm-Hijdra). JonnyP did this on one of his maps.
function activate_custom_ability(hero, custom_ability)
-- ...
end
ControlHeroCustomAbility(hero_name, ability_number(1..4), 1)
Trigger(CUSTOM_ABILITY_TRIGGER, "activate_custom_ability")
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
AllowHeroHiringByRaceInTown(town_name, race_forbidden_for_hiring_heroes, 0(forbidden)_or_1(allowed))
Added 2 hours and 7 minutes ago
Also, in the map properties, each player has a Tavern Filter.
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
if GetObjectOwner("garrison_name") == player_who_captured_the_garrison then
AddObjectCreatures("garrison_name", type, quantity)
end
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
Add a check to your function for the start of a new day to verify that the garrison belongs to that player.if GetObjectOwner("garrison_name") == player_who_captured_the_garrison then
AddObjectCreatures("garrison_name", type, quantity)
end
Thank you very much.
And here is another question. Could you tell me how to specify the damage animation for a creature in the PlayObjectAnimation script? I mean the damage animation that plays when it is hit... But for some reason, the manuals don't list the names of these animations... Thank you in advance.
PlayObjectAnimation("red_warrior", "",
ONESHOT);
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
Here's another question. Could you tell me how to specify the damage animation for a creature in the PlayObjectAnimation script? I mean, the animation that plays when it's hit... Because for some reason, the manuals don't list the names of these animations... Thanks in advance.
Select the monster, and in the property tree, look for the Shared line. Click on the three dots.
Then, in the window that opens on the right, look for the AnimSet line and click on the three dots again.
Now, a window will appear with a list of animations, where you can see their names.