how to get result of a command skript

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

EclipsJR

Member
Aug 24, 2024
2
0
1
Really hard to get the result of a command and put it as a variable

this is my code

on rightclick:
if player's tool is red wool:
execute command "scoreboard players get %player% pump4"
add result to {delay1}
 
Really hard to get the result of a command and put it as a variable

this is my code

on rightclick:
if player's tool is red wool:
execute command "scoreboard players get %player% pump4"
add result to {delay1}
You could just set a custom player variable instead of using scoreboard stuff then you can get the result easier.

Example:
Code:
on join:
   set {pump4::%player's uuid%} to 0

on right click:
   if player's tool is red wool:
      add {pump4::%player's uuid%} to {delay1}
 
You could just set a custom player variable instead of using scoreboard stuff then you can get the result easier.

Example:
Code:
on join:
   set {pump4::%player's uuid%} to 0

on right click:
   if player's tool is red wool:
      add {pump4::%player's uuid%} to {delay1}
I can tell you what im making, so i have made a pumpkin prank ability and it has a delay using a in game scoreboard called "pump4" and i want to make a /command for players to see how long its for the pumpkin prank to come back
it takes 60 seconds/pump4 scoreboard to reach 60 for the player to get it back
so im trying to make this /PumpkinDelay which shows: Your pumpkin cooldown is "The variable that is the cooldown/%{delay1}%" seconds left!