Thread: Saved Variables
View Single Post
Unread 10-24-11, 10:06 AM   #2
Aieny
Veiled Ripper
 
Aieny's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2011
Posts: 40
It's a fair amount of work, but if you really want to implement an easy-to-use solution, create your SavedVariable with account level, but make it a table that stores settings using character name/shard as the key. Then, you can set up a UI to import settings from one character to another. Your SavedVariable would look like this:
lua Code:
  1. MyAddon_Settings = {
  2.     "Aieny" = { Setting1 = 10, Setting2 = 50},
  3.     "Lynda" = { Setting1 = 20, Setting2 = 40}
  4. }
__________________
Lua Code:
  1. local function signature()
  2.     print("Aieny Celenovia")
  3.     print("www.riftcrafter.com")
  4. end
Aieny is offline   Reply With Quote