![]() |
#1 |
Saved Variables
After reading Noax's post about SavedVariables I was wondering if it is currently possible to load saved variables from another character. This would be useful for importing settings for addons, so that a user does not have to change the config in each character they log on for each addon.
To clarify could I take my saved variables for character1 from addon1 and load / import them to character2, addon 1 If this is possible now could someone please give me an example of code that achieves this. Thanks Martin |
|
![]() |
![]() |
![]() |
#2 |
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:
__________________
Lua Code:
|
|
![]() |
![]() |
![]() |
#3 |
Dongle-Rift has saved variable profiles support. I think that may do what you want. You'll have to read the source though, as there's not much documentation.
http://www.riftui.com/downloads/info90-Dongle-Rift.html |
|
![]() |
![]() |
![]() |
![]() | Riftui » Developer Discussions » Lua Help » Saved Variables |
«
Previous Thread
|
Next Thread
»
|
Thread Tools | |
Display Modes | |
|
|