Форум HeroesWorld-а - Показать сообщение отдельно - MMH5.5 - Герои Меча и Магии 5.5
Показать сообщение отдельно
#360
Старый 12.08.2017, 15:55
  #360
^
Гусь
 
Аватар для Гусь
📖
Регистрация: 14.06.2016
Адрес: Вольер
Сообщения: 200
Регистрация: 14.06.2016
Адрес: Вольер
Сообщения: 200
По умолчанию
Re: MMH5.5 - Герои Меча и Магии 5.5

dredknightHeroes V is using LUA language.

Scripting works just as modding. If you embed it in map it will work only if the map is inside the MAPs folder. If you put it in data it will work like a MOD for the whole game.

Is it difficult? - Overall LUA is simple language but it depends on your programming knowledge. @Magnomagus wrote the code and he learned it by using internet tutorials - here is something you can start with.

How to use it for Heroes V modding? - Lets say you do read some LUA lessons or a week and want to use it for modding. The easiest way to start is by inspecting already done things, look at the code and see how they work in the game.

For example - Heroes campaigns are made with LUA. Start by inspecting them.
Here is an example on where to search for them - DATA.PAK/maps/Scenario/A2C3M4/script.lua
Also it is advisable to enable console so you can check it now and then for things that the script may print.


Some scripting information is available in /Editor documentation:
- HOMM5_A2_IDs_for_Scripts.pdf
- HOMM5_A2_Script_Functions.pdf
- HOMM5_Script_Functions.pdf

This discussion about LUA in ubi forums can be of help too.

Later on when you feel confident enough you can inspect the MMH55 scripts.

Cheers!
May I create a new skills or perks in game with the scripts? As true, now my knowledge in programming =0. But if results will ressurect my dreams about modding, I will try.
Гусь вне форума
Ответить с цитированием