[April Fool] Some hidden things in TeaScript

Description: Internal scripting system of SMBX-38A Engine based on the simple VB-like language
Moderators: Yoshi021, Lx Xzit, 5438A38A, Moderators, Semi-moderatos

Erwill M
Topic author, Viscount
Viscount
Avatar
Erwill M
Topic author, Viscount
Viscount
Age: 25
Reputation: 190
Posts: 303
Joined: 29 Nov 2015

Post #1by Erwill » 1 Apr 2022, 19:35

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
Last edited by Erwill on 2 Apr 2022, 8:35, edited 1 time in total.

Victor ManuelMR M
Count
Count
Avatar
Victor ManuelMR M
Count
Count
Age: 22
Reputation: 156
Posts: 241
Joined: 7 Feb 2018

Post #2by Victor ManuelMR » 2 Apr 2022, 3:26

Oh yeah, and I'm a fat furry.
Image
[1.4.5] - Dream Team at The Challenging Portals:
Image

Sucrose M
Nice citizen
Nice citizen
Avatar
Sucrose M
Nice citizen
Nice citizen
Age: 20
Reputation: 6
Posts: 15
Joined: 27 Mar 2020
Tencent QQ

Post #3by Sucrose » 2 Apr 2022, 3:38

April Fools?
Like and Visit: Bilibili (Chinese)
My SMBX Projects: https://github.com/Rosalina129
If you have any Suggestions, please contact: rosalina129@outlook.com or 13181496357@163.com


krakin M
Advanced Moderator
Advanced Moderator
Avatar
krakin M
Advanced Moderator
Advanced Moderator
Age: 21
Reputation: 17
Posts: 170
Joined: 25 Jan 2017
English Pronouns: he/him
Location: Splatsville
YouTube

Post #4by krakin » 3 Apr 2022, 20:09

Sucrose wrote:April Fools?
Yep, says so in the topic title
Image
Tone indicators : /j= joking, /srs= serious, /lh= light-hearted, /s= sarcastic[/b]
My main YT: https://www.youtube.com/channel/UCuOpAMKaq2pSYfIV5ivHp6w
Secondary YT: https://www.youtube.com/c/BarryKoopa
more about me
My Switch friend code: SW-1004-3051-8456

3color BombDX
Close friend
Close friend
Avatar
3color BombDX
Close friend
Close friend
Age: 20
Reputation: 17
Posts: 96
Joined: 8 May 2018
Location: Brazil
YouTube

Post #5by 3color BombDX » 23 Apr 2022, 1:19

and to think i actually tried testing those xD, i feel for it too easily
Gosh, for how many years have i been out?
Well, things change, don't they?


Return to “TeaScript”

Who is online (over the past 5 minutes)

Users browsing this forum: 4 guests