View Single Post
05/05/23, 11:48 AM   #6
sinnereso
AddOn Author - Click to view addons
Join Date: Oct 2022
Posts: 247
TY this helps alot actually. Lazy Crafter has a built in function for it but I may need to do this for PA for finer control of specific functions. Or I might just do it this way as a standard because I have so many functions, Im anticipating conficts and NOW is the time to iron them out . At least for the BIG HIGHLY POPULAR addons. Im looking at them now and will not change theyre settings no worries. Just need to know what they are so I can control my addon accordingly. My hopes is to achieve perfection without them needing any modifications.

I did have a question though regarding lazy writ crafter for example. Ive found his saved vars and appears to have 2.

Code:
(1)WritCreater.savedVarsAccountWide = ZO_SavedVars:NewAccountWide(
		"DolgubonsWritCrafterSavedVars", WritCreater.versionAccount, nil, WritCreater.defaultAccountWide)
and

Code:
(2)WritCreater.savedVars = ZO_SavedVars:NewCharacterIdSettings(
		"DolgubonsWritCrafterSavedVars", WritCreater.version, nil, WritCreater.savedVarsAccountWide.accountWideProfile)

for a specific setting(shouldGrab) should I account for both? like this below? and I still dont understand why my account wide settings in it are saved in (2).

Code:
if WritCreater.savedVars.shouldGrab or WritCreater.savedVarsAccountWide.shouldGrab then

Last edited by sinnereso : 05/05/23 at 11:59 AM.
  Reply With Quote