This is my first time doing denizen, i tried to write a script which has periodic chat messages, like "join the discord" etc. and each player can turn the messages on or off for themselves.
Here is the current code: (attached file bc of character limit)
Error:
[16:51:12 INFO]: +> [Static Tag Processing] Pre-Filled tag <&ns> with '#', and cached result.
[16:51:12 INFO]: +> [Static Tag Processing] Pre-Filled tag <list[ "&#FF5555Join our discord for help, giveaways, and so much more!", "7FF55Do /menu to see our custom features!", "ᖳFFFound a bug? Have a suggestion? Contact a staff member.", "&#FFFF55Purchase something from our store to help support us!",
"&#FF55FFSign up for our forums to get support, appeal a punishment, and more!" ]> with 'li@ "&#FF5555Join our discord for help, giveaways, and so much more!", "&#55FF55Do /menu to see our custom features!", "&#5555FFFound a bug? Have a suggestion? Contact a staff member.",
"&#FFFF55Purchase something from our store to help support us!", "&#FF55FFSign up for our forums to get support, appeal a punishment, and more!" |', and cached result.
[16:51:12 INFO]: +> [Static Tag Processing] Pre-Filled partial tag '<server...' with '(Base-Object)', and cached result.
[16:51:12 INFO]: ERROR in script 'announcementsystem' while executing command 'NARRATE' in file 'scripts/annoucements.dsc' on line '16'!
Error Message: (Initial detection) Tag processing failed: The tag '[messages.get<[index]>' is invalid due to misplaced [square brackets]. Did you forget to close some brackets?
The error makes sense but idk what im doing wrong. also if there is anything i could write better?