Skip to content
User Avatar
#2388
Auto-translated
Dyrman
Type: OBJECT_TOUCH_TRIGGER
The check for the existence of a hero and a monster is in place.
function __HANDLER(trigtype, param)
print("T4:"..trigtype);
print("T5:"..param);


With each trigger being called in a separate thread and with the necessary delays depending on whether it's a multiplayer map or not, it can be made to work in multiplayer. At least, some of the triggers will work somehow.
I can't check it right now, but at first glance, you can try replacing

local handler = %NHF_Trigger_env.hasparam(%trigtype) and tab and tab[%param] or tab

with

local handler
if %NHF_Trigger_env.hasparam(%trigtype) then
handler = tab and tab[%param]
else
handler = tab
end

in both cases.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

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