Skip to content
User Avatar
#696
Auto-translated
Knight of the Abyss
You're helping me out again. The second option works great. Now I want to make it so that when you enter a zone, a message is displayed, then the monster plays a death animation, it disappears, and another one appears in its place. (Let's say a group of peasants is standing in front, then they die, and a group of skeletons appears in their place). Can you suggest a way to do this? (I can only get the message to display).
When entering the zone, a stop-zone trigger is activated, you display a message, and when you click "OK" in the message (transition to a new function), the creature is given a death animation (a battle animation was recently discussed - like peasants poking with pitchforks [PlayObjectAnimation("Creature Name", "animation type", animation loop);], here you just need to put something like "death" or "ded" in the player's resources, or in the extended editor, there are all types of creature animations, either in scene creation mode or somewhere else. You can also view them in the game's resources in the creature's xdb files - they are all there too. And instead of a looping animation, you need to set a one-time animation, otherwise it will be something like a "roly-poly" toy. After the death animation, delete the creature, immediately play an effect at the coordinates where the peasant was, for example, "raise dead spell effect." Create a monster (crtktnf) in that place at the coordinates where the old one was, and play an animation, either of joy or disappointment - anything.
Моды для HeroesV:
NHF 0.90 : NHF - группа в VK

Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...