Jump to content

Equivalent to fin >> in papyrus?


irswat

Recommended Posts

I am brainstorming a mod that expands upon the work of Skyvoice. I envision a skyrim where many of the functions can fluidly be controlled by voice. In order to accomplish this I plan to use a speech to text engine like that built into windows. When the engine recognizes words it will append them to a output file sequentially. For example Equip Ebony Armor set would do just that, or saying "Fus ro dah" would equip and cast unrelenting force.

In order for this method to work I will need a function like fin in c++. I open an fstream and fin >> line by line the contents of a text file and turn those contents into strings. This strings will then be parsed and separated into categories: armor, weapons, spells, potions, shouts, or commands.

I did stumble across papyrus utilities, which seems to have the very functionality that I'm looking for, but there doesn't seem to be much documentation regarding correct syntax, input/output formatting, arguments, etc.

Is there a native function, or perhaps one added by SKSE, that accomplishes this same sort of functionality, to input strings from a text file?

Link to comment
Share on other sites

  • Recently Browsing   0 members

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