the stop this script block will atatch to a script and u will b able to stop another one
Offline
This has been suggested, and I like it.
Offline
EPICPIKAGUY wrote:
the stop this script block will atatch to a script and u will b able to stop another one
There is, at the bottom of the control pallete:
[blocks]
<stop script>
and
<stop all>
[/blocks]
Offline
DigiTechs wrote:
EPICPIKAGUY wrote:
the stop this script block will atatch to a script and u will b able to stop another one
There is, at the bottom of the control pallete:
[blocks]
<stop script>
and
<stop all>
[/blocks]
no what he means is to stop another script instead of this one.
Offline
You can use a variable.
WhenGreenFlagClicked:
set [variable v] to 0.
forever if <condition> {
set [variable v] to 1}
WhenGreenFlagClicked:
wait until <variable = 0>.
forever if <variable = 1> {
stop script}
Also, you would have to name every script. This is a good idea, but we need to carefully consider how it would be implemented.
Offline
Just have a variable change from 0 to 1, and when the other script senses the change, it stops.
EDIT: Ninja'd.
Last edited by TheBlueRocky (2011-08-29 17:29:33)
Offline