Discord Thread How to format a skript variable to use externally?

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

This thread came from the skUnity Discord. You can't reply to it here but if you join the skUnity Discord, you'll be able to post a reply there. The thread link is part of the thread's message.
Status
Not open for further replies.

skUnity Discord

Site Manager
Aug 5, 2023
12,755
1
0
The skUnity Discord
discord.gg
My current code is the following, but I cannot get it to work.

code_language.skript:
js
on placeholderapi placeholder request for the prefix "shards":
    if the identifier is "raw":
        set the result to "%{Shards::%uuid of player%} ? 0%"
    if the identifier is "formatted":
        if {Shards::%uuid of player%} is not set:
            set the result to "0"
            stop
        else:
            set the result to "%format({Shards::%uuid of player%})%"

I keep getting the error: "Can't understand this section: on placeholderapi placeholder request for the prefix "shards".

Posted by: encrypted_noobi from the skUnity Discord. View the thread on skUnity Discord here
 
Status
Not open for further replies.