This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials
-- let's check if steam has initialized & set a value based on return value
local steamLoaded == getProperty("steam_initialized")
if steamLoaded then
local bAchievement1 = getSteamAchievement(apiName)
if bAchievement1 then
print("Egg unlocked")
end
else
print("no")
end
Here are some threads about "how to learn Lua" on the forum.
I think, learning Lua isn't the problem - it's similar to other script languages - and simple enough (f.e.without declaring variable types as integer, string...). The problem (for me) is to connect the Visionaire specific libraries - the Vis data structures - to Lua and to the editor. This Vis object structure thing. You don't find something about it in a Lua book.
setSteamAchievement("STEAM_ACHIEVEMENT_CHAPTER_1") -- set achievement to truesetSteamAchievement("STEAM_ACHIEVEMENT_CHAPTER_1", flags=1, clear = true})