Duels

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

naarden

Member
Feb 5, 2018
1
0
0
32
Hello! Im new to skript and im trying to make duels! but my skript is kinda not working as i want to!
Its making all the other ifs even tho there is if is "create"

options:
Version: 1.0
variables:
{arena.1} = false



command /arena [<text>] [<text>]:
trigger:
if arg 1 is "create":
set {arena.%arg 2%} to false
send "&2You created an arena named %arg 2%&2."

if arg 1 is "setspawn1":
set {arena.%arg 2%.spawn1} to event-location
send "&2First location of %arg 2% determined."
if arg 1 is "setspawn2":

set {arena.%arg 2%.spawn2} to event-location
send "&2Second location of %arg 2% determined."

n6tgZ91.jpg

n6tgZ91
 
code_language.skript:
options:
    Version: 1.0
variables:
    {arena.1} = false



command /arena [<text>] [<text>]:
    trigger:
        set {_a} to arg 1
        set {arena} to arg 2
        if {_a} is "create":
            set {arena.%{arena}%} to {arena}
            send "&2You created an arena named %{arena}%"

        else if {_a} is "setspawn1":
            set {arena.%{arena}%.spawn1} to event-location
            send "&2First location of %{arena}% determined"
        
        else if {_a} is "setspawn2":
            set {arena.%{arena}%.spawn2} to event-location
            send "&2Second location of %{arena}% determined"

I like your OS btw =)
 
Status
Not open for further replies.