Solved WG region create

  • 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 community!

    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.

VOIDDER

Member
Aug 23, 2018
27
0
1
I see theme:
How to create a WG region from player's location?
https://forums.skunity.com/threads/how-to-create-a-wg-region-from-players-location.4158/#post-13877

For some reason, the code given there does not work for some reason. Can help or tell how to change:
code_language.skript:
command /iwantaweregionof50blocks <text>:
    trigger:
        set {_loc1} to location of block at player
        set {_loc2} to {_loc1}
    
        add 25 to the x-coordinate of {_loc1}
        add 25 to the y-coordinate of {_loc1}
        add 25 to the z-coordinate of {_loc1}
    
        add -25 to the x-coordinate of {_loc2}
        add -25 to the y-coordinate of {_loc2}
        add -25 to the z-coordinate of {_loc2}
    
        create wg region "%arg 1%" between {_loc1} and {_loc2} in world of player

Output:
[19:54:16 ERROR]: Variables cannot be used here. (4.sk, line 37: create wg region "%arg 1%" between {_loc1} and {_loc2} in world of player')

Skript 2.2 (last) SharpSK 1.6.3(last) skLib, SkQuery, skRayFall, skUtilities, Skellett, Umbaska
 
Last edited:
I instal Tuske but help me where wrong?:
code_language.skript:
on death:
    if name of victim is "&6Skeleton King":
        broadcast "+"
        set {x.cord} to victim's x-coordinate
        set {y.cord} to victim's y-coordinate
        set {z.cord} to victim's z-coordinate
        broadcast "%{x.cord}%,%{y.cord}%,%{z.cord}%"
        set {zPOS1} to location({x.cord}-5,{y.cord}-5,{z.cord}-5, world "world")
        set {zPOS2} to location({x.cord}+5,{y.cord}+5,{z.cord}+5, world "world")
        broadcast "%{zPOS1}%,%{zPOS2}%"
        make console execute "area create 1"
        create region "1" between {zPOS1} and {zPOS2} in world "world"

is it possible to specify // pos1 and // pos2 via the console in WorldEdit?
Output:

code_language.skript:
>/pos1 1 201 1
[21:17:48 INFO]: For parameter 'player': Caller is not a player
[21:17:48 INFO]: Usage: //pos1 [coordinates]
 
No offence but what the hell?
Your post went from setting a world guard region via a custom command.....
to...
A Player death event?
"is it possible to specify // pos1 and // pos2 via the console in WorldEdit?" I do not believe WE has the ability to set positions via console command
 
No offence but what the hell?
Your post went from setting a world guard region via a custom command.....
to...
A Player death event?
"is it possible to specify // pos1 and // pos2 via the console in WorldEdit?" I do not believe WE has the ability to set positions via console command
I can see that I'm making a scary system of a dynamically changing zone.
tied to the death of a specific custom mob and created around the arena with a resolution of pvp...
But due to the impossibility of WorldEdit to use commands in the console, you have to look for workarounds ...

Sorry, maybe I'm insane of this idea..?
 
Scroll up.
You asked about using a syntax for creating a WG region... it wasnt working because you didn't have the addon. Then I suggested you use tuske/sharpsk, which apparently supports creating a WG region.

THEN you go on to asking if WG regions can be created in console?!?!? I am so lost as to what is going on here, its like 2 different people in 2 different threads.
I suggest picking one idea and sticking with it.
The reply to the original post, I gave you a link to the correct syntax for creating regions.
 
Scroll up.
You asked about using a syntax for creating a WG region... it wasnt working because you didn't have the addon. Then I suggested you use tuske/sharpsk, which apparently supports creating a WG region.

THEN you go on to asking if WG regions can be created in console?!?!? I am so lost as to what is going on here, its like 2 different people in 2 different threads.
I suggest picking one idea and sticking with it.
The reply to the original post, I gave you a link to the correct syntax for creating regions.
Thank!
 
Status
Not open for further replies.