Ranged Chat

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Apr 18, 2018
12
0
0
I was wondering if there is a way that I can do ranged chat like they run /yell and it shows like

&8[&cYELL&8] {player name with prefix} &8&l> (message)

and only people within 15 blocks can see that message ?
 
code_language.skript:
command /yell <text>:
    trigger:
        send "[Yell] %player%> %arg-1%" to all players in radius 15 of player
 
code_language.skript:
command /yell <text>:
    trigger:
        send "[Yell] %player%> %arg-1%" to all players in radius 15 of player
Do you know if it is possible like if they do

!(message) it will make them do the yell feature too?

Also how would I do it for the whole server then the range for that world?

Also could you possibly add me on discord : Severingcastle8#2594
 
code_language.skript:
on chat:
    if first character of message is "!":
        set recipients to all players in radius 15 of player
        set message to the last (length of message - 1) characters of message #get rid of the !
not sure what your second question means
 
code_language.skript:
on chat:
    if first character of message is "!":
        set recipients to all players in radius 15 of player
        set message to the last (length of message - 1) characters of message #get rid of the !
not sure what your second question means
good solution, i would just do a couple style changes:
code_language.skript:
on chat:
  first character of message is "!"
  set recipients to players in radius 15 around player
  set message to last (length of message - 1) characters of message
 
good solution, i would just do a couple style changes:
code_language.skript:
on chat:
  first character of message is "!"
  set recipients to players in radius 15 around player
  set message to last (length of message - 1) characters of message
i would do a couple style changes to pikachu:
upload_2018-4-19_22-27-8.png
 
Status
Not open for further replies.