Page 1 of 1

Please make a manual/tutorial/documentation for 1.4

Posted: 10 Oct 2016, 2:06
by ctrl_void
I migrated from LunaLua SMBX 1.3 to SMBX 1.4, and there's no tutorial nor documentation to show all new features.

So, would it be possible to create a manual or tutorial showing everything new?

Posted: 10 Oct 2016, 2:26
by Shadowblitz16
I agree with this there needs to be more in depth documentation on it and its scripting language.
the help document on TeaScripts is very basic and not very helpful.

Posted: 10 Oct 2016, 9:23
by Lx Xzit
In the document "SMBx Scripting Help" you can find almost all the documentation about the Script system. If that's not enough, you can give a look to the example scripts that are included in the standlone of the game (in "worlds", check the "Examples" folder). You also can ask help in this forum or watch some other scripts made by others persons on this forum (Visit "Tea-Script" section).

Posted: 11 Oct 2016, 3:05
by Shadowblitz16
@Lx Xzit
The help document on scripts seem very simple
they don't tell you the arguments for the variables and function and some don't even go into depth on what they do
also I have posted help topics but nobody seems to reply to them

Posted: 11 Oct 2016, 4:49
by Alvespires
Shadowblitz16 wrote:@Lx Xzit
The help document on scripts seem very simple
they don't tell you the arguments for the variables and function and some don't even go into depth on what they do
also I have posted help topics but nobody seems to reply to them
Variables are numbers that can be used in math.You can have global ones,that work for all levels and local ones that work on a particular level Only.they can be used in many porpuouses,mostly used for coins in shop,and to make one level Interact with Another.s for basic scripting,you need

If =that starts a condition
Then= the action it will do if "if" rettorned as "True"
Call =what will the script do
Else =if the ''if" has rettorned as "false"
End if =to end the script.

Using variables on scripts
Val(name of variable) is local ones
Gval(name of variable) is global ones

To use them vou use Plus(+) minus(-) times(*) and divided(/),higher than(>),lower than(<) and equal(=)
That's just the basic.Hope you understend.

Example:
Spoiler
if gval(phrase)=>9,
Then call SHOWMSG("TEST 1")
Else
Call SHOWMSG("test 2")
On that one,if global variable is equal or bigger than 9,test1 message appear.if not,test2 appear as message.as you see,SHOWMSG make a message appear,place the message on its front beetween ("").

Posted: 11 Oct 2016, 6:53
by Shadowblitz16
@Alvespires
see what I thought you could do is make internal local and global variables and be able to skip/not list variables in the SMBX editor
that is one thing it does not tell you

another thing it does not tell you is you can't use negative operators just anywhere in your expresion

there is a lot the help file does not tell you and I think there needs to be a in depth documentation and video tutorial series on it

right now I don't even know how to do basic speed, friction and animation

Posted: 11 Oct 2016, 20:31
by ctrl_void
Are there more complex stuff, like while, switch, or array?

Posted: 12 Oct 2016, 1:33
by Shadowblitz16
I think you have to unlock them by playing the hidden minigames

Posted: 12 Oct 2016, 4:08
by ctrl_void
But stuff like functions, structs, arrays, they are all here, right?

Bonus question: is it possible to implement a pseudo object orientation in Teascript, like we can implement in Lua?

Posted: 13 Oct 2016, 0:56
by Lx Xzit
Prado wrote:Are there more complex stuff, like while, switch, or array?
Arrays are unlockable through a minigame (I wish they was by default) but don't worry, Yoshi021 already recorded a video beating the minigame so if you want unlock the arrays it only will take 10 minutes of your time if 5438A38A is reading this I really hope he don't modify the minigame

Regarding the switches, it's very easy to do, you just need to make a global variable and add few lines of codes.
viewtopic.php?f=66&t=1251&p=8517#p8517

Posted: 13 Oct 2016, 3:56
by Yoshi021
JDM also made scripts that replicate arrays without using an array
viewtopic.php?p=7755#p7755

btw, link to the video
https://www.youtube.com/watch?v=6oN9WPf8HFE

Posted: 13 Oct 2016, 13:21
by ctrl_void
I read the document "scripting help" in the SMBX directory and I think that there's everything needed, considering that arrays can be unlocked in a minigame.