#I need help with my skript
1 messages · Page 1 of 1 (latest)
Be more specific.
Indentation
ok ty
Its in the command properties part. You want it under trigger
command property 1:
command property 2
command property 3:
#code```
Dont go back (left) for the code
Stay to the right of the propties
ok but my codes nopt rly working
You seem new, I’d recommend looking at some tutorials for the basics
ihave its my brother who indented
What i cant see i cant help you with
.
!indentation
it makes it so even tho i do the command befor 10s of the old one it still does the other one
i want it so that this
Basically any time you have a colon indent the lines related to that; those in a command’s trigger, or those to run if the condition is passed
ok i fixed the code but it still doesnt work
Then it may not be fixed, let me have a look
You’re setting a local var, so its deleted after that event.
how do i make it so it doesnt
Just make the cooldown 1 day and remove the variable
ye but i want it so if people wait 24h instead of 18 they get the bonus
cooldown: 1 day
trigger:
#claim daily reward```
Oh you want to vary rewards based on wait time?
Set a global variable
How?
I want it so the variable is from last time they did the cmd
Also
@winter bluff how do you get these guides i@need them
Set it after you check the time since the last claim
As i said twice, google tutorials
permission: daily.use
cooldown: 1 seconds
trigger:
set {cooldown} to now
if time since {cooldown} >= 5 seconds:
send "you have recieved a bonus key"
make console execute command "/crate key give %player% afk 2"
if time since {cooldown} <= 5 seconds:
make console execute command "/crate key give %player% daily 1"
``` it still only gives 1
Trying
But it doesn’t cover how last time command executed by %player’s uuid% or anything near
permission: daily.use
cooldown: 1 seconds
trigger:
if time since {cooldown} >= 5 seconds:
set {cooldown} to now
send "you have recieved a bonus key"
make console execute command "/crate key give %player% daily 2"
else:
set {cooldown} to now
make console execute command "/crate key give %player% daily 1"``` This worked
oh
then you can tweak it and everything is pretty much done afterwards
Yeah thanks guys
np
You want to set the cooldown to now regardless of conditions so just have it at the bottom, not just in all the conditions
Also theres only 1 cooldown for ALL the players, use {cooldown::%player’s uuid%}