Skip to content
User Avatar
#1506
Auto-translated
Oligarch
Hmm, that's strange, here's the link: http://lua-users.org/lists/lua-l/2008-01/msg00650.html
and the very first sentence:
I just wrote a TRY..CATCH extension for Lua, and adapted it into version 5.1.3

so, maybe pcall will work?
pcall (f, arg1, ···)
Calls the function f with the given parameters in protected mode. This means that if any error occurs inside the function f, it will not be passed further; instead, pcall intercepts the error and returns a status.
Yes, he wrote it. But this is an extension for the language, not a built-in construct, and it's not for implementation in the game.
The game uses version 4.0 of Lua, not 5.1.
The developers have removed almost all built-in functions.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

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

Statistics

Welcome our newest member: artem

Users Online 1 users 1570 guests