Posts from Scripts
Auto-translated
32MeTpa, you can initiate a battle directly with a hero from the reserve using StartCombat, without first calling DeployReserveHero. And if you need the hero to appear on the map, then instead of StartCombat, you can call MakeHeroInteractWithObject.
Is there a way to start a battle on a specific arena without using StartCombat?
Added 8 minutes later
The second option is to use the console command arena_override, which forces the game to conduct all non-siege battles exclusively on the specified arena.
To enable:
consoleCmd('arena_override path_to_arena')To return to normal arenas, which depend on the type of terrain:consoleCmd('arena_override 0')
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
Hello. I'm creating a map for multiplayer, and the idea is that after 2-2.5 months, the player's hero is transported to a portal leading to the center of the map, where a battle with the other players will take place. The problem is that the map needs to be finished in the next few days, and I don't know anything about scripting :с. I'm asking for help. Is there a script that can create this scenario?
Hello. I'm creating a map for multiplayer, and the idea is that after 2-2.5 months, the player's hero will be teleported to a portal leading to the center of the map, where a battle with the other players will take place. The problem is that the map needs to be finished in the next few days, and I don't know anything about scripting :с. I'm asking for help. Is there a script that can create this scenario?
Dimas82, yes, I know, the idea came from there. The problem is that campaign maps, apparently, cannot be unpacked, unlike regular standard maps. They use some other file packing format...
Added after 12 hours and 26 minutes
How do I create an attack animation for creatures on the map in the editor?
Added after 6 hours and 22 minutes
How can I make it so that, for example, peasants turn into demons in the map editor?
How to create an animation for creature attacks on the map, in the editor?
PlayObjectAnimation('SCRIPTED_NAME_OF_THE_CREATURE', 'ANIMATION_NAME', TYPE);
for example:
PlayObjectAnimation('npc_1', 'attack00', ONESHOT);There are animations for attacks and deaths, but not for all creatures. To find out which specific animations a creature has, place it on the map, select it, click in the property tree on Shared, and in the creature's parameter table, one of the first rows will contain the word Animation; click on it, and it will be clear from there.
How to make it in the map editor so that, for example, peasants turn into demons?
RemoveObject('SCRIPTED_NAME_OF_THE_CREATURE');
CreateMonster('NEW_SCRIPTED_NAME_OF_THE_CREATURE', IDENTIFIER, QUANTITY, COORDINATES, ...);
PlayVisualEffect('EFFECT_NAME', ...)
There are many examples of how to use these functions on many maps.