I was working on a skript that would make a broadcaster to say certain things. However, I came across a bug with when I wrote "Every {duration} seconds:". It says that it cannot understand this event. Here is the code:
(Some background info: m1-m3 are the messages. Broadinteger is the random number picker to pick the message. And {active} is whether it is on or not.)
Code:
every {duration} seconds:
if {active} is "true":
set {broadinteger} to a random integer between 1 and 3
if {broadinteger} is 1:
set {broadcast} to {m1}
else if {broadinteger} is 2:
set {broadcast} to {m2}
else if {broadinteger} is 3:
set {broadcast} to {m3}
broadcast "&3&l[&bBroadcaster&3&l] &9%{broadcast}%"
(Some background info: m1-m3 are the messages. Broadinteger is the random number picker to pick the message. And {active} is whether it is on or not.)