Skip to content

Scripts for beginners.

User Avatar
#46
Auto-translated
function objective_1(hero) local player = GetObjectOwner(hero) if GetObjectiveState("objective_name", player) == OBJECTIVE_UNKNOWN then StartDialogScene("dialog_path") SetObjectiveState("objective_name", OBJECTIVE_ACTIVE, player) elseif GetObjectiveState("objective_name", player) == OBJECTIVE_ACTIVE and HasArtefact(hero, artefact_number) then SetObjectiveState("objective_name", OBJECTIVE_COMPLETED, player) RemoveArtefact(hero, artefact_number) end end SetObjectEnabled("creature_name", nil) Trigger(OBJECT_TOUCH_TRIGGER, "creature_name", "objective_1")
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4