Evening all,
I'm trying to search through a string array to search for various index records and/or names but want to
do this using a partial search.
I have a text box input show up and I want the player to be able to type in a name, then have that string
search through the array , which then would either, a) if only one index contains the string in which the user typed, display xx information.
if more than one index contains the string, then pop up a list and display the full string names.. at which point the user would click on whichever and something happens etc...
it's still a work in progress.. but you get the idea.. i just need to take the input from the user and have it search through.
the only thing i found on array searching is using find or rfind,, but that seems to want exact strings. I need a sort of wild card or an include type function.
Well, I eagerly await some replies and could use some help on this please.
Thanks,
T-Mush-S
P.S. It's for my mod which I'm in the process of updating. It works great as is, and uses the MCM for pretty much most of the functionality, but I wanted to extend it further by adding a search query to it. The indexes / arrays etc.. are done and I'm currently using SkyUILib for the textinput popup. That all works great, and the strings get read directly from the player inputs, but as it is, I can't figure a way to search through them unless the player knows exactly how to spell an NPC's name, or rather what the game believes the name is.