irswat Posted February 2, 2017 Share Posted February 2, 2017 Oy! Im working on a robust voice command engine for skyrim. One key aspect of the parsing engine are various content arrays. There are many such arrays: ;Global arrays;***********************************************;**************Generic String Arrays************************string[] CommandList ;list of commandsstring[] MaterialList ;list of materialsstring[] WeaponTypes ;list of weapon typesstring[] ArrowTypes ;list of arrows & boltsstring[] ArmorTypes ;list of places armor can be equippedstring[] ArmorNames ;list of unique phrases associated with specific armorsstring[] WeaponNames ;list of unique phrases associated with specific weaponsstring[] EquipSlots ;list of places armor can be equippedstring[] Numerator ;for numeric commandsstring[] ShoutNamesstring[] ShoutWordsint[] CMDOrderspell[] SpellFormArray;************************************************;***************Arrays Related To Parsing Potionsstring[] PotionPotenciesstring[] PotionAlchTypesstring[] PotionEffectsstring[] PotionSkillsstring[] Foodsstring[] PotionMisc;************************************************;arrays for spells*******************************string[] ElementalTypesstring[] SpellTypesstring[] UniqueSpellModifiersstring[] MiscSpellModifiersstring[] SpellStrengthsstring[] ConjureTypes;***********************************************string[] CommandStructure ;map of formulator structurestring[] Formulator ;the parsed commandstring[] SVE_DumpArray ;stores the contents of the text file dump in word form;***********************************************;this will keep track of the frequencies of usageint[] fQuickCommandsform[] QuickCommands;***********************************************;these strings are reserved for mod identifiers;mod potions & poisonsstring[] ModPotionPotencies1string[] ModPotionPotencies2string[] ModPotionPotencies3string[] ModPotionPotencies4string[] ModPotionPotencies5string[] ModPotionPotencies6string[] ModPotionPotencies7string[] ModPotionPotencies8string[] ModPotionPotencies9string[] ModPotionPotencies10;***********************************************string[] ModPotionAlcTypes1string[] ModPotionAlcTypes2string[] ModPotionAlcTypes3string[] ModPotionAlcTypes4string[] ModPotionAlcTypes5string[] ModPotionAlcTypes6string[] ModPotionAlcTypes7string[] ModPotionAlcTypes8string[] ModPotionAlcTypes9string[] ModPotionAlcTypes10;***********************************************string[] ModPotionEffects1string[] ModPotionEffects2string[] ModPotionEffects3string[] ModPotionEffects4string[] ModPotionEffects5string[] ModPotionEffects6string[] ModPotionEffects7string[] ModPotionEffects8string[] ModPotionEffects9string[] ModPotionEffects10;***********************************************string[] ModPotionSkills1string[] ModPotionSkills2string[] ModPotionSkills3string[] ModPotionSkills4string[] ModPotionSkills5string[] ModPotionSkills6string[] ModPotionSkills7string[] ModPotionSkills8string[] ModPotionSkills9string[] ModPotionSkills10;***********************************************string[] ModFoods1string[] ModFoods2string[] ModFoods3string[] ModFoods4string[] ModFoods5string[] ModFoods6string[] ModFoods7string[] ModFoods8string[] ModFoods9string[] ModFoods10;***********************************************string[] ModPotionMisc1string[] ModPotionMisc2string[] ModPotionMisc3string[] ModPotionMisc4string[] ModPotionMisc5string[] ModPotionMisc6string[] ModPotionMisc7string[] ModPotionMisc8string[] ModPotionMisc9string[] ModPotionMisc10;***********************************************;mod spellsstring[] ModElementalTypes1string[] ModElementalTypes2string[] ModElementalTypes3string[] ModElementalTypes4string[] ModElementalTypes5string[] ModElementalTypes6string[] ModElementalTypes7string[] ModElementalTypes8string[] ModElementalTypes9string[] ModElementalTypes10;***********************************************string[] ModSpellTypes1string[] ModSpellTypes2string[] ModSpellTypes3string[] ModSpellTypes4string[] ModSpellTypes5string[] ModSpellTypes6string[] ModSpellTypes7string[] ModSpellTypes8string[] ModSpellTypes9string[] ModSpellTypes10;***********************************************string[] ModUniqueSpellModifiers1string[] ModUniqueSpellModifiers2string[] ModUniqueSpellModifiers3string[] ModUniqueSpellModifiers4string[] ModUniqueSpellModifiers5string[] ModUniqueSpellModifiers6string[] ModUniqueSpellModifiers7string[] ModUniqueSpellModifiers8string[] ModUniqueSpellModifiers9string[] ModUniqueSpellModifiers10;***********************************************string[] ModMiscSpellModifiers1string[] ModMiscSpellModifiers2string[] ModMiscSpellModifiers3string[] ModMiscSpellModifiers4string[] ModMiscSpellModifiers5string[] ModMiscSpellModifiers6string[] ModMiscSpellModifiers7string[] ModMiscSpellModifiers8string[] ModMiscSpellModifiers9string[] ModMiscSpellModifiers10;***********************************************string[] ModSpellStrengths1string[] ModSpellStrengths2string[] ModSpellStrengths3string[] ModSpellStrengths4string[] ModSpellStrengths5string[] ModSpellStrengths6string[] ModSpellStrengths7string[] ModSpellStrengths8string[] ModSpellStrengths9string[] ModSpellStrengths10;***********************************************string[] ModConjureTypes1string[] ModConjureTypes2string[] ModConjureTypes3string[] ModConjureTypes4string[] ModConjureTypes5string[] ModConjureTypes6string[] ModConjureTypes7string[] ModConjureTypes8string[] ModConjureTypes9string[] ModConjureTypes10;***********************************************;mod shouts string[] ModShoutNamesstring[] ModShoutWords;***********************************************;mod genericstring[] ModMaterialList each index of each array has a word, the issued command (via mic) is parsed against the words of the content arrays. Each item type has several arrays containing words of a similar nature. For example one array contains material types, another armors types, weapon types, elemental types, unique modifiers, spell strengths, etc.Aside from the 128 index array limitation, I would also love to have multi dimensional arrays, so for example all of the arrays related to weapons can be found in a multi dimension weapons array, armor, etc. I'm also interested in learning about the map functions of jcontainers, but I've never worked with maps.Let me know if you can help. Link to comment Share on other sites More sharing options...
Recommended Posts