I do not think I know this syntax, because I apparently have never done anything cool or radical with my scripts because most of this I am seeing is new to me (it is a great study aid though!).
[string "Script file"]:17: '}' expected (to close '{' at line 14) near 'function'
riftitems={}
function riftcapture( sTrig, sLine, wildcards )
riftitems[ wildcards[2] ] = tonumber( wildcards[1] )
if wildcards[4] then
riftitems[ wildcards[4] ] = tonumber( wildcards[3] )
if wildcards[6] then
riftitems[ wildcards[6] ] = tonumber( wildcards[5] )
end
end
end
riftsort = { { "tints", {"yellowtint", "redtint", "bluetint", "purpletint", "greentint", "goldtint" } },
{ "herbs", {"sparkleberry", "wormwood", "yarrow", "pennyroyal", "sargassum", "weed", "arnica", "calamus", "chevril", "colewort", "coltsfoot", "faeleaf", "flax", "galingale", "kafe", "kombu", "marjoram", "merbloom", "mistletoe", "myrtle", "reishi", "rosehips", "sage" },
{ "commodities", {"wood", "gems", "rope", "gold", "coal", "leather" },
{ "gems", {"moonstone", "ruby", "emerald", "amethyst", "coral", "pearl", "beryl", "bloodstone", "garnet", "jade", "onyx", "opal", "sapphire", "turquoise" }
}
function showrift()
for _,i in riftsort do
Note( "*("..string.upper(i[1])..")*")
for k,v in i[2] do
Tell( string.format( " [%4d"] %-15s", riftitems[i], i ) )
end
Note( "" )
end
end
That is most of the rift items, though... things like "ruby" would be "rubies" in the rift, so would I need to add those to the list also? It is not a complete list, but it covers everything in -my- rift. A friend is sending something of everything possible for me to add. |