View Single Post
  #14  
Old 08-24-2017, 04:32 AM
maximus_asinus maximus_asinus is offline
RIP DarkCloud_PK
Join Date: Oct 2001
Location: Canada
Posts: 3,743
maximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond repute
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 = truefalsefalse 
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.
__________________
Save Classic!
Reply With Quote