1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Glitched text

Discussion in 'Skript' started by TheMangoCrew, Feb 15, 2021.

Thread Status:
Not open for further replies.
  1. TheMangoCrew

    TheMangoCrew Member

    Joined:
    Nov 15, 2020
    Messages:
    11
    Likes Received:
    0
    So, I want to create a command (for example: /glitchtext). When I typed it, it is activated. Typing it in once again deactivates it. If it is activated, when you send a chat message, the message replaces itself with an 8-80 character long message with weird symbols (highly inspired by DDLC), and the characters are randomly selected from a list. Can you do that in skript?
     
  2. akatas

    akatas New Member

    Joined:
    Feb 16, 2021
    Messages:
    7
    Likes Received:
    0
    Yes. You know how you can color text by using “&[[1-9] OR [a-f]]”? Well, you can also use “&r” to reset code, “&l” for bold, “&m” for underline, “&n” for strikethrough, “&o” for italics, and “&k” for Minecraft enchanting table. So you want “&k” to change the text to magic stuff. Here’s an example:

    Code (Text):
    1. on join:
    2.   send “&kHello %player%!” to player
     
  3. TheMangoCrew

    TheMangoCrew Member

    Joined:
    Nov 15, 2020
    Messages:
    11
    Likes Received:
    0
    Yes, I know the essentials colorchat features, but &k changes characters. I want them to not move, just have a list of weird glitchy characters and editing the message, not just using essentials. (Also, my friends said that &k can lag them out cuz all the character changes.)
     
  4. akatas

    akatas New Member

    Joined:
    Feb 16, 2021
    Messages:
    7
    Likes Received:
    0
    oh. I don’t think there’s a way to make them not move, but you can go to a website that creates those characters and copy paste them. I think. They won’t move, and they will be random text!
     
  5. TheMangoCrew

    TheMangoCrew Member

    Joined:
    Nov 15, 2020
    Messages:
    11
    Likes Received:
    0
    you DO know that this whole post is not connected to essentials at all? Please don't set essentials as an example, because it is completely different. I just wanted to get a skript that can have a command that changes your message to random characters selected from a list.
     
  6. akatas

    akatas New Member

    Joined:
    Feb 16, 2021
    Messages:
    7
    Likes Received:
    0
    oh (again). Maybe do:

    Code (Text):
    1.  
    2.  
    3. add {a} to {characters::*}
    4. add {b} to {characters::*}
    5. add {c} to {characters::*}
    6. // and so on...
    7.  
    8. command /randomMessage <number>:
    9.   loop arg-1 times:
    10.     // add code here that makes an event happen at a random chance
    11.     add {a} to {message::*}
    12.     // more random stuff
    13.     add {b} to {message::*}
    14.     stop
    15.   send “%{message::*}%”
    I’m sure there is a more efficient way, but maybe this’ll work???
     
  7. cuddlytrap

    cuddlytrap Member

    Joined:
    Dec 18, 2020
    Messages:
    26
    Likes Received:
    0
    ik how

    Code (Text):
    1.  
    2. command /glitchedtext:
    3.   trigger:
    4.     if {GlitchedText.%player%} is true:
    5.       set {GlitchedText.%player%} to false
    6.     else:
    7.       set {GlitchedText.%player%} to true
    8.  
    9. on chat:
    10.   if {GlitchedText.%player%} is true:
    11.     cancel event
    12.     set {GlitchedMessage.%player%} to "&5&k%message%"
    13.     replace all "&0", "&1", "&2", "&3", "&4", "&5", "&6", "&7", "&8", "&9", "&a", "&b", "&c", "&d", "&e", "&f", "&l", "&m", "&n", "&o" and "&r" with " " in {GlitchedMessage.%player%}
    14.     make player say "%{GlitchedMessage.%player%}%"
    15.  
    i havent tested it but it should work
    idk what addons are required, i think it may be SkQuery. If not then it is probably no addons :emoji_grinning:
     
  8. Nikd0

    Nikd0 Active Member

    Joined:
    May 30, 2020
    Messages:
    208
    Likes Received:
    20
    Code (Text):
    1. replace all "&0", "&1", "&2", "&3", "&4", "&5", "&6", "&7", "&8", "&9", "&a", "&b", "&c", "&d", "&e", "&f", "&l", "&m", "&n", "&o" and "&r" with " " in {GlitchedMessage.%player%}
    too long, too hard. i'd rather use
    Code (Text):
    1. uncolored {GlitchedMessage.%player%}
     
    • Informative Informative x 1
  9. cuddlytrap

    cuddlytrap Member

    Joined:
    Dec 18, 2020
    Messages:
    26
    Likes Received:
    0
    i didnt know that existed :emoji_slight_smile:
     
Thread Status:
Not open for further replies.

Share This Page

Loading...