You can just use the event, create a callback function for that event and do a debug message output d("Active layer index: " .. activeLayerIndex) for the parameters layerIndex and activeLayerIndex.
If activeLayerIndex e.g. is 2 the main menu is shown somehow (inside the pop event).
Maybe there is some special activeLayerIndex for the NPC interaction too then.
But as I can see the answer for your search was given in that other lua/xml thread already.
Last edited by Baertram : 06/16/15 at 11:59 AM.
|