Hi andfly ! Thank you very much for your hint !
I'm glad you found my advice useful.
As for connecting the sounds to the actions that take place in Outerra ... it becomes complicated.
Unfortunately, I have not yet foreseen (to my knowledge) empty global variables, available to users, to be used to recognize the carrying out of personalized actions.
It is certainly possible to create "personal arrays", in C ++ language, by writing a special plugin ... but this goes beyond the normal practice of those approaching Outerra and using Javascript.
(You can still go deeper into the topic by reading the posts in the PLUGIN section of this forum).
However ...
I can suggest you a trick I have already used successfully in the past.
Outerra already has global variables that serve to define the characteristics of the general environment.
These are the values of the fog level, the forests, the snow etc ...
https://github.com/Outerra/anteworld/blob/master/include/ot/env.hThey are all "float" values and can be read and set, as desired, by script commands.
Apart from some "delicate" parameters there are several in which the last decimal digits are not particularly important.
It is therefore possible to change these digits and use them as customized "flags" to define an action.
No user will notice this insignificant variation.
Writing and reading can be done by different scripts and you would get the desired passage of information, very limited, but anyway ... better than nothing!
It is clear that it is a "dirty trick", and one should not abuse it.
To solve an immediate problem, however, or for a particular need, it could be useful!