View Single Post
  #5  
Old 06-04-2008, 03:54 PM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Quote:
Originally Posted by DustyPorViva View Post
Well if you're just looking for how to save the data... I say serverside text files is the best way.

I made a system that copied template weapons when a weapon was created, and then saved it to an individual weapon with an ID to a serverside file, where it could then be customized. That made it possible to have weapons that started out as a normal weapon, but could be customized and given stats like dex+1 or such, without needing to actually have a system that managed the extra stats.
Saving is not the issue...it's loading all the item data and what's the best way to do it. As for customisation, the player has an array like so for weapons

{itemname, buffs}. The itemname grabs the stats from the standard weapon while the buffs contain the personalisations.
Reply With Quote