Skip to content

Posts from Video clip on the map (adventure dialog).

No ratings yet — be the first to rate!
In reply to Ment
User Avatar
#16
Auto-translated
I have never done any programming.
I have a question: how do I make a monster say something when I walk past it? You showed this here /topic/7468/.
But there, you need to click the "New" button next to the "text" line; a window appears where you need to enter a name. But in your case, it's Maps/SingleMissions/video/text.txt, and for me, when I create this, it writes: Maps\Multiplayer\predscazatel\text.txt, and it doesn't write "video"!
Is there some random thing that needs to be entered into the console before that, which is hidden?
Here's a picture:

/topic/7468/ - you didn't mention anything about needing to input something so that it works with video, did you?
Thank you for your answers.
In reply to Дункан
User Avatar
#17
Auto-translated
Oh. 'predscazatel' is the name of your map, and 'video' is the name of Ment's map. After SingleMissions / Multiplayer, the map name is written (by the program). So, everything is correct. That's where you enter the dialogue lines (in this field).
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
In reply to Победитель
User Avatar
#18
Auto-translated
In English, like "Hello" and so on?
Do I need to write scripts there?:smile27:
And do I need to rename the monsters to monster1, monster2, and so on???:smile45:
Please provide an example text!
Thank you for your answers!
In reply to Дункан
User Avatar
#19
Auto-translated
Duncan
In English, like "Hello" and so on?
Do I need to write scripts there?:smile27:
And do I need to rename the monsters to monster1, monster2, and so on???:smile45:
Please provide an example text!
Thank you for your answers!
In a language you understand. The dialogue can be in Latin, but it needs to be entered into these .txt files (the name might not be .text).

Yes, the monster names can be anything.

Yes, you don't need to write a script in the dialogue. We fill in the dialogue in dialogs/MapPropertiesThree, and the scripts in Script/MapProperties.
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
In reply to Победитель
User Avatar
#20
Auto-translated
Yes, the names of the monsters can be anything.
Then I have a question: how do I change the names of the monsters, and where do I need to click???:smile45:
And also, could you explain it, because I don't understand where to click, or please insert a sample image of your work so that your hero starts talking to a neutral creature when he approaches it, because I really want a message to appear, even if it's just a simple one! Please provide an example, because I don't understand. Thank you for your answers!
In reply to Дункан
User Avatar
#21
Auto-translated
To be honest, I hadn't made AdvMap dialogues before. But now I tried, and it worked. I don't know how to explain it in more detail than Ment'a already has.

See the attached screenshot for an example.

Is talking to a neutral creature when it gets close also a script?

1. Go to the "R..." tab in the editor. This is where you place objects and create hills, but it's further along.
2. Outline the neutral creature with a frame, enter the frame's name (region), and remember it.
3. Enter the script:
function hello(hero);
if hero == the name of your hero in quotes then
StartAdvMapDialog(0);
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, the name of the region-frame in quotes, nil);
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, the name of the region-frame, "hello");

This is the simplest option. Just make the frame larger so that the hero doesn't "fight" with the neutral creature.
Attachments 1
1 file attached • Total size: 139.8 KB
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
In reply to Победитель
User Avatar
#22
Auto-translated
3. Enter the script:
function hello(hero);
if hero == the name of your hero in quotes then
StartAdvMapDialog(0);
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, the name of the region-frame in quotes, nil);
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, the name of the region-frame, "hello");
Where should I enter the script? Select a neutral unit, press the spacebar, press Script, and then Edit Script and write what you provided?
Or should I go to Map Properties, select Script, and then Edit Script????
And also, in the first line
function hello(hero);
should I write the hero's name in quotes after hello?
Trigger(REGION_ENTER_AND_STOP_TRIGGER, the name of the region-frame in quotes, nil);
When I wrote REGION_ENTER_AND_STOP_TRIGGER, the region name in English, should I put "nil" at the end, and should I use commas?????

Added 37 minutes later
I tried to enter the script by selecting a neutral unit, pressing the spacebar, pressing Script, and then Edit Script and writing what you provided. It didn't work....
I went to Map Properties, selected Script, and then Edit Script - I wrote everything, but it didn't work...
Can you take a look and see where I made a mistake? Here are the screenshots:

Here's another one:

And another one:

Thank you for your answers!
In reply to Дункан
User Avatar
#23
Auto-translated
Duncan
Where should I enter the script? Should I select a neutral unit, press Space on it, then press Script?
Or should I go to Map Properties, select Script, and then Edit Script????
Only in Map Properties.
Duncan
Can you take a look and see where I made a mistake? Here are the screenshots:
1. Did I write that the name of your hero should be in parentheses? The variable (in this case, hero) should be in parentheses. It should look like this:
function hello(hero);
if hero == "Talanar" then


2. Region names always go in quotes. As I understand it, you should have "unnamed 0" in both triggers.

3. In your second trigger, "unnamed" has only one 'n'.
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
In reply to Дункан
User Avatar
#24
Auto-translated
Scripts in MapProperties; it would be best to discuss any issues. hero – this is the name of the variable; it should be left as it is for the Winner. nil – this is not the name of a region, but an empty variable.
 

К А
Стикеры GBF в Telegram
In reply to Ment
User Avatar
#25
Auto-translated
Nothing worked for me....
I fixed all the errors you found, but it still doesn't work....:smile05: :smile05: :smile05:
Could you share your work with this video, specifically when you get close to the monster and it says something to your hero? I've tried all your suggestions, but nothing has worked....Please share it; I really want it to work....Thanks in advance!!!
In reply to Дункан
User Avatar
#26
Auto-translated
I would, but I can't... Please double-check the region name; it needs to match not only the characters but also the case. Also, your hero's name seems to be incorrect. Talanaar is spelled 'Nadaur' in English.
 

К А
Стикеры GBF в Telegram
In reply to Ment
User Avatar
#27
Auto-translated
I fixed everything and checked, but it still doesn't work... :smile05: :smile05: :smile05:
I don't know what the error could be...
But thank you for your help anyway...
#28
Auto-translated

I did everything as shown in the screenshots.
User Avatar
#29
Auto-translated
Your camera is pointing in the wrong direction. Either there is nothing there, or it is an unexplored area on the map.
 

К А
Стикеры GBF в Telegram
In reply to Ment
#30
Auto-translated
Ment
Your camera is pointing in the wrong direction. Either there is nothing there, or it is not an open area on the map.
Phew, the topic is old, I thought there wouldn't be an answer in the next few days.

According to what criteria should the following parameters be set?
Rod, Pitch, Yaw, Roll