Solved Can someone help me console not executing command

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

mahdi

Member
Jun 22, 2021
4
0
1
22
command /joindungeon:
trigger:
if {dungeon.begin} is false:
if {dungeon.%player%.begin} is false:
set {dungeon.%player%.begin} to true
add player to {dungeons.players.list::*}
add 1 to {dungeon.playercount}
teleport player to {dungeon.wait}
if {dungeon.playercount} is equal to 2:
make console execute command "dungeon begin"
 
command /joindungeon:
trigger:
if {dungeon.begin} is false:
if {dungeon.%player%.begin} is false:
set {dungeon.%player%.begin} to true
add player to {dungeons.players.list::*}
add 1 to {dungeon.playercount}
teleport player to {dungeon.wait}
if {dungeon.playercount} is equal to 2:
make console execute command "dungeon begin"
Did you try to debug all lines? There may be an error when it comes to reading the conditions data.

Also, I think it would be easier to code it like this:

code_language.skript:
command /joindungeon:
    trigger:
        if {dungeon.begin} is not set:
            message "Debug 1"
            if {dungeon.%player%.begin} is not set:
                set {dungeon.%player%.begin} to true
                add player to {dungeons.players.list::*}
                add 1 to {dungeon.playercount}
                teleport player to {dungeon.wait}
                message "Debug 2"
                if {dungeon.playercount} = 2:
                    console command "dungeon begin"
                    message "Debug 3"
So when you want to change the value of {dungeon.begin} and {dungeon.% Player% .begin} just delete the data from them.
code_language.skript:
delete {dungeon.begin}
delete {dungeon.%player%.begin}

This last thing is just like i like. You can ignore it.
 
Did you try to debug all lines? There may be an error when it comes to reading the conditions data.

Also, I think it would be easier to code it like this:

code_language.skript:
command /joindungeon:
    trigger:
        if {dungeon.begin} is not set:
            message "Debug 1"
            if {dungeon.%player%.begin} is not set:
                set {dungeon.%player%.begin} to true
                add player to {dungeons.players.list::*}
                add 1 to {dungeon.playercount}
                teleport player to {dungeon.wait}
                message "Debug 2"
                if {dungeon.playercount} = 2:
                    console command "dungeon begin"
                    message "Debug 3"
So when you want to change the value of {dungeon.begin} and {dungeon.% Player% .begin} just delete the data from them.
code_language.skript:
delete {dungeon.begin}
delete {dungeon.%player%.begin}

This last thing is just like i like. You can ignore it.
Thanks
 
Status
Not open for further replies.