Thread Tools Display Modes
01-31-07, 03:51 PM   #1
Vathau
A Defias Bandit
Join Date: Jan 2007
Posts: 2
Mutch data

Hi,

I want to make a addon but this addon requires a lot of data as input. I planed to do this in normal files but now I hit a brick wall of not being able to access files from wow since that is disabled.

My tought was to put it in an XML file and loading it like other XML files in the .toc is this possible? And if yes how do i reach data in XML files that do not use the normal wow tags?

Or is there perhaps a compleet other way to get loads of data in wow?

Thanks,
  Reply With Quote
01-31-07, 04:56 PM   #2
Karrion
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Oct 2006
Posts: 23
You'd put it in a .lua file, for example:

MyAddon_Data = {
["Something"] = "The text for this thing",
["Another thing"] = "The text for this other thing",
["Nested"] = {
["key"] = "Tables can be nested"
}
}
  Reply With Quote
02-01-07, 04:55 AM   #3
Vathau
A Defias Bandit
Join Date: Jan 2007
Posts: 2
Ofcourse why didn't I think of that.... Tnx m8
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Mutch data


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