DungeonMaster Posted May 21, 2013 Posted May 21, 2013 In the NWE system what is the best way to associate extra data fields for each player? For instance I want a player to have field A, field B, field C and so forth and then save to it and call that up as I need it based on their in game actions. Thanks. Quote
DungeonMaster Posted May 22, 2013 Author Posted May 22, 2013 That looks like it, thanks for the heads up. Quote
KyleMassacre Posted May 22, 2013 Posted May 22, 2013 if you downloaded the user admin module I think its called, it grabs all the variables for the defined user already Quote
DungeonMaster Posted May 22, 2013 Author Posted May 22, 2013 I'm used to working with database columns and inserting the data to the player row. For instance, player X I need to know how many 'cars' he has and bought. i will normally add a column "cars" for instance to track this. I will create something like a shop where he can buy 2 cars and add it to his current cars count, is what you pointed me to the same thing? I do not want to manually go and add in the 2 cars to his account via an admin interface. Quote
a_bertrand Posted May 22, 2013 Posted May 22, 2013 You can of course create a new table for specific needs like a shop. However for user info refrain yourself to add columns to the user table. This design has been though to avoid to have modules which must modify core tables, like in McCodes V1, V2 & redux, where each time you install a module (or nearly) you need to modify some table, and where a module could actually be incompatible with another due to the fact both would require incompatible modifications. Quote
DungeonMaster Posted May 22, 2013 Author Posted May 22, 2013 So then for what I want I will have to create a new table and row for each player - the NWE variable system does not automate this procedure or does it? Trying to understand how this works. Quote
a_bertrand Posted May 22, 2013 Posted May 22, 2013 The user variable would do the trick for you in my opinion and you would already have an editor for it in the user admin panel. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.