Skip to content

Posts from Object names don't always work.

No ratings yet — be the first to rate!
#1
Auto-translated
Good afternoon. I wanted to create my own maps for playing with friends. I create a caravan with a specific name and, when trying to add creatures to it, I receive a message that an object with that name does not exist. The caravan itself appears on the map, but it is empty. Also, when changing the "name" field in the object's properties, I can't always add creatures using that name (I can add them to a town, but not to a hero). Is this how it should be? Is there a way to view the object's name on the map by its coordinates or something? I've searched through the entire manual, but found nothing. Here is the script: function tourists() CreateCaravan("10", 1, 0, 72, 13, 0, 72, 16); AddObjectCreatures("10", 14, 2); end; Trigger(NEW_DAY_TRIGGER, "tourists");
User Avatar
#2
Auto-translated
I can't help you with the caravan, but you need to address the hero by the name listed in its ObjectPropreties, not the name you assign it in ObjectPropretiesTree -> name. It's usually a short, English name that's unique to each hero (but identical if you place identical heroes on the map – that's the sad part).
 

К А
Стикеры GBF в Telegram
#4
Auto-translated
Thanks for the hero, I'll give it a try. I also found out that names might not work during the same turn, but they can work on the next turn (I added monsters with names, and the script found them on the next turn). Yes, the script doesn't see a newly created caravan, but it sees it on the next turn. I don't understand how to put creatures in there so that they don't disappear. It worked with the hero, although it's strange that even through the AddObjectCreatures function, it doesn't work through the name; what's the point of that field then? Now, another problem: I can't see the race of the town that the player chooses at the start (or randomly). I can change it, but I can't see it. I couldn't find such a function in the manual. Does anyone know how to do this? (I want friendly monsters of the same race as the town to appear after the quest is completed).
User Avatar
#5
Auto-translated
I googled on the site:
/topic/at/776815/
So it turns out that you don't have to wait until the next day; waiting for a few seconds (or even less) is enough.
 

К А
Стикеры GBF в Telegram
#6
Auto-translated
Thanks, it worked with the caravan! Now I need to figure out how to find out the faction of a city.)

Added after 28 minutes
I found it in the thread */topic/11188/
And why isn't this function in the manual? ( Thank you again!)

Added after 31 seconds
You can close the topic.
User Avatar
#7
Auto-translated
Is this definitely for the "Technical Support" section?
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
User Avatar
#8
Auto-translated
You are right, I moved it to Mapmaking.
 

К А
Стикеры GBF в Telegram

Statistics

Welcome our newest member: Emil

Users Online 3 users 1229 guests