Thread Tools Display Modes
04-17-08, 11:11 PM   #1
mroctogon
A Kobold Labourer
Join Date: Apr 2008
Posts: 1
Persistant data structures.

Ok, So I'm a well experienced programmer, but brand new to lua and wowmods. I'm having difficulty finding out how data is stored across sessions. I can see how to declare variables in the toc file, but I'm not sure how to access them in lua, or what my limitations are to using them.

I'm working on an inventory based mod, so I'd like to store a variable length list of "item" objects each with a character name, bag id,bag slot id, item id, quantity, etc..

I know how to access all the data via the api, and I can do basic guis to show the stuff, but I'm not sure how to load or save this data in any convienient fashion. A little nudge in the right direction would be much appreciated.
  Reply With Quote
04-18-08, 06:38 AM   #2
mulesh
A Chromatic Dragonspawn
 
mulesh's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 193
This might help get you started
Saving variables between game sessions

Basically, you name your variable in the toc file and then use it as you would any other variable in your addon.
__________________
"Don"t tase me bro!" ~ Andrew Meyer
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Persistant data structures.


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off