if {kod.roz} is set:
Chcesz mieć wartości w boolean to nie pytaj czy jest ustawione
if {kod.roz} is true:
A do losowania możesz wykorzystać chance:
Lub kod na losowe liczby ci pomoże:
variables:
{los} = false
{kod} = 00000
options:
czas: 5 #czas co jaki ma być odnawiany kod w minutach
every {@czas} minutes:
set {los} to true
set {_a} to random integer between 1 and 9
set {_b} to random integer between 1 and 9
set {_c} to random integer between 1 and 9
set {_d} to random integer between 1 and 9
set {_e} to random integer between 1 and 9
set {kod} to "%{_a}%%{_b}%%{_c}%%{_d}%%{_e}%"
sorry jak się mylę, ale dawno nie pisałem skryptów, a ostatnio zacząłem się uczyć pisać pluginy, ale wydaje mi się że takie coś możesz zrobić.