Jump to content

[LE] JContainers, JSON, and mod support. help?


irswat

Recommended Posts

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 commands
string[] MaterialList ;list of materials
string[] WeaponTypes ;list of weapon types
string[] ArrowTypes ;list of arrows & bolts
string[] ArmorTypes ;list of places armor can be equipped
string[] ArmorNames ;list of unique phrases associated with specific armors
string[] WeaponNames ;list of unique phrases associated with specific weapons
string[] EquipSlots ;list of places armor can be equipped
string[] Numerator ;for numeric commands
string[] ShoutNames
string[] ShoutWords
int[] CMDOrder
spell[] SpellFormArray
;************************************************
;***************Arrays Related To Parsing Potions
string[] PotionPotencies
string[] PotionAlchTypes
string[] PotionEffects
string[] PotionSkills
string[] Foods
string[] PotionMisc
;************************************************
;arrays for spells*******************************
string[] ElementalTypes
string[] SpellTypes
string[] UniqueSpellModifiers
string[] MiscSpellModifiers
string[] SpellStrengths
string[] ConjureTypes
;***********************************************
string[] CommandStructure ;map of formulator structure
string[] Formulator ;the parsed command
string[] SVE_DumpArray ;stores the contents of the text file dump in word form
;***********************************************
;this will keep track of the frequencies of usage
int[] fQuickCommands
form[] QuickCommands
;***********************************************
;these strings are reserved for mod identifiers
;mod potions & poisons
string[] ModPotionPotencies1
string[] ModPotionPotencies2
string[] ModPotionPotencies3
string[] ModPotionPotencies4
string[] ModPotionPotencies5
string[] ModPotionPotencies6
string[] ModPotionPotencies7
string[] ModPotionPotencies8
string[] ModPotionPotencies9
string[] ModPotionPotencies10
;***********************************************
string[] ModPotionAlcTypes1
string[] ModPotionAlcTypes2
string[] ModPotionAlcTypes3
string[] ModPotionAlcTypes4
string[] ModPotionAlcTypes5
string[] ModPotionAlcTypes6
string[] ModPotionAlcTypes7
string[] ModPotionAlcTypes8
string[] ModPotionAlcTypes9
string[] ModPotionAlcTypes10
;***********************************************
string[] ModPotionEffects1
string[] ModPotionEffects2
string[] ModPotionEffects3
string[] ModPotionEffects4
string[] ModPotionEffects5
string[] ModPotionEffects6
string[] ModPotionEffects7
string[] ModPotionEffects8
string[] ModPotionEffects9
string[] ModPotionEffects10
;***********************************************
string[] ModPotionSkills1
string[] ModPotionSkills2
string[] ModPotionSkills3
string[] ModPotionSkills4
string[] ModPotionSkills5
string[] ModPotionSkills6
string[] ModPotionSkills7
string[] ModPotionSkills8
string[] ModPotionSkills9
string[] ModPotionSkills10
;***********************************************
string[] ModFoods1
string[] ModFoods2
string[] ModFoods3
string[] ModFoods4
string[] ModFoods5
string[] ModFoods6
string[] ModFoods7
string[] ModFoods8
string[] ModFoods9
string[] ModFoods10
;***********************************************
string[] ModPotionMisc1
string[] ModPotionMisc2
string[] ModPotionMisc3
string[] ModPotionMisc4
string[] ModPotionMisc5
string[] ModPotionMisc6
string[] ModPotionMisc7
string[] ModPotionMisc8
string[] ModPotionMisc9
string[] ModPotionMisc10
;***********************************************
;mod spells
string[] ModElementalTypes1
string[] ModElementalTypes2
string[] ModElementalTypes3
string[] ModElementalTypes4
string[] ModElementalTypes5
string[] ModElementalTypes6
string[] ModElementalTypes7
string[] ModElementalTypes8
string[] ModElementalTypes9
string[] ModElementalTypes10
;***********************************************
string[] ModSpellTypes1
string[] ModSpellTypes2
string[] ModSpellTypes3
string[] ModSpellTypes4
string[] ModSpellTypes5
string[] ModSpellTypes6
string[] ModSpellTypes7
string[] ModSpellTypes8
string[] ModSpellTypes9
string[] ModSpellTypes10
;***********************************************
string[] ModUniqueSpellModifiers1
string[] ModUniqueSpellModifiers2
string[] ModUniqueSpellModifiers3
string[] ModUniqueSpellModifiers4
string[] ModUniqueSpellModifiers5
string[] ModUniqueSpellModifiers6
string[] ModUniqueSpellModifiers7
string[] ModUniqueSpellModifiers8
string[] ModUniqueSpellModifiers9
string[] ModUniqueSpellModifiers10
;***********************************************
string[] ModMiscSpellModifiers1
string[] ModMiscSpellModifiers2
string[] ModMiscSpellModifiers3
string[] ModMiscSpellModifiers4
string[] ModMiscSpellModifiers5
string[] ModMiscSpellModifiers6
string[] ModMiscSpellModifiers7
string[] ModMiscSpellModifiers8
string[] ModMiscSpellModifiers9
string[] ModMiscSpellModifiers10
;***********************************************
string[] ModSpellStrengths1
string[] ModSpellStrengths2
string[] ModSpellStrengths3
string[] ModSpellStrengths4
string[] ModSpellStrengths5
string[] ModSpellStrengths6
string[] ModSpellStrengths7
string[] ModSpellStrengths8
string[] ModSpellStrengths9
string[] ModSpellStrengths10
;***********************************************
string[] ModConjureTypes1
string[] ModConjureTypes2
string[] ModConjureTypes3
string[] ModConjureTypes4
string[] ModConjureTypes5
string[] ModConjureTypes6
string[] ModConjureTypes7
string[] ModConjureTypes8
string[] ModConjureTypes9
string[] ModConjureTypes10
;***********************************************
;mod shouts
string[] ModShoutNames
string[] ModShoutWords
;***********************************************
;mod generic
string[] 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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...