Set coordinates in a variable

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

sagp15

Member
Jun 16, 2017
22
1
0
22
Hi, I would like to know how coordinates can be stored within a variable

I was using this but it does not work for what I use it.
code_language.skript:
command /testb:
    trigger:
        set {Pos1} to "100, 50, -100"
        set {Pos2} to "-100, 100, 100"
        set {Seesions} to new editsession in player's world with limit 100000
        make walls from {Pos1} to {Pos2} using {Seesions} with bedrock

The plugins that I am using are: SkStuff and WorldEdit
 
use
code_language.skript:
set {Pos1} to location(100, 50, -100, "world")
set {Pos2} to location(-100, 100, 100, "world")
 
use
code_language.skript:
set {Pos1} to location(100, 50, -100, "world")
set {Pos2} to location(-100, 100, 100, "world")
This does not work

code_language.skript:
command /testb:
    trigger:
        set {Pos1} to location(100, 50, -100, "world")
        set {Pos2} to location(-100, 100, 100, "world")
        set {Seesions} to new editsession in world "world" with limit 100000
        make walls from {Pos1} to {Pos2} using {Seesions} with bedrock
 
Try messaging the variables Pos1 and Pos2 after setting them
 
Status
Not open for further replies.