Skip to content

Posts from Scripts

4.8 (8 ratings)
In reply to thenekoor
User Avatar
6 years ago
Auto-translated
thenekoor
Help a newbie with the script.

function MakeHeroes()
DeployReserveHero("Mardigo", 17, 161, 0);

end;


Trigger(REGION_ENTER_AND_STOP_TRIGGER, "Start", "MakeHeroes");

function podkrep()
MessageBox(You discovered a squad of allied rebels who destroyed the border town.);
MoveCamera(28, 148, 0, 50, 0, 0, 1, 1);

end;


Trigger(REGION_ENTER_AND_STOP_TRIGGER, "gorod", "podkrep");


What should the script do?
1. When entering a specific location, it spawns Laslo.
2. When entering a specific location, it displays a message box stating that you have found reinforcements, and the camera smoothly flies to the specified coordinates.

The game throws an error in the script.

Well, at least read it yourself and analyze what errors the console is giving you. Most likely, in the first case, you did not fill in the hero's properties correctly or completely through Player properties in the editor. And in the second case, a separate text file is created there, which you already need to provide a link to in parentheses for "MessageBox".

And so that you can find answers to such questions yourself, here is a useful link:
/topic/13059/
In reply to Grigoriy
6 years ago
Auto-translated
Grigoriy
At least read and analyze what errors the console is giving you. Most likely, in the first case, you did not fill out the hero's properties correctly or completely through Player Properties in the editor. And in the second case, a separate text file is created there, to which you need to provide a link in parentheses for "MessageBox".

And so that you can find answers to similar questions yourself, here is a useful link:
/topic/13059/
I figured out the message box; the console gives an unknown error; I configured the hero according to the video tutorial
6 years ago
Auto-translated
Could you please tell me how to determine which Castle was chosen at the start of the game for a player? The idea is to add creatures to the garrison depending on the city chosen by the player.
In reply to Artme
User Avatar
6 years ago
Auto-translated
Artme
Could you please tell me how to find out which castle was chosen at the start for a player? The idea is to add creatures to the garrison depending on the city chosen by the player.

player_race = GetPlayerRace(Player_ID);

return value:

-- Town type IDs
--
TOWN_HEAVEN = 0
TOWN_PRESERVE = 1; -- Sylvan
TOWN_ACADEMY = 2
TOWN_DUNGEON = 3
TOWN_NECROMANCY = 4
TOWN_INFERNO = 5
TOWN_FORTRESS = 6
TOWN_STRONGHOLD = 7
Кампании для Heroes V 3.1 (Трилогия):

Пробуждение зла
Нашествие из Преисподней
Смена эпох

Скачать все кампании одним архивом: Яндекс.Диск Google.Диск

You can download the set of 3 Campaigns (English version) here


Одиночные сценарии Heroes V 3.1:


Незваные гости
Красный кристалл
Синий кристалл
Закат тьмы

Мультиплеерные карты для Heroes V 3.1:

Легендарная война
Сердце вулкана
Передел мира
User Avatar
6 years ago
Auto-translated
Is there a way to increase the maximum number of creatures that can be trained in a Haven castle to 20,000-40,000?
User Avatar
6 years ago
Auto-translated
in the file GameMechanics/RPGStats/DefaultStats, modify these lines:
7
20
Нет войне.
User Avatar
6 years ago
Auto-translated
This file should be in the map folder.

Added after 34 seconds
I only need it for one map. Or is it not possible that way?
User Avatar
6 years ago
Auto-translated
yes, you need to create the same path in your map and copy this file there.
Нет войне.
User Avatar
6 years ago
Auto-translated
Could you explain it in more detail, because I couldn't get it to work with a week either?

Added 40 seconds later
Just copy the DefaultStats file.
User Avatar
6 years ago
Auto-translated
You open the map with any archiver, for example, WinRAR, create the necessary folders in it, in this case, GameMechanics, and inside it, RPGStats, and then copy the DefaultStats file from the data folder into the RPGStats folder.
Нет войне.
User Avatar
6 years ago
Auto-translated
I've done everything, but it still won't work.
User Avatar
6 years ago
Auto-translated
it means something was done incorrectly. It would be more convenient if you shared the map; it's not very clear this way.
Нет войне.
User Avatar
6 years ago
Auto-translated
What is the problem?
User Avatar
6 years ago
Auto-translated
you need to create it in the main folder, in the same place where the Maps folder is located. Here is the corrected file.
Attachments 1
1 file attached • Total size: 85.7 KB
Нет войне.
In reply to Gerter
User Avatar
6 years ago
Auto-translated
it still doesn't work

Added after 8 minutes
Sorry, everything works. My mistake

Added after 1 hour 51 minutes
how do I set the price to 0 or 1 zloty?

Statistics

Welcome our newest member: recijeb