Reading labels and chat messages from WML
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Reading labels and chat messages from WML
I've got two questions:
1. Is there a way to read a label text from WML or Lua?
2. Is there a way to read chat messages from WML or Lua?
1. Is there a way to read a label text from WML or Lua?
2. Is there a way to read chat messages from WML or Lua?
- Celtic_Minstrel
- Developer
- Posts: 2166
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: Reading labels and chat messages from WML
The answer is no.
In 1.15 I was working on a way to read label text from Lua, but that's not ready yet. It might be in 1.15.11 if you're lucky.
Chat messages, on the other hand… I don't have any plans to make them readable, and I'm not convinced it would even be a good idea. What do you want this for?
In 1.15 I was working on a way to read label text from Lua, but that's not ready yet. It might be in 1.15.11 if you're lucky.
Chat messages, on the other hand… I don't have any plans to make them readable, and I'm not convinced it would even be a good idea. What do you want this for?
Re: Reading labels and chat messages from WML
That's great news.Celtic_Minstrel wrote: ↑February 28th, 2021, 7:56 pm In 1.15 I was working on a way to read label text from Lua, but that's not ready yet. It might be in 1.15.11 if you're lucky.
I was thinking of having chat commands that affect gameplay.Celtic_Minstrel wrote: ↑February 28th, 2021, 7:56 pm Chat messages, on the other hand… I don't have any plans to make them readable, and I'm not convinced it would even be a good idea. What do you want this for?
- Celtic_Minstrel
- Developer
- Posts: 2166
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: Reading labels and chat messages from WML
I think it might be better to use custom menu commands instead of chat commands. Adding custom commands to the
:command
console might be a valid request, but even then, I don't think it's a good idea to use them for gameplay - they should be reserved for debug functions in my opinion.