Skip to content

Posts from Scripts for beginners. Auto-translated

4.5 (2 ratings)
User Avatar
#63
Auto-translated
Okay, got it, thanks, it's working now. Please add the following to this script: When a hero appears, the camera focuses on him, and a message and quest about his assassination are immediately displayed. (IF YOU DON'T UNDERSTAND WHAT I SAID, LET ME KNOW, AND I'LL CLARIFY)
[url=Таверна (фулдилка) - заходите.


In reply to ggroy
User Avatar
#64
Auto-translated
function new_day() local day = GetDate(DAY) if day == 2 then DeployReserveHero("Jazaz", 164, 156, 0) MoveCamera(164, 156, 0, 50, 0.7, 0, 0, 0, 1) MessageBoxForPlayers(GetPlayerFilter(player), "path to text") end end Trigger(NEW_DAY_TRIGGER, 'new_day')
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to ggroy
User Avatar
#67
Auto-translated
ggroy
Yeah, got it, thanks, it worked.
Please add the following to this script:
When a hero appears, the camera focuses on him, and a message is displayed immediately, along with quests related to killing him.
(IF YOU DIDN'T UNDERSTAND WHAT I SAID, LET ME KNOW, AND I'LL CLARIFY).
After the message, quests to kill that hero are issued. (I'd like the script to not immediately include the coordinates and hero's name, but rather to be structured like the other scripts you provided). Please:smile12:
[url=Таверна (фулдилка) - заходите.


In reply to ggroy
User Avatar
#68
Auto-translated
ggroy
After the message, it gave quests to kill that hero. (Could you provide a script that doesn't immediately include the coordinates and hero's name, but rather gives them to me like you did with the other scripts?). Please:smile12:
You create an inactive quest and activate it after placing the hero on the map. The activation function already exists. Now, please try to think for yourself.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#69
Auto-translated
Hey, I can't find the quest type – kill a specific hero, can you help me out, please?
[url=Таверна (фулдилка) - заходите.


User Avatar
#71
Auto-translated
Thank you very much. You are the only one who helps me with this, and I am very grateful to you. :)

Added 42 minutes later
Could you please complete what I need? I don't understand these scripts (After the message, it gave me quests to kill that hero). Please, I will try not to bother you after this.
[url=Таверна (фулдилка) - заходите.


In reply to ggroy
User Avatar
#72
Auto-translated
function new_day()
local day = GetDate(DAY)
if day == 2 then
DeployReserveHero("Jazaz", 164, 156, 0)
MoveCamera(164, 156, 0, 50, 0.7, 0, 0, 0, 1)
MessageBoxForPlayers(GetPlayerFilter(player), "path to text")
SetObjectiveState("quest_name", OBJECTIVE_ACTIVE, player_to_whom_the_quest_is_given)
end
end

Trigger(NEW_DAY_TRIGGER, 'new_day')
The task should be invisible and inactive.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#73
Auto-translated
Oh... I have a problem: The player appears, the camera focuses, but the quest and text are not displayed. Here is the script:
function new_day()
	local day = GetDate(DAY)
	if day == 2 then
		DeployReserveHero("Marder", 25, 23, 0)
		SetObjectiveState("Ubit", OBJECTIVE_ACTIVE, 1)
        MoveCamera(25, 23, 0, 50, 0.7, 0, 0, 0, 1)
		MessageBoxForPlayers(GetPlayerFilter(2), "Maps/SingleMissions/Mojo Tworenie/orlando.txt")
	end
end

Trigger(NEW_DAY_TRIGGER, 'new_day');
[url=Таверна (фулдилка) - заходите.


User Avatar
#74
Auto-translated
Is the task assigned to the first player, and the message sent to the second?
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
#75
Auto-translated
Yeah, I'll fix it and check it out right away.

Added 16 hours and 55 minutes ago
Anyway, everything works now, except for the message.
[url=Таверна (фулдилка) - заходите.