[Solved]Stopping Scripts

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

kitkat F
Topic author, Marquis
Marquis
Avatar
kitkat F
Topic author, Marquis
Marquis
Age: 18
Reputation: 28
Posts: 191
Joined: 15 May 2016
Location: Mementos

Post #1by kitkat » 5 Jul 2016, 22:16

Well, is there any way to stop them? :SOS:

Yoshi021 M
Moderator
Moderator
Avatar
Yoshi021 M
Moderator
Moderator
Age: 22
Reputation: 170
Posts: 693
Joined: 15 Feb 2016
Location: Yoshi's Island

Post #2by Yoshi021 » 5 Jul 2016, 22:22

What do you mean by stopping?
Links
ImageImageImage
Image
Image
"Going to University is FUN!" :pardon:

kitkat F
Topic author, Marquis
Marquis
Avatar
kitkat F
Topic author, Marquis
Marquis
Age: 18
Reputation: 28
Posts: 191
Joined: 15 May 2016
Location: Mementos

Post #3by kitkat » 5 Jul 2016, 22:26

Like stop running a running script.

Yoshi021 M
Moderator
Moderator
Avatar
Yoshi021 M
Moderator
Moderator
Age: 22
Reputation: 170
Posts: 693
Joined: 15 Feb 2016
Location: Yoshi's Island

Post #4by Yoshi021 » 5 Jul 2016, 22:36

Can you show me what the script look like so I can (try to) help.
Links
ImageImageImage
Image
Image
"Going to University is FUN!" :pardon:

kitkat F
Topic author, Marquis
Marquis
Avatar
kitkat F
Topic author, Marquis
Marquis
Age: 18
Reputation: 28
Posts: 191
Joined: 15 May 2016
Location: Mementos

Post #5by kitkat » 5 Jul 2016, 22:49

Code: Select all

sysval(enablelighting) = 1
do
val(var) = val(var) + 0.01
char(1).brightness = 140 + 40 * sin(val(var))
call sleep(1)
loop

Lx Xzit M
Moderator
Moderator
Avatar
Lx Xzit M
Moderator
Moderator
Reputation: 402
Posts: 757
Joined: 9 Nov 2015
Website

Post #6by Lx Xzit » 5 Jul 2016, 23:02

Ah, you wanted disable the lighting. Do this:
Make a new script and add this code:

Code: Select all

sysval(enablelighting) = 0


Make a new event that triggers this script. By last, make something call the event when you want remove the lighting (Did I explain correctly?)
VISIT MY YOUTUBE CHANNEL! LX XZIT
Join our 38A Discord server!

Image

kitkat F
Topic author, Marquis
Marquis
Avatar
kitkat F
Topic author, Marquis
Marquis
Age: 18
Reputation: 28
Posts: 191
Joined: 15 May 2016
Location: Mementos

Post #7by kitkat » 5 Jul 2016, 23:21

DarkMecha wrote:(Did I explain correctly?)
Yes, you did, and thanks. :clapping:


Return to “TeaScript”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest