Skip to content

Posts from Scripts

4.8 (8 ratings)
In reply to Progruzovik
User Avatar
Auto-translated
Progruzovik
This script doesn't work for me:
function DialogF()
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "Dialog", nil);
MessageBox("/Maps/SingleMissions/Horse/DialogF.txt");
end;

I created a region named Dialog, and I put the file named DialogF.txt where it needs to be... can you please help!
Try this:
function DialogF()
MessageBox("/Maps/SingleMissions/Horse/DialogF.txt");
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "Dialog", nil);
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "Dialog", "DialogF");
P.S. It's better to specify the path to the message like this: MessageBox(GetMapDataPath().. "DialogF.txt");
It will be more convenient.;)
Клан "Вершители Асхана" - "Masters of Ashan"
User Avatar
Auto-translated
Who knows how to properly work with this script?
Pimary_01
Евангелие от Иоанна, 1.5: Lux in tenebris lucet, et tenebrae eam non comprehenderunt. Свет во тьме светит, и тьма не объяла его.
User Avatar
Auto-translated
The topic is cool, I see, and I also want to learn scripting here. Can someone give a link for those who are only familiar with scripting in theory, meaning from the basics to writing expert scripts, and preferably in a clear way, because I find some resources that are written in a very scientific manner. Yours, TRYn33)))
User Avatar
Auto-translated

Moderated: SPAM in the message

Gandalfthank you very much,

There is a morale system for expressing gratitude
by the way, are there any script enthusiasts or experts here? (programmers)
User Avatar
Auto-translated
Hello everyone, I'm a beginner mapmaker. I have a few questions. I created a map called "Fanaticism" where you play as Alaric, who hunts down rebels. The main opponent is Conrad (a friend and accomplice of Duncan). The map is difficult for the computer player, so I gave it many advantages, but Alaric starts at level 1. So, here's my question:
1. How can I make reinforcements arrive for Alaric after he captures each castle? Like in "Hammers of Fate," campaign 1, mission where Duncan says, "Saint Isabel is sending you reinforcements..." It's quite difficult without that. I will, of course, increase Alaric's army because Conrad is overpowered with level 21 heroes and many paladins and archangels, but I would also like to add this feature.
2. Conrad is the final boss. How can I make him stay in the castle and not run towards Alaric when he's not ready? What script is needed for this?
Auto-translated
Guys, please provide the scripts for:
summoning a ship,
removing a building,
and activating a trigger.

I've figured out the triggers, please provide the other two scripts!
User Avatar
Auto-translated
How can I make an enemy hero stand still and not move?
In reply to sekoseko
User Avatar
Auto-translated
sekoseko
How can I make an enemy hero stand still and not move?

Why would you want to do that?
User Avatar
Auto-translated
To make the map more interesting. For example, there’s an Orc hero, and the task is to kill him, but besides him, there’s another hero who can move around.
In reply to sekoseko
User Avatar
Auto-translated
Wouldn't it be easier to restrict him to a specific area? Place him near the keymaster and hide the tent on the map – the hero won't be able to leave.
In reply to Rift
User Avatar
Auto-translated
Rift
Wouldn't it be easier to limit it to a specific area? Place it behind a gatekeeper and hide the tent on the map – the hero won't be able to go anywhere.

That would actually make it more interesting:smile20:
User Avatar
Auto-translated
Thanks, I just didn't think of it right away!
User Avatar
Auto-translated
Help me write a script that would teleport a monster to a specified location when it is attacked.
User Avatar
Auto-translated
outdated, but still useful, description of scripting functions and more.
Attachments 1
1 file attached • Total size: 129.9 KB
Всё, что сейчас происходит во мне, тоже является частью Вселенной. (с) Иванов Александр.
Цикл кампаний "Дыхание Смерти" из трёшки в четвёртом исполнении
Учебная карта
Астралия
За Королеву!
Подземелья и Дьяволы
Отголоски войны
Освобождение

Statistics

Welcome our newest member: Emil