#trying to make a skript to run events

1 messages · Page 1 of 1 (latest)

wooden orchid
#

how does it not work

bright cargo
#

doesnt tp them

wooden orchid
#

cause you’re trying to teleport them to a string not a location

#

there are cords in the string, but skript still can’t teleport to strings

bright cargo
#

Oh

#

So how do I make it a location?

#

I tried doing it to the co odds

#

But got an error msg

wooden orchid
#

use the location function to make a location out of coords

bright cargo
#

Ok thank youu

wooden orchid
#

if you’re confused by the syntax, open examples

bright cargo
#

Okay will do tyyy man

lost fjord
#

Also use code blocks

#

And you can use %nl% instead of broadcasting 20 lines

#

And why execute the teleport command through console? Just put that code into the periodical

bright cargo
#

Wait what’s code blocks and peridoical lol

#

Sorry im new to skripts

lost fjord
#

Code blocks are formatted code on discord, which makes code easier to read: ```code ```
The periodical is the every %timespan% event

lost fjord
bright cargo
#

Ah thank youu I didn’t know any of that lol

#

I’ll give that tutorial a look 👍🏿

bright cargo
#

its still coming up with this error msg not sure why

lost fjord
#

No need for world function

bright cargo
#

the map is in another world tho

lost fjord
#

Just put it in as a parameter in the location function

bright cargo
#

okay ill give it ago 🙂

lost fjord
#

You can always check the docs for things like these

bright cargo
#

yea ur right ty

#

thank you its working now 🙂

coral storm
bright cargo
#
        broadcast "---------------------"
        broadcast ""
        broadcast "&a&lFACTIONFRENZIE: &bEvent In 5 Minutes!"
        broadcast "&a&lFACTIONFRENZIE: &bDo /event To Join!"
        broadcast ""
        broadcast "---------------------"
        wait 10 second
        execute console command "teleportqueue"     

command /event:
    trigger:
        if player is in {queue::*}:
            add player to {queue::*}
            send "&badded to queue" to player
        else:
            remove player from {queue::*}
            send "&bremoved from queue" to player



command /teleportqueue:
    permission: op
    trigger:
        teleport {queue::*} to location(10.4,-34,-19.5,"event")
         ```
#

ive added a remove player function and ive looked it up part cant see why it still teleports the player even if there not in the queue

lost fjord
coral storm
#

send everytime after /event as a debug info