Something to consider when using this feature is that you can create a lot of
permutations from very few words. Use with care
So I have something totally careless in mind. If anyone plays Guild Wars 2 (or any other mmo) they might know what I'm talking about. There's that equipment names system, in which you can identify the exact item by its name - skin, stats and all. The convention is: [prefix] + [item type] + [suffix], where prefix defines the attribute distribution (power, precision, etc), item type is the type of equipment (sword, helmet...) and suffix determines the rune that is embedded in the weapon. Now, there's that website that scans the entire in-game trading post, in which you can search the item by name and see the price fluctuations for this item.
You probably guessed what I want to do. I want to be able to say
"What's the price of Berserker's mithril sword of corruption, level 60" and have the plugin connect to the website (they have external api afaik) and tell me the current buy/sell price of the item, recent price fluctuations (if major) and the flip profit.
Problem is, there are about 40-50 prefixes and suffixes and a ton of item types. I could theoretically split [item type] into [skin type]+[item type]. In many cases it would be "[Krytan; Iron; Mithril...][sword; longbow; chestplate...]" but there are some unique item names, like "Krait Machete"for example (though I could probably make a separate cmd for those).
I don't know how exactly it works, but I assume VA is putting all those combinations together and would send a list of (50^3)*80lvls concatenations to the speech engine or something like that. Question is, how is all this data stored?
How bad would this be for performance?I obviously can't rely on speech engine to just get it right without setting this up as command. The other option would be to make it a command sequence that would set the variables step by step:
"What's the price of Berserker's" -> "Mithril" -> "Sword" -> "of corruption" -> "level 60"With each step executed as separate command, with a boolean variable to prevent accidentaly starting the sequence from the middle. But with this method, you'd have to wait 2-3 seconds between each step. I'd just like to know if it's worth the wait