#Where is problem please?

1 messages · Page 1 of 1 (latest)

wild solstice
#

set {_random_cooldown} to random value between {random_cooldown_min} and {random_cooldown_max} that's not the whole code, but that's the only faulty part. Help me please

dreamy ruin
#

value -> integer

#

also what are min and max set to? numbers? integers? timespans?

wild solstice
dreamy ruin
#

you're close.
If you need to reference something from the options section, the variable needs a @ symbol (like how local variables start with _, options variables start with @). Because of this, Sktipt is actually thinking those are global variables instead of options.

#

so on line 17, you need to add an @ symbol to the last two variables in that line and you should be set

wild solstice
#

How can it be please? I don't know how to do it anyway

dreamy ruin
#

it's literally adding a @ after the first { in those two variables I pointed out.

wild solstice
#

but this doesn't work

#

please how

wild solstice
#

Please help me with it. I don°t understand

dreamy ruin
#

With what you are doing, it will be a bit more intensive than just getting a value between to things like that.

#

Unfortunately, you can't get a random value between two timespans, you'll have to loop all possible combinations and put them in a list, then get a random element out of the list.