Jump to content

Splitting a string, getting a substring, or similar


pra

Recommended Posts

Without having downloaded your mod yet, how did you implement text imput, though?

Having an array of ints instead of strings doesn't seem like an issue to me, but, how to even get there?

 

Another thought I just had: does F4Se have anything about reading/writing files? A long time ago, I made a portable home mod for Morrowind, where I stored a string in the savegame by writing it into a file first (using MWSE), and then reading it back as ~100 ints. Then reversing the process to get the string back.

 

Because it was a single letter at a time thing, I just popped up a message box with the letters sorted roughly by decreasing frequency in the English language (ETAOIN...).

But my originally implemented idea was to place a virtual keyboard of Activators into the world at the player's position, together with an also "physically"-instantiated and managed display buffer.

 

(This is actually half of the basis of the very last weird weapon mod I really wanted to make for Fallout 4 -- you might be able to guess what it would be. I like seeing what I can do without the script extender, and therefore for the Xbox players who have a greater tolerance for zany mods, and that idea would probably be the most elaborate by far I could get away with. I probably won't do it, because it is a little bit involved, and at this point I realize that I have a pretty limited cult following that's dwindling with the end-of-life of the game anyway, so I don't think the development time is worth all the trouble and impact to my life.)

 

I didn't go through with that for the released version of the mod since I had yet to gain experience with adding NiNodes to NIFs and doing MoveToNode operations to keep letter positions consistent, which is a capability I used for my Form F From Address Space mod. In that mod, since you were entering fixed length form IDs, I found it more sensible to put in digit increment/decrement buttons for each position and to always keep all digits spawned into the world in a manner similar to the real-world split-flap display (that you see in some clocks).

 

As to the second thought, I'm guessing there is a sensible F4SE way, or Journal of the Sole Survivor and Transfer Settlements might not be things. What I would really like natively instead of in the extender is for BendableSplines to be scriptable (e.g. AttachWire). I have a pretty good weapon idea that would have used that, too.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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