#I need help with my skript

1 messages · Page 1 of 1 (latest)

flint marten
#

this wont work

crystal thorn
flint marten
#

im sending

#

have any idea?

crystal thorn
#

Indentation

flint marten
#

ok ty

crystal thorn
#

Its in the command properties part. You want it under trigger

flint marten
#

ok ty

#

wait can you help me

#

its not rly working like i want it

crystal thorn
#
  command property 1:
  command property 2
  command property 3:
    #code```
#

Dont go back (left) for the code

#

Stay to the right of the propties

flint marten
#

ok but my codes nopt rly working

crystal thorn
#

You seem new, I’d recommend looking at some tutorials for the basics

flint marten
crystal thorn
flint marten
flint marten
#

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

crystal thorn
#

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

flint marten
#

ok i fixed the code but it still doesnt work

crystal thorn
#

Then it may not be fixed, let me have a look

flint marten
#

this all works

#

but the first part doesnt happen

crystal thorn
#

You’re setting a local var, so its deleted after that event.

flint marten
#

how do i make it so it doesnt

crystal thorn
#

Just make the cooldown 1 day and remove the variable

flint marten
#

ye but i want it so if people wait 24h instead of 18 they get the bonus

crystal thorn
#
  cooldown: 1 day
  trigger:
    #claim daily reward```
#

Oh you want to vary rewards based on wait time?

#

Set a global variable

flint marten
#

I want it so the variable is from last time they did the cmd

winter bluff
#

it'll cover all the variable questions you require

crystal thorn
#

Also

flint marten
#

@winter bluff how do you get these guides i@need them

crystal thorn
#

Set it after you check the time since the last claim

crystal thorn
flint marten
#
    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
flint marten
#
    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
winter bluff
#

oh

winter bluff
winter bluff
#

np

crystal thorn
#

Also theres only 1 cooldown for ALL the players, use {cooldown::%player’s uuid%}