Colored string to integer

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Feb 4, 2017
71
4
1
36
Is there any way i could convert parts of a colored string to an integer?

like i have "&a100 Blocks"

i was able to extract the green 100 but i cannot parse it as an integer (would always return <none>)
[doublepost=1491057970,1491057518][/doublepost]Ok it seems like it works if i name it "&a 100 Blocks" so that means is there a way i can remove the &a from &a100 and set it as a variable?
 
Status
Not open for further replies.