Variables

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

Digszin

Member
Jan 26, 2017
28
0
1
32
I am trying to set this X and Y to different variables, but i don't know how
code_language.skript:
on right click on sign:
    set {_line2} to line 2 of event-block
    replace #in variable blah blah##CODE
    
    ##line2
    #X 64 : Y 92
 
I am trying to set this X and Y to different variables, but i don't know how
code_language.skript:
on right click on sign:
    set {_line2} to line 2 of event-block
    replace #in variable blah blah##CODE
  
    ##line2
    #X 64 : Y 92

code_language.skript:
on right click on sign:
    set {_line2} to line 2 of event-block
    replace every "X " and "Y " with "" in {_line2}
    set {_locs::*} to {_line2} split at " : "
    set {_x} to {_locs::1} parsed as a number
    set {_y} to {_locs::2} parsed as a number
    message "%{_x}% %{_y}%"
 
Status
Not open for further replies.