I saw the topic in the snippets about ini's, but it seems it only works with a file such as:
Code: Select all
[SomeHeader]
Item1=Value
Item2=Value
If I wanted to say, do something like this...
Code: Select all
[Main]
healspell=Tnarg's Mending
ddspell=Spear of Torment
hpmin=50
[Area1]
mob1=a_rat
mob2=a_snake
[Area1]
loot1=whiskers
loot2=scales
B) How would I differentiate headings
Final note, if I can get this working, I want to write an include called Ini.inc that has the working subs with a how-to, to make it simpler (is that a word?) for others to use ini's (if they can use the search function).
The abilitie to do this would be nice...
define main_array
read ini for main area (general setup info)
read ini for data specific to the current zone... much like the hunter macro.
return a 1 for success or something else for errors
And no, my goal isn't just another mod of the hunter script. This is something I'd like to have to use where I want to, and once working, will give the ini.inc to the community.

