Skip to content

Posts from Lua script

No ratings yet — be the first to rate!
Auto-translated
Hello everyone, maybe someone knows and can help. How do I write a LUA script so that pressing a key triggers a specific Lua function in the game?
User Avatar
Auto-translated
l_loco7
Hello everyone, maybe someone knows and can help. How do I write a LUA script so that pressing a key triggers a specific Lua function in the game?
The game doesn't allow processing arbitrary key presses using a script. Event handlers usually work with in-game events and objects.

If you need to explicitly call a function during the game, for example, for testing, you can enter it in the console in the form
@FunctionName(parameters)
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

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

Statistics

Welcome our newest member: Emil