@ Jerry
I've read and re-readed many times your post to get the point right, since I do not want run into error, because the bad translation, anyway not sure about get it, (not because you, but my hightschool english. LOL).
Quote: "but can Lua access external files? (Look for the material index in the .fpe?)"
This does not should be difficult to get, since you already can access files via LUA, read/writte data from.
The obstacle I see here is than you can only work with those 2 sound slots, and you are not free to upload sound files, via script, when you like, and the amoug of sounds you wish, IE:
MyPath = "C:\......\mysound1.wav"
MySound = LoadSound(MyPath)
MySound1 = LoadSound(MyPath1)
If sad then
PlaySound(e,MySound)
elseif happy then
PlaySound(e,MySound1)
else
do nothing or something else
end
Quote: "access to the materials!"
Here I'm not too sure about, since as far as I know, you set the material id via fpe, IE: wood=2, so when player walk over, GG automatically play wood sound, or not?, I fill I'm missing something here, and I would to know what is it?
As aside note, there are a lot of undefined sounds in GG, than GG mark as = 0; so perhaps all you are looking the possiblity to defined those sounds freely, if we can handle the sound slots?
If so, yes would be nice, so we can do it via script using globals, and each item I've place into my map, tell me their material ID, so script can play the sound I ve applied to this material id when needed, and you are done.
Anyway I think it is not so easy, and I'm missunderstanding something here.
3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz
OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics