Jump to content

papyrus split text by comma


Recommended Posts

It can be done with PapyrusUtil.

 

---------------------

String Text = "AAA, BBB, CCC"

 

String[] TextArray = PapyrusUtil.StringSplit(Text, ",")

-------------------------

 

TextArray[0] will be AAA

TextArray[1] - BBB

TextArray[2] - CCC

Link to comment
4 minutes ago, AndrewLRG said:

It can be done with PapyrusUtil.

 

---------------------

String Text = "AAA, BBB, CCC"

 

String[] TextArray = PapyrusUtil.StringSplit(Text, ",")

-------------------------

 

TextArray[0] will be AAA

TextArray[1] - BBB

TextArray[2] - CCC


I will try it tomorrow

Link to comment
On 4/19/2021 at 5:36 PM, AndrewLRG said:

It can be done with PapyrusUtil.

 

---------------------

String Text = "AAA, BBB, CCC"

 

String[] TextArray = PapyrusUtil.StringSplit(Text, ",")

-------------------------

 

TextArray[0] will be AAA

TextArray[1] - BBB

TextArray[2] - CCC


It works, i can now add new menus and remove them if the external mod is disable

Link to comment

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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use