Форум HeroesWorld-а - Показать сообщение отдельно - Заявки (заказы) на моды
Показать сообщение отдельно
#338
Старый 08.04.2018, 22:55
  #338
^
Alekian
📖
Регистрация: 05.04.2018
Сообщения: 14
Регистрация: 05.04.2018
Сообщения: 14
По умолчанию
Re: Заявки (заказы) на моды

MentНе слышал про NFS. Если NHF, то там всё подобное в скриптах. Самое простое -- запустить поиск по маске *.lua (не помню точного названия файла скриптов там).
Ошибся немного с названием мода. Там есть 2 текстовых файла, в одном суть специализаций, в другом некоторые количественные значения. В первом я нашел вот такое:
----------------ВЕРЕС---------------------
NHF_Veres_textPath = "/MapObjects/Necropolis/NewHeroes/Veres/";
NHF_Veres_index_battle_next = -1;
NHF_Veres_kill_mass = {11,12,111,23,24,135,51,52,149,77,78,141,96,97,168 ,89, 90, 183, 337, 346, 349, 351, 372, 360, 223, 224, 248, 282, 284, 387, 400, 428, 277, 605}; --Massiv Edinorogov, Koney, Naezdnikov +NCF
function error_NHF_Veres_F ()
print("error:NHF_Veres_F");
end;
function NHF_HERO_F.Veres ()
errorHook(error_NHF_Veres_F);
local index_battle = GetLastSavedCombatIndex();
if (GetSavedCombatArmyHero(index_battle, 1)== "Veres") and (NHF_Veres_index_battle_next ~= index_battle) then
NHF_Veres_index_battle_next = index_battle;
local temp_name = NHF_tempName_F("Veres");
local count_stacks = GetSavedCombatArmyCreaturesCount(index_battle,0);
local id_creatures, count_creatures,dead_count ;
local itogo_dead_stacs = 0;
for i_kill = 0, count_stacks - 1 do
id_creatures, count_creatures, dead_count = GetSavedCombatArmyCreatureInfo(index_battle,0,i_ki ll);
for i, Veres_kill in NHF_Veres_kill_mass do
if Veres_kill == id_creatures then
itogo_dead_stacs = itogo_dead_stacs + dead_count;
break;
end;
end;
end;
itogo_dead_stacs = (itogo_dead_stacs*((NHF_Veres_percent_base)+(floor (NHF_Veres_percent*GetHeroLevel("Veres"))/100)));
if (itogo_dead_stacs > 0)and(itogo_dead_stacs < 1) then itogo_dead_stacs = 1 else itogo_dead_stacs = floor(itogo_dead_stacs) end;
if itogo_dead_stacs > 0 then
AddHeroCreatures("Veres", 90, itogo_dead_stacs );
startThread(NHF_ShowFlyMessage, {NHF_Veres_textPath.."NHF_Veres_prirost.txt";count_pribavka=itogo_dead_stacs},temp_name,5);
end;
end;
end;

Но я в скриптах вообще не разбираюсь, могу только предположить что существа это - NHF_Veres_kill_mass = {11,12,111,23,24,135,51,52,149,77,78,141,96,97,168 ,89, 90, 183, 337, 346, 349, 351, 372, 360, 223, 224, 248, 282, 284, 387, 400, 428, 277, 605}; Может быть вы подскажте так ли это? И если так, то где можно посмотреть значения массивов, а если нет, то где именно прописаны эти существа?
Alekian вне форума
Ответить с цитированием