That makes perfect sense and worked perfectly. I've successfully synced with players in the level.
(yet another post)
What are the limitations of using level variables on a GMAP? I remember reading that the player only loads a 3x3 chunk of the GMAP. Providing that this is true, does the level variable continue to sync past this point?
If not then I need a solution for saving my switch variable. My guess is that I would have to use a DB NPC (another thing I have no experience with. Yay). If I save each quest set with a unique prefix is there a simple way to catch the level prefix so I can try to make each set of switches unique?
I'm thinking of designing it something like:
PHP Code:
// database variables
// true means hit, false means not hit
this.quest = dungeon1_, dungeon2_, dungeon3_
this.switch = true, false, false
PHP Code:
// get level prefix
with(findNPC(Database)) {
// check for position of prefix in this.quest
// save position of prefix and then check corresponding location in this.switch for switch status.
// change the found value in this.switch
}
Any help on using a database in this context or finding the level prefix would be appreciated.