Skip to content

Posts from Manticore dwelling from the dungeon.

No ratings yet — be the first to rate!
5 years ago
Auto-translated

I'm a complete beginner, please help me with a simple script. My editor is giving me an error and won't open the map I created in the random generator, and then opened in the editor and added the script to. It's possible that my poorly written script is "breaking" the map, and that's why it won't open in the editor and doesn't work at all.

Basically, I need a script that will do the following:

1. When a hero visits a specific object, for example, an abandoned mine, the hero will receive 2 manticores in their army.
2. The script checks if the player has 2400 gold in their account, and if they do, it takes it away.
3. At the same time, the script should trigger every time the object is visited, not just once.
4. The standard function of the abandoned mine – receiving a random resource – should be disabled.

In reply to OrnsteinDragonslayer
5 years ago
Auto-translated
Simply put, yes. It doesn't have to be from a mine; it can be from any accessible location on the map. I just want to use neutral creatures in my custom scenario and have them be available for recruitment near the castle, rather than simply being given to a specific hero at a specific point in time.
User Avatar
5 years ago
Auto-translated
Wouldn't a simple new dwelling, where you can recruit Manticores at cost, be enough? I can explain how to create one.
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
In reply to }{0TT@6bI4
5 years ago
Auto-translated
Sure, that would be great, as long as it's not more complicated than what I described in my first post. I wanted to have dwellings for all the neutral creatures in my arsenal – manticores, mummies, phoenixes, wolves, and death knights.
User Avatar
5 years ago
Auto-translated
Place any dwelling, go to its properties, click on Shared, then click New => Enter a name => OK => In the new window, in the Shared properties, be sure to select Model, add active and blocked tiles (for each of these tiles, configure the offset relative to the center of the object so that the hero does not walk through the dwelling; to preview the tiles, press Ctrl + B on the adventure map, active tiles will turn green, impassable ones - red).

Then go to the bottom of the Shared properties, in Type, select any, then add a new element to creatures, and in it, select the desired creature.

In MessageFileRef, add 2 new elements, in the first, create a text file for the name, and in the second, a text file for the description.
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
In reply to }{0TT@6bI4
5 years ago
Auto-translated

I don't quite understand how to "add active" and "blocked tiles"... In the properties, it just says null, and you can't select active. If you just type it in, nothing changes. I did everything else, but after that, the object disappeared from the map, and no recruitment happened. (I selected golems for the blacksmith and tried to put mummies in it).

 

And I didn't get to the file creation stage. What files are needed? Just regular txt files?

User Avatar
5 years ago
Auto-translated
In the shared properties, there are "active tiles" and "blocked tiles" lines; right-clicking on them and selecting "Add" should work. It's unclear where the "null" value is coming from. Perhaps you're clicking the wrong buttons or in the wrong place. I'll try to record a video of the process and attach it here.
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
User Avatar
5 years ago
Auto-translated
As a last resort, I can create such a dwelling for you myself, with the model you desire.
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
In reply to }{0TT@6bI4
5 years ago
Auto-translated
Whatever is more convenient for you. I'm just messing around with the "advanced" settings of Heroes 5 for the second time in my life, so it's "going slowly"...

Added after 15 hours and 25 minutes
Dear Hottabych, a little voila! I managed to create an area for recruiting neutral creatures, namely a manticore. BUT on the map, there is an empty space instead of a dwelling; I assume this is because I didn't: 1. Understand how to work with blocked tiles and active tiles. 2. Take action with MessageFileRef - they probably control the name and description of the dwelling, if I understand correctly. I'm attaching screenshots: https://ibb.co/tP6PnY0 - view on the map https://ibb.co/9VSM5f5 - in the editor
User Avatar
5 years ago
Auto-translated
In my opinion, it's obvious. You haven't selected a model for the object in the Model, so it's not there. Also, you need to configure the active tiles; otherwise, there won't be any interaction.
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
5 years ago
Auto-translated
I've figured everything out and managed to handle it all, thank you very much for the advice!

Statistics

Welcome our newest member: recijeb