Originally Posted by Terrillyn
you mean like
Lua Code:
--pseudo-code CharSV = newval if account_wide then AWSV = newval end
when ever a setting is set?
|
yes. And the get functions always returns the value from CurSV, which is either the same as CharSV or the same as AWSV.
If the user is in account wide mode, the account wide values are used and changed.
If the user switches to char mode, all settings changed while in account wide mode are still the same.
/edit: The only "problem" is:
1. User A made a change while in AW mode
2. User B made a change while in AW mode
3. User A switches to Char mode: the value would change back to User A last change.
Is that what you want, or should User A get a fresh copy of the AW settings? In this case you have to do, what I posted before.