Skip to content

Posts from Scripts

4.8 (8 ratings)
User Avatar
5 years ago
Auto-translated
Don't know where to find a guide? Where are all the hero names, the list of spells, the creature numbers, etc.?
User Avatar
5 years ago
Auto-translated
1. From which guide? 2. Do you need a list of IDs?
In reply to }{0TT@6bI4
User Avatar
5 years ago
Auto-translated
}{0TT@6bI4
1. Which guide are you referring to? 2. Do you need a list of IDs?

Yes, in the scripts, to place a hero or an army, you need to know their numbers. You can find the hero IDs in the settings, but the creature IDs are not labeled.
User Avatar
5 years ago
Auto-translated
I understand that you watched Remix's guide on scripts; in the description, there's a link to download the archive, which contains what you're looking for. This guide is also available in the game's documents folder. Also, the most complete list of identifiers can be found in types.xml (data/data.pak/); use Ctrl+F to find, for example, CREATURE_PEASANT with its ID and then look further. You can also find their IDs in the creature parameters. https://yadi.sk/d/W6cz5UBu3SGAvb
User Avatar
5 years ago
Auto-translated
Could you provide a script to prevent artifacts from being removed? I need a script that prevents a hero from equipping artifacts that cannot be transferred or removed. Thank you in advance.
User Avatar
5 years ago
Auto-translated
Could you please remind me? I've forgotten a bit. In the StartCombat script, I need to initiate a battle with 3rd-tier zombies, but I need their ID. Where can I find it?
User Avatar
5 years ago
Auto-translated
types.xml in data.pak or Ctrl+Space on any empty line in the script editor (this will open a new window with all the IDs).
User Avatar
5 years ago
Auto-translated
Thank you for your help.
User Avatar
5 years ago
Auto-translated
Hello everyone! Can anyone tell me how to make a dialogue play only once? So that the scene plays just one time.
User Avatar
5 years ago
Auto-translated
In what sense? All dialogue scenes and mini-dialogues play once. Or you have strangely disguised a cyclically playing animation, or you are running a video in a (conditional) loop, or I definitely don't understand something :smile42:
User Avatar
5 years ago
Auto-translated

The problem is that I created a dialogue with a script. In the game, the dialogue plays, but if the character stays in a region that is within the dialogue area, it will play again. If the character leaves and re-enters the region, the dialogue will be duplicated again. I'm attaching the function:

function Dialog1()
StartAdvMapDialog(0);
end;

Trigger (REGION_ENTER_AND_STOP_TRIGGER, "DialogeNA1", "Dialog1");

--

User Avatar
5 years ago
Auto-translated
Okay. After the line StartAdvMapDialog(0), set the trigger to zero:
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "DialogeNA1", nil)
User Avatar
5 years ago
Auto-translated
Thank you. I tested the dialogues, and there are no more instances of this issue.
User Avatar
5 years ago
Auto-translated
Please help me understand. In the map editor, I open the arena object section, select, for example, a tombstone, change its model to that of a demon lord, and set the demon lord's animation. Now I have a demon lord that can be resized. I reduce its size by 4 times, place it on the map, and everything works fine. It is not a hero and cannot perform any actions, but how do I make it interactive, for example, so that if I touch it, some script is triggered? I tried to explain my problem, but it's difficult to put into words. If you happen to understand what I'm talking about, please help me figure it out.

Statistics

Welcome our newest member: recijeb