#(alexthecan) toggleable periodic annoucements

38 messages · Page 1 of 1 (latest)

winter creek
#

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!", "&#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!" ]> with 'li@ "&amp#FF5555Join our discord for help, giveaways, and so much more!", "&amp#55FF55Do /menu to see our custom features!", "&amp#5555FFFound a bug? Have a suggestion? Contact a staff member.", 
                 "&amp#FFFF55Purchase something from our store to help support us!", "&amp#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?

sand flintBOT
#

(alexthecan) toggleable periodic annoucements

sand flintBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

grand terrace
#

!info haste debug

grave breachBOT
#
Info: debug

If you need help with a script issue, one of the most powerful tools Denizen has to offer is full debug output. This is displaying in your console whenever scripts are running until you turn debug off. To share a debug log quickly and easily with helpers, simply run the command /denizen debug -r in-game to begin recording, then run through the part of the script you need help with, then run the command /denizen submit. This will give you a link to a paste of the debug log, which you can then copy/paste back to us!

grand terrace
#

^ Please post a paste of your script and a debug recording of the errors

winter creek
raven orbit
#

posting scripts as plain text is also not very helpful :(

#

please read and follow the instructions

grand terrace
winter creek
# grand terrace ^ please paste it as a script (using the link I pulled up) and post a debug of t...

https://paste.denizenscript.com/View/121245

This error is on script load. it doent even load in the script due to syntax 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!", "&#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!" ]> with 'li@ "&amp#FF5555Join our discord for help, giveaways, and so much more!", "&amp#55FF55Do /menu to see our custom features!", "&amp#5555FFFound a bug? Have a suggestion? Contact a staff member.", 
                 "&amp#FFFF55Purchase something from our store to help support us!", "&amp#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? 
#

and yeah ehre is the pastebin

grand terrace
grave breachBOT
# wet canopy !chatgpt
Info: chatgpt

No, ChatGPT cannot write working scripts.

ChatGPT is known to often be "confidently wrong", meaning- It will try, it will output something that looks like a script, it will assure it it works, and it will not work.

ChatGPT is a cool tool, and it can do a lot of cool things, but it is not sufficiently intelligent enough to write working code as of yet, especially not in smaller languages like Denizen script (as opposed to huge languages like C or Python).

(GitHub Copilot, which supplies single lines at a time based on the surrounding code you've already written, can sometimes be accurate and helpful).

winter creek
wet canopy
#

It's clearly not your script

winter creek
winter creek
wet canopy
#

because there is no
- try: catch:
commands

winter creek
#

LOL

#

ok

#

ffs ig i have to take the time to learn it

#

i just needed to make some simple scripts

#

then when im doing custom mob logic ill learn it

#

and i really dont want to use skript for simple shit

#

atp i could write a java plugin for it ik how to do that

raven orbit
#

!debug

grave breachBOT
# raven orbit !debug
Info: debug

If you need help with a script issue, one of the most powerful tools Denizen has to offer is full debug output. This is displaying in your console whenever scripts are running until you turn debug off. To share a debug log quickly and easily with helpers, simply run the command /denizen debug -r in-game to begin recording, then run through the part of the script you need help with, then run the command /denizen submit. This will give you a link to a paste of the debug log, which you can then copy/paste back to us!

winter creek
#

ill write it properly first to not waste anyones time

raven orbit
#

If you could record a debug we can point you into the right directions

random larkBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@winter creek