Posted 12 July 2013 - 02:38 AM
As I've mentioned before, I'm building a server that acts as a central Survival MC game, then portals take the player to other (pre-built) adventure maps where they can acquire special items/blocks…
Unfortunately, I dont want the player to retain ALL the items from the maps… so my current setup is a command-block that uses /clear to empty the player's inventory, then /give to return the item/block to them, and finally a /tpx to send them back to the "overworld" (survival game)
This works untill I started implimenting a non-linear dungeon system… because now I have every player with an RFID that tracks which areas are unlocked and which are not… and if they leave the adventure map, they lose all their progress…
So is there a way to create a DB-program that, when a player exits the world (at pre-determiend points, not just randomly) their progress is saved off the RFID before it's destroyed, and when they return, a new RFID is supplied with a /give then the old data is loaded onto it? (It sounds really easy to me, but I'm not familiar enough with LUA to implement it… especially with multiple "world exits" that have to sync the DB with the "world entrance")
All the DB needs is "Player Name" and "Card Data" (though if there's a way to record inventory/equipment that would also be nice to add, so it's a true "save state")
Pre-post-edit:
I remembered that I can cheat in multiple copies of a single disk using NBT Edit, so I think I can sync the DBs if I can make all updates write to the disk, but still not sure how to create the DB itself…
Unfortunately, I dont want the player to retain ALL the items from the maps… so my current setup is a command-block that uses /clear to empty the player's inventory, then /give to return the item/block to them, and finally a /tpx to send them back to the "overworld" (survival game)
This works untill I started implimenting a non-linear dungeon system… because now I have every player with an RFID that tracks which areas are unlocked and which are not… and if they leave the adventure map, they lose all their progress…
So is there a way to create a DB-program that, when a player exits the world (at pre-determiend points, not just randomly) their progress is saved off the RFID before it's destroyed, and when they return, a new RFID is supplied with a /give then the old data is loaded onto it? (It sounds really easy to me, but I'm not familiar enough with LUA to implement it… especially with multiple "world exits" that have to sync the DB with the "world entrance")
All the DB needs is "Player Name" and "Card Data" (though if there's a way to record inventory/equipment that would also be nice to add, so it's a true "save state")
Pre-post-edit:
I remembered that I can cheat in multiple copies of a single disk using NBT Edit, so I think I can sync the DBs if I can make all updates write to the disk, but still not sure how to create the DB itself…