Since November 2021 I did some searches to discover undocumented teascript features and I decide to share them with you.
I- FileIO
This function will write or read texts from .txt files, the generated or read files can't be outside of the level folder
Code: Select all
call FileIO(filename, mode, content, line, collumn, lenght)
- Filename (as string): the name of the file
- mode (as string): "output" to write things, "input" to read them
- content (as string): the texts which will be written, set "" for "input" mode
- line (as double): the specified line of the file
- collumn (as double): the specified collumn of the file
- lenght (as double): the amount of characters readed, set 0 for "output" mode
Here's an example with
Code: Select all
call FileIO("Test.txt", "output", "Hello world", 0, 0, 0)
II- sysval(screenwidth) and sysval(screenheight)
Those sysval will change the screen resolution, nothing much to say more.
This is what you got when you write
Code: Select all
sysval(screenwidth) = 1400
III- Dim array
Yes, you can make specific arrays for script, all you have to do is just write:
Code: Select all
Dim youarray as newarray(arraylenght)
Here's the demo https://www.mediafire.com/file/lhm8oecwbpdjui5/Dimarraydemo.zip/file
IV- TTSVoice(ID, Text)
Nobody knew it, but SMBX 38A has a build-in Text to voice system, there are only two right now: Male (ID: 0) and Female (ID: 1).
- ID (as double): the id of the voice
- Text (as string): the text that the voice will say
First example with "call TTSVoice(0, "Hello, this is the male voice of SMBX 38A, do you like it?")"
https://vocaroo.com/1oRKriy80ffw
Second example with "call TTSVoice(0, "Hello, this is the female voice of SMBX 38A, do you like it?")"
https://vocaroo.com/1g3boj940bwM
V- liedetect(Text)
This function will return a statement about if the text is a lie or truth.
Here's an example
Code: Select all
call liedetect("Erwill is the best scripter of the world.")
VI- nuclearbomb(code)
I don't know what this function is made for, I think you have to find the code but I don't know what will it do.
Oh wait, I think I found the code, let's try to se