Ok, I got it working with your RPG mode, But I had to change these lines as follows:
Commented out the global
--NUM_COUNTERS = 999
And changed this.
The reason I did this is that the --NUM_COUNTERS = 999 would never match the entity number, therefore never matching it in RPG menu script. I was getting entity number of 17581 for the sounds zones, because I added them last in the level.
Once I changed the for do upper count number to 99999 then it worked perfect.
May not work as you intended, but I am good with it as modified.
Still interested in the intended use of this stuff in the etc_musicplayer script and your RPG scripts. Do let me know on that.
-- Define flags to communicate with the RPG scripts
FLAG_MUSIC = 1
IsPlayer = {}
Thanks for making the scripts they really add a new level to the game engine.
The scripts work flawless without the use of the RPG scripts as they were on a testmap.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit