Solved Loop-index name? I

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

Apolo_IV

Member
Feb 1, 2017
32
0
0
27
Hey i wanna get the name as a string of a variable that i added to a list, this is what i wanna do

Code:
        loop {TextScoreLine::*}:
            set {_number} to loop-index
            replace "ScoreLine" in {_number} with ""

But it doesnt work because loop-index there is a number, this is an example of the variables i am adding to the list {ScoreLine11}
 
I think you can do:

Code:
loop {TextScoreLine::*}:
    set {_number} to "%loop-index%"
    replace all "ScoreLine" with "" in {_number}
 
Nah, that wouldnt have worked. Instead adding variables i just set it like this set {TextScoreLine::ScoreLine} to whatever
 
Status
Not open for further replies.