Solved Set a variable to a number that is stored in options

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

descreetOP

Member
Jan 2, 2024
11
2
3
options:
{teleportCooldown}: 10

on join:
set {remainingCooldown::%uuid of player%} to {teleportCooldown}
send "%{remainingCooldown::%uuid of player%}%"

I tried to set remainingCooldown to teleportCooldown but when sending the value, it returns <none> (with no errors)
 
options:
{teleportCooldown}: 10

on join:
set {remainingCooldown::%uuid of player%} to {teleportCooldown}
send "%{remainingCooldown::%uuid of player%}%"

I tried to set remainingCooldown to teleportCooldown but when sending the value, it returns <none> (with no errors)
Your first issue is that you're defining an option variable improperly. Secondly, an option variable cannot be set to anything different once it's already defined.

Options are defined as such below:
Code:
options:
   example: "&bColored text"

command test:
   trigger:
      send {@example} to player