Jump to content

CK: Populating script properties String Const arrays, without typing in each element


Recommended Posts

Posted

Hello!

Is it possible in the CK to  Populate script properties, specifically  String[] Const arrays, without typing in each element manually in the CK UI?
ChatGPT insists that there is a mysterious "import" button that should appear on String[] Const type properties (if they are defined as Auto Const) , that should allow me to load in a simple TXT file, however that is not the case.  There is no magical " import " button appearing.

Thank you!

Posted (edited)
On 7/26/2025 at 7:12 PM, ̖̪. said:

https://www.nexusmods.com/skyrimspecialedition/mods/13048


 

  Hide contents

MiscUtil.psc:

image.png.6a2ac35315e1a13db72815f514b09701.png

 

You can then use StringUtil.psc to manipulate these strings:

image.png.0295f23b761b1f1c8cf67429dfb7f307.png

 

 

Indeed.
Something like that but for Fallout4.

I just wanted some arrays larger than 128 elements, and I understood that Const  arrays provided by CK as Properties for that script can be greater than 128, while arrays initialized in the script itself cannot.

In the end I ended up breaking off the array into smaller 128 element chunks, and built wrapper function to access it, not ideal, but it works.
Initialized everything directly in papyrus without using properties. 

Edited by MSM_Alice
Posted (edited)
49 minutes ago, MSM_Alice said:

Indeed.
Something like that but for Fallout4.

I just wanted some arrays larger than 128 elements, and I understood that Const  arrays provided by CK as Properties for that script can be greater than 128, while arrays initialized in the script itself cannot.

In the end I ended up breaking off the array into smaller 128 element chunks, and built wrapper function to access it, not ideal, but it works.
Initialized everything directly in papyrus without using properties. 

Ohh Fallout, well, for me LoversLab -> Skyrim

So I just noticed "CK" in the title and assumed it's Skyrim.

 

-> https://www.nexusmods.com/fallout4/mods/55419

 

image.png.2b097cc3a1f8987d84a15d43b37ffde3.png

image.png.49944b967f754045ecb4eb98e36b1ee0.png

 

I think Fallout version is a lot worse than Skyrim one, because its like... overcomplicated...

But at least You have more detailed docummentation of the functions :P

 

In difference to Skyrim You simply have everything in one giant file SUP_F4SE.psc that You find in Scripts -> Source -> User 

Edited by ̖̪.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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