Page 1 of 1

[April Fool] Some hidden things in TeaScript

Posted: 1 Apr 2022, 19:35
by Erwill
Hello,

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)

Image

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

Image

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.")

Image

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

Posted: 2 Apr 2022, 3:26
by Victor ManuelMR
Oh yeah, and I'm a fat furry.

Posted: 2 Apr 2022, 3:38
by Sucrose
April Fools?

Posted: 3 Apr 2022, 20:09
by krakin
Sucrose wrote:April Fools?
Yep, says so in the topic title

Posted: 23 Apr 2022, 1:19
by 3color BombDX
and to think i actually tried testing those xD, i feel for it too easily