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.
Nesta página do site você pode assistir ao vídeo on-line Testing Lua scripting for my RPG engine duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário prehistoricBanana 31 Dezembro 2013, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,110 vezes e gostou 2 espectadores. Boa visualização!