Imageboard Chat Formating

  • 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!

aescraft

Well-Known Member
Mar 1, 2017
295
13
0
36
Category:
Chat

Suggested name:
Anything

What I want:
So in imageboards we have green texts, strikethrough, italics, bold, underlike, red text and spoilers.
I want to have the same inside minecraft for my server with the same tags.

Ideas for commands / tags:
from ----------------------> to
Spoiler
**%message%** = §k%message%
Italics
''%message%'' = §o%message%
Bold
'''%message%''' = §l%message%
Underline
__%message%__ = §n%message%
RedText
==%message%== = §4§l%message%
Strikethrough
~~%message%~~ = §m%message%
Green Text:
>%message% = §a>%message%
Ideas for permissions:
No perms needed.

When I'd like it by: The sooner the better. I'd be grateful if someone even attempted this for me.

--

This is what I tried and it does not work:
Code:
on chat:
    redtexto
        if message have "==%message%==":
            set {message} to message
            replace all "==%message%==" to "&4&l%message%" in {message}
 
I quickly coded this up but im not sure how effective it is towards your request. Worth a try at least.

Code:
on chat:
    if message contains "**":
        replace "**" with "" in the message
        send "&6Chat &7> &fSpoiler &6message sent. &f(&7Triggered by: **&f)"
        set message to "&k%message%"
        stop       
    if message contains "'''":
        replace "'''" with "" in the message
        send "&6Chat &7> &f&lBOLD &6message sent. &f(&7Triggered by: '''&f)"
        set message to "&l%message%"
        stop
    if message contains "__":
        replace "__" with "" in the message
        send "&6Chat &7> &f&nUnderline&r &6message sent. &f(&7Triggered by: __&f)"
        set message to "&n%message%"
        stop
    if message contains "==":
        replace "==" with "" in the message
        send "&6Chat &7> &4&lRed Text &6message sent. &f(&7Triggered by: ==&f)"
        set message to "&4&l%message%"
        stop
    if message contains "~~":
        replace "~~" with "" in the message
        send "&6Chat &7> &f&mStrikethrough&r &6message sent. &f(&7Triggered by: ~~&f)"
        set message to "&m%message%"
        stop
    if message contains ">>":
        replace ">>" with "" in the message
        send "&6Chat &7> &aGreen Text &6message sent. &f(&7Triggered by: >>&f)"
        set message to "&a%message%"
        stop
 
  • Like
Reactions: Dylan The Beast
I quickly coded this up but im not sure how effective it is towards your request. Worth a try at least.
Thank you!
This worked.
The "send chat" line for the trigger was not really needed.

But the thing is, it's possible to make a fine tune?
I mean, the green text just needs the > as the first thing in the message.
The rest, needs not just to "contain" the trigger, but contain the trigger at the beginning and at the end.
Its like a forum tag. The [*quote] tag works only with another tag on the end.
Is this possible?

Thanks!
(You already helped me, really!)
 
Thank you!
This worked.
The "send chat" line for the trigger was not really needed.

But the thing is, it's possible to make a fine tune?
I mean, the green text just needs the > as the first thing in the message.
The rest, needs not just to "contain" the trigger, but contain the trigger at the beginning and at the end.
Its like a forum tag. The [*quote] tag works only with another tag on the end.
Is this possible?

Thanks!
(You already helped me, really!)

All good, ill look into improving this for you. :emoji_slight_smile:
 
  • Like
Reactions: Dylan The Beast