Possible sollution, will it work?

right, well i am working on my acheivements for the lobby, and i need to know if i can do it in an easier way. For the moment i am doing it like this:

[LUA]

include( ‘10_kills/init.lua’ )
include( ‘100_kills/init.lua’ )
include( ‘Chat/init.lua’ )
include( ‘skippy/init.lua’ )
include( ‘SecretPhrase/init.lua’ )
include( ‘shoplady/init.lua’ )
include( ‘Torched/init.lua’ )

[/LUA]

but could i do it like this?

[LUA]

local list = file.FindInLua( “*/init.lua”)
for _, files in pairs(list) do
include( files )
end

[/LUA]

Put all your achievement directories in a directory /achievements/ and use this:

[lua]local list = file.FindDir( “…/lua/achievements/*” )
for _, dir in pairs( list ) do
include( “achievements/” … dir … “/init.lua” )
end[/lua]

However, I highly recommend you to stop with the weird directory system and just have an achievements directory full of Lua files with the name of the achievement.