Today I implemented the Lua Scripting language into my RPG engine.
It is currently set up so that each map has it's own script file. The script file includes 2 functions (1 being optional). The first one is the Init function, this one is called when the map is first loaded, It can be used to set up variables and resources. The Init function can be used to set a map tick rate.
The second function is only implemented if a map tick rate is set. it is called every time the time equals the tick rate. It can be used to perform events, like the one in this video.
На этой странице сайта вы можете посмотреть видео онлайн Testing Lua scripting for my RPG engine длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь prehistoricBanana 31 Декабрь 2013, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 1,110 раз и оно понравилось 2 зрителям. Приятного просмотра!