Please check if my script is right.

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

Alvespires M
Topic author, Count
Count
Alvespires M
Topic author, Count
Count
Age: 22
Reputation: 17
Posts: 228
Joined: 20 Aug 2016
Location: Koopa Troopa Beach

Post #1by Alvespires » 7 Jan 2017, 0:57

Is those scripts right?

To know if the player is stopped (Not Walking)

Code: Select all

Char(1).Xsp
If =0 then
Do Something
End If


To Know if it's Walking=

Code: Select all

Char(1).Xsp
If <>0 then
Do Something
End If


Are they?
Not really up to it.

Erwill M
Count
Count
Avatar
Erwill M
Count
Count
Age: 24
Reputation: 189
Posts: 295
Joined: 29 Nov 2015

Post #2by Erwill » 7 Jan 2017, 1:00

The value which is conditionned must be before the = like that :

Code: Select all

If Char(1).Xsp=0 then
Do Something
End If

Alvespires M
Topic author, Count
Count
Alvespires M
Topic author, Count
Count
Age: 22
Reputation: 17
Posts: 228
Joined: 20 Aug 2016
Location: Koopa Troopa Beach

Post #3by Alvespires » 7 Jan 2017, 1:03

Catskart wrote:The value which is conditionned must be before the = like that :

Code: Select all

If Char(1).Xsp=0 then
Do Something
End If
Thanks,but...I wasn't refering to it's structure,I was to if they will do whatever they're meant to.
Not really up to it.

Erwill M
Count
Count
Avatar
Erwill M
Count
Count
Age: 24
Reputation: 189
Posts: 295
Joined: 29 Nov 2015

Post #4by Erwill » 7 Jan 2017, 1:26

Alvespires wrote:
Catskart wrote:The value which is conditionned must be before the = like that :

Code: Select all

If Char(1).Xsp=0 then
Do Something
End If
Thanks,but...I wasn't refering to it's structure,I was to if they will do whatever they're meant to.


Ah, Yes, they're right.


Return to “TeaScript”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest