[Help needed] Creating A Region (Variables Can't be used?)

Discussion in 'Skript' started by bolleboor, May 8, 2019.

Thread Status:
Not open for further replies.
  1. I'm creating a small Skript to create regions.
    This is my code:
    Code (Text):
    set {pos1.%player%} to {_temp1}
    set {pos2.%player%} to {_temp2}
    create wg region arg-2 between {_temp1} and {_temp2} in %world%
    (This code is used in a command, that's why it says arg-2)
    But, it's giving me an error:
    upload_2019-5-8_14-6-57.png

    It's supposed to work right?
     
  2. Idk if this is a bug or not, I would like to hear you guys opinion on this.
     
  3. The %world% is syntax, you need to have an expression instead (e.g. `world of {_temp1}`)
     
  4. Didn't work aswell.
     
  5. Show your code please
     
  6. Code (Text):
    set {region.%arg-2%} to true
    set {pos1.%player%} to {_temp1}
    set {pos2.%player%} to {_temp2}
    create wg region arg-2 between {_temp1} and {_temp2} in world of %world%
     
  7. Code (Text):
    set {region.%arg-2%} to true
    set {pos1.%player%} to {_temp1}
    set {pos2.%player%} to {_temp2}
    create wg region arg-2 between {_temp1} and {_temp2} in world of {_temp1}
     
  8. Still the same error:
    > [12:49:40 ERROR]: [Skript] Variables cannot be used here. (region.sk, line 68: create wg region arg-2 between {_temp1} and {_temp2} in world of {_temp1}')
     
  9. Can you send the syntax for that effect?
     
  10. Here you go: [sharpsk] [worldguard] create region %string% between %location% and %location% in [world] %world%

    I have Tuske + SharpSK installed.
     
  11. Code (Text):
    create region arg-2 between {_temp1} and {_temp2} in world of {_temp1}
     
    • Winner Winner x 1
Thread Status:
Not open for further replies.