[1.10.22] Custom loading texts/topics

Find tutorials, documentation, and resources for creating and using TheoTown plugins.
Previous topicNext topic
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3759
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

[1.10.22] Custom loading texts/topics

Post by Lobby »

image.png
The short messages that are shown on loading screen are called topics. Verison 1.10.22 lets you add your own topics into the game by defining a plugin of type topic. That plugin's text will then be shown if the topic gets displayed by the game.

It's as simple as that :json

Code: Select all    Reset

[ { "id": "$topic_custom_unique_id", "type": "topic", "text":"Some custom text", // Text to show "weight": 10, // 1 by default "color": {"r": 255,"g": 0,"b": 0} // Color, yellow by default } ]
JSON checker
Check
The optional weight attribute can be used to specify the likelyhood of that topic to be shown relative to other topics. The default value is 1. A value of 2 would make it two times more likely for the topic to be shown.

The optional color attribute can be used specify a custom color for you topic. By default the game will use yellow to draw the topic.
 ! Message from: Lobby
Be careful to use a reasonable weight, otherwise your plugins may not get approval.
You do not have the required permissions to view the files attached to this post.
User avatar
Yakka Works
Inhabitant of a Conurbation
Reactions:
Posts: 412
Joined: 06 Jan 2020, 07:57
Location: Java-indonesia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [1.10.22] Custom loading texts/topics

Post by Yakka Works »

Finally my suggestions was granted :')
But is there a way to make this only shown on specific date of the IRL year?
My plugins,up to date and it's free on my website. So check it out.
My website
Community/Creators Discord Server List
User avatar
rtobby
Inhabitant of a Megacity
Reactions:
Posts: 170
Joined: 23 May 2018, 20:18
Location: Lithuania
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [1.10.22] Custom loading texts/topics

Post by rtobby »

Is using a weight lower than 1, e.g. 0.2 possible?
Storing the plugin moderators, plugining the moderator store and moderating the plugin store since 2022!
User avatar
Hadestia
Inhabitant of a Megalopolis
Reactions:
Posts: 722
Joined: 17 Jul 2017, 14:16
Location: Philippines
Plugins: Showcase Store

Plugin Creator

Platform

Re: [1.10.22] Custom loading texts/topics

Post by Hadestia »

How about an attribute on how often it would display? Around 0.2 would be enough as a max value

Also how about with lua?
 ! Message from: Hadestia
Visit my YouTube channel:
https://youtube.com/channel/UC5qG-r8y21036JZbGRClbdQ
User avatar
LightBlue
Inhabitant of a Continent
Reactions:
Posts: 1058
Joined: 13 Feb 2022, 10:34
Location: 🦈🐊
Plugins: Showcase Store
Version: Beta

Platform

Re: [1.10.22] Custom loading texts/topics

Post by LightBlue »

what if i change it to "never gonna give you up"?
life is horrible, and you need to B)
c
cesareborgia94
Reactions:

Re: [1.10.22] Custom loading texts/topics

Post by cesareborgia94 »

Will be going to do this next time when my laptop is fixed.
Previous topicNext topic