Animated Screen Title

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

Riknesh

Active Member
Jun 9, 2017
76
2
8
Malaysia
Is there any other way to a animated screen title like this?
code_language.skript:
command /testtitle:
    trigger:
        send player title "a" for 1 seconds
        wait 10 ticks
        send player title "ab" for 1 seconds
        wait 10 ticks
        send player title "abc" for 1 seconds
        wait 10 ticks
        send player title "abc1" for 1 seconds
        wait 10 ticks
        send player title "abc12" for 1 seconds
        wait 10 ticks
        send player title "abc123" for 1 seconds

I want it to work something like it loops every single alphabet and send it 1by1, forming a sentence on screen
Example:https://imgur.com/ilX0mYL
ilX0mYL
 
Last edited:
It'll take a lot of lines if you do it that way, you're better off using loops. If I understood correctly, this is what you want:
code_language.skript:
set {_alphabet::*} to split "abcdefghijklmnopqrstuvwxyz" by ""
set {_message} to ""

loop {_alphabet::*}:
  set {_message} to "%{_message}%%loop-value%"
  send player title {_message} for 1 second
  wait 10 ticks
 
Last edited:
It'll take a lot of lines if you do it that way, you're better off using loops. If I understood correctly, this is what you want:
code_language.skript:
set {_alphabet::*} to split "abcdefghijklmnopqrstuvwxyz" by ""
set {_message} to ""

loop {_alphabet::*}:
  set {_message} to "%{_message}%%loop-value%"
  send player title {_message} for 1 second

Don’t forget to add a delay in the loop
 
Don’t forget to add a delay in the loop
thx for reminding :emoji_slight_smile:
[doublepost=1526397845,1526397808][/doublepost]
It'll take a lot of lines if you do it that way, you're better off using loops. If I understood correctly, this is what you want:
code_language.skript:
set {_alphabet::*} to split "abcdefghijklmnopqrstuvwxyz" by ""
set {_message} to ""

loop {_alphabet::*}:
  set {_message} to "%{_message}%%loop-value%"
  send player title {_message} for 1 second
  wait 10 ticks

how can i make it work with title and subtitle at the same time
[doublepost=1526399375][/doublepost]the code below gave me this result: https://imgur.com/a/ZCQbZmx

code_language.skript:
command /animatedtitle [<text>] [<text>]:
    aliases: at
    trigger:
        if arg-1 is set:
            if arg-2 is not set:
                set {animatedtitle.%player%} to arg-1
                replace "_" with " " in {animatedtitle.%player%}
                set {_animatedtitle::*} to split "%{animatedtitle.%player%}%" by ""
                set {_animatedtitlemsg} to ""
                loop {_animatedtitle::*}:
                    set {animatedtitlelooped} to loop-value
                    set {_animatedtitlemsg} to "%{_animatedtitlemsg}%%{animatedtitlelooped}%"
                    send player title {_animatedtitlemsg} for 1 second
                    wait 2 ticks
            if arg-2 is set:
                set {animatedsubtitle.%player%} to arg-2
                replace "_" with " " in {animatedsubtitle.%player%}
                set {animatedsubtitle::*} to split "%{animatedsubtitle.%player%}%" by ""
                set {_animatedsubtitlemsg} to ""
                set {animatedtitle.%player%} to arg-1
                replace "_" with " " in {animatedtitle.%player%}
                set {animatedtitle::*} to split "%{animatedtitle.%player%}%" by ""
                set {_animatedtitlemsg} to ""
                loop {animatedtitle::*}:
                    set {_animatedtitlelooped} to loop-value
                    set {_animatedtitlemsg} to "%{_animatedtitlemsg}%%{_animatedtitlelooped}%"
                loop {animatedsubtitle::*}:
                    set {_animatedsubtitlelooped} to loop-value
                    set {_animatedsubtitlemsg} to "%{_animatedsubtitlemsg}%%{_animatedsubtitlelooped}%"
                    send player title {_animatedtitlemsg} with subtitle {_animatedsubtitlemsg} for 1 second
                    wait 2 ticks
 
Status
Not open for further replies.