Local Chat (MOVED)

jumpsplat120

Helper
Staff member
Helper
Jun 24, 2020
59
8
8
www.jumpsplat120.com
Local Chat v1 and v2 have moved to the resources section! Go check them out now!


Ever wanted your chat to be limited to just a few people nearby? Want to hold secret meetings in dingy taverns, far from prying ears? Might I introduce...

LOCAL CHAT

Simply drop the following minimized code in, and BAM! Only those within the defined range (by default 10) will be able to hear what is being said. But of course, if you were to shout (LIKE THIS), then more people will be able to hear you! (by default a range of 20)

Here's a quick video demonstration of the script in action...


The code is only a few lines long, so feel free to modify it with extra features to suit your own needs! If you are using this script in any capacity, I would love to hear about it! Feel free to shoot me a message on Discord, Jumpsplat120#0001.

Simply click https://one.denizenscript.com/haste/71682, or visit the github to download the script: https://github.com/jumpsplat120/Denizen-Scripts/blob/master/Local_Chat.dsc
 
Last edited:

mcmonkey

Administrator
Staff member
Helper
What in the hecksinki is - if <context.message.replace_text[regex:<element[[^A-Za-z]]>].is_uppercase>: meant to be?

Also, you probably should make use of the recipients determination.

Also, the standard link to your current script would be https://one.denizenscript.com/haste/71368
 

jumpsplat120

Helper
Staff member
Helper
Jun 24, 2020
59
8
8
www.jumpsplat120.com
You can't use the .is_uppercase tag on an element that contains numbers or symbols, as it will automatically fail. So the tag removes all auto failing characters before checking. That way, you don't have to forgo proper punctuation when "yelling".

I'll update the link along with the determination change.
 

mcmonkey

Administrator
Staff member
Helper
You might want to instead check if <context.message.to_uppercase.equals_case_sensitive[<context.message>]> or something like that (generally, regex should be avoided whenever possible).