This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-04-17 20:30:26

thegombafan
New Scratcher
Registered: 2011-03-25
Posts: 20

how to make a mind-controll block!!

NOTE: this does not work with scrach, or panther only on BYOB
-------------------------------------------------------------------------------------------------------------------------
1. goto the folder were you installed BYOB,click BYOB develoment, byob should load up, shift click the edit menu, hit "turnfilscreenoff"
2. right click anywhere in the white space that appears.
3. click open then browser
4 goto: scrach-objects/scriptablescrachmorph/class/block specs/blockSpecs
5. instead of theis code:

Code:

 blockSpecs
    | t1 |
    t1 _ #('control' ('when %m clicked' #S #-)  ('when %k key pressed' #K #-) ('when %m clicked' #M #-) #- ('wait %n secs' #t #wait:elapsed:from: 1) #- ('forever' #c #doForever) ('repeat %n' #c #doRepeat 10) #- ('broadcast %e' #- #broadcast:) ('broadcast %e and wait' #s #doBroadcastAndWait) ('when I receive %e' #E #-) #- ('forever if %b' #c #doForeverIf) ('if %b' #c #doIf) ('if %b' #c #doIfElse) ('wait until %b' #s #doWaitUntil) ('repeat until %b' #c #doUntil) #- ('stop script' #s #doReturn) ('stop all' #- #stopAll) 'operators' ('%n + %n' #r #+ #- #-) ('%n - %n' #r #- #- #-) ('%n * %n' #r #* #- #-) ('%n / %n' #r #/ #- #-) #- ('pick random %n to %n' #r #randomFrom:to: 1 10) #- ('%s < %s' #b #< '' '') ('%s = %s' #b #= '' '') ('%s > %s' #b #> '' '') #- ('%b and %b' #b #&) ('%b or %b' #b #|) ('not %b' #b #not) #- ('join %s %s' #r #concatenate:with: 'hello ' 'world') ('letter %n of %s' #r #letter:of: 1 'world') ('length of %s' #r #stringLength: 'world') #- ('%n mod %n' #r #\\ #- #-) ('round %n' #r #rounded #-) #- ('%f of %n' #r #computeFunction:of: 'sqrt' 10) 'sound' ('play sound %S' #- #playSound:) ('play sound %S until done' #s #doPlaySoundAndWait) ('stop all sounds' #- #stopAllSounds) #- ('play drum %D for %n beats' #t #drum:duration:elapsed:from: 48 0.2) ('rest for %n beats' #t #rest:elapsed:from: 0.2) #- ('play note %N for %n beats' #t #noteOn:duration:elapsed:from: 60 0.5) ('set instrument to %I' #- #midiInstrument: 1) #- ('change volume by %n' #- #changeVolumeBy: -10) ('set volume to %n%' #- #setVolumeTo: 100) ('volume' #r #volume) #- ('change tempo by %n' #- #changeTempoBy: 20) ('set tempo to %n bpm' #- #setTempoTo: 60) ('tempo' #r #tempo) 'motor' ('motor on for %n secs' #t #motorOnFor:elapsed:from: 1) ('motor on' #- #allMotorsOn) ('motor off' #- #allMotorsOff) ('motor power %n' #- #startMotorPower: 100) ('motor direction %W' #- #setMotorDirection: 'this way') 'variables' ('show variable %v' #- #showVariable:) ('hide variable %v' #- #hideVariable:) 'list' ('add %s to %L' #- #append:toList: 'thing') #- ('delete %y of %L' #- #deleteLine:ofList: 1) ('insert %s at %i of %L' #- #insert:at:ofList: 'thing' 1) ('replace item %i of %L with %s' #- #setLine:ofList:to: 1 'list' 'thing') #- ('item %i of %L' #r #getLine:ofList: 1) ('length of %L' #r #lineCountOfList:) ('%L contains %s' #b #list:contains: 'list' 'thing') )
    ^ t1 , self obsoleteBlockSpecs

put:

Code:

 blockSpecs
    | t1 |
    t1 _ #('control' ('when %m clicked' #S #-)  (' mind control %m to do script/block:' #c #doTellSpriteTo) ('when %k key pressed' #K #-) ('when %m clicked' #M #-) #- ('wait %n secs' #t #wait:elapsed:from: 1) #- ('forever' #c #doForever) ('repeat %n' #c #doRepeat 10) #- ('broadcast %e' #- #broadcast:) ('broadcast %e and wait' #s #doBroadcastAndWait) ('when I receive %e' #E #-) #- ('forever if %b' #c #doForeverIf) ('if %b' #c #doIf) ('if %b' #c #doIfElse) ('wait until %b' #s #doWaitUntil) ('repeat until %b' #c #doUntil) #- ('stop script' #s #doReturn) ('stop all' #- #stopAll) 'operators' ('%n + %n' #r #+ #- #-) ('%n - %n' #r #- #- #-) ('%n * %n' #r #* #- #-) ('%n / %n' #r #/ #- #-) #- ('pick random %n to %n' #r #randomFrom:to: 1 10) #- ('%s < %s' #b #< '' '') ('%s = %s' #b #= '' '') ('%s > %s' #b #> '' '') #- ('%b and %b' #b #&) ('%b or %b' #b #|) ('not %b' #b #not) #- ('join %s %s' #r #concatenate:with: 'hello ' 'world') ('letter %n of %s' #r #letter:of: 1 'world') ('length of %s' #r #stringLength: 'world') #- ('%n mod %n' #r #\\ #- #-) ('round %n' #r #rounded #-) #- ('%f of %n' #r #computeFunction:of: 'sqrt' 10) 'sound' ('play sound %S' #- #playSound:) ('play sound %S until done' #s #doPlaySoundAndWait) ('stop all sounds' #- #stopAllSounds) #- ('play drum %D for %n beats' #t #drum:duration:elapsed:from: 48 0.2) ('rest for %n beats' #t #rest:elapsed:from: 0.2) #- ('play note %N for %n beats' #t #noteOn:duration:elapsed:from: 60 0.5) ('set instrument to %I' #- #midiInstrument: 1) #- ('change volume by %n' #- #changeVolumeBy: -10) ('set volume to %n%' #- #setVolumeTo: 100) ('volume' #r #volume) #- ('change tempo by %n' #- #changeTempoBy: 20) ('set tempo to %n bpm' #- #setTempoTo: 60) ('tempo' #r #tempo) 'motor' ('motor on for %n secs' #t #motorOnFor:elapsed:from: 1) ('motor on' #- #allMotorsOn) ('motor off' #- #allMotorsOff) ('motor power %n' #- #startMotorPower: 100) ('motor direction %W' #- #setMotorDirection: 'this way') 'variables' ('show variable %v' #- #showVariable:) ('hide variable %v' #- #hideVariable:) 'list' ('add %s to %L' #- #append:toList: 'thing') #- ('delete %y of %L' #- #deleteLine:ofList: 1) ('insert %s at %i of %L' #- #insert:at:ofList: 'thing' 1) ('replace item %i of %L with %s' #- #setLine:ofList:to: 1 'list' 'thing') #- ('item %i of %L' #r #getLine:ofList: 1) ('length of %L' #r #lineCountOfList:) ('%L contains %s' #b #list:contains: 'list' 'thing') ).
    ^ t1 , self obsoleteBlockSpecs

after you put that in right click anywhere in the code box and hit "acept"
now goto: Scratch-Execution Engine/Scrachprocess/private-special forms
now enter in this code:

Code:

doTellSpriteTo
    | t1 t2 t3 |
    t1 _ stackFrame expression.
    t2 _ stackFrame arguments.
    t2 size = 0
        ifTrue: 
            [t3 _ t1 argumentAt: 1.
            ^ self pushStackFrame: (ScratchStackFrame new expression: t3)].
    self popStackFrame.
    t3 _ t1 fullCopy.
    t3 firstBlockList do: [:t4 | t4 receiver: (ScriptableScratchMorph new coerceSpriteArg: t2 first)].
    self pushStackFrame: (ScratchStackFrame new expression: t3 firstBlockList)

now right click it and hit "acept".close out of the browser.
shift click the edit menu again, hit "turnfillscreenon", then hit "save image for end user" click ok then load byob up. make  2 sprites, make this code: [blocks]
<when green flag clicked>
mind control {sprite2} to do script/block:
<say[ hello]
<end>
[/blocks]
run the script and it shoulld make sprite 2 to say "hello"

Offline

 

#2 2011-04-17 23:20:35

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: how to make a mind-controll block!!

IT WORKS IN SCRATCH! AWESOME! Hey, the RKT devs might want to look at this...  tongue

Offline

 

#3 2011-04-17 23:37:10

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: how to make a mind-controll block!!

scimonster wrote:

IT WORKS IN SCRATCH! AWESOME! Hey, the RKT devs might want to look at this...  tongue

Well, we'll think about it.  However, you have to remember we aim, not to make programming to easy, just to add lacking features of scratch, and compatibility with other programming languages.  While this does seem like a good thing, if you think about it could be accomplished without the block!  Just like, rather than have 'change cursor to'  I am planning on making it 'hide cursor'  & 'show cursor'.  With this you could easily do the exact same as change cursor to, with more effort.  So, you get it?  RKT adds features that really are needed, not make pointless blocks!


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#4 2011-04-17 23:39:03

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: how to make a mind-controll block!!

ssss wrote:

scimonster wrote:

IT WORKS IN SCRATCH! AWESOME! Hey, the RKT devs might want to look at this...  tongue

Well, we'll think about it.  However, you have to remember we aim, not to make programming to easy, just to add lacking features of scratch, and compatibility with other programming languages.  While this does seem like a good thing, if you think about it could be accomplished without the block!  Just like, rather than have 'change cursor to'  I am planning on making it 'hide cursor'  & 'show cursor'.  With this you could easily do the exact same as change cursor to, with more effort.  So, you get it?  RKT adds features that really are needed, not make pointless blocks!

wiki wrote:

To Do Blocks
*    [make {sprite^} do: (C Block, not worked on yet)

Offline

 

#5 2011-04-17 23:40:16

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: how to make a mind-controll block!!

scimonster wrote:

ssss wrote:

scimonster wrote:

IT WORKS IN SCRATCH! AWESOME! Hey, the RKT devs might want to look at this...  tongue

Well, we'll think about it.  However, you have to remember we aim, not to make programming to easy, just to add lacking features of scratch, and compatibility with other programming languages.  While this does seem like a good thing, if you think about it could be accomplished without the block!  Just like, rather than have 'change cursor to'  I am planning on making it 'hide cursor'  & 'show cursor'.  With this you could easily do the exact same as change cursor to, with more effort.  So, you get it?  RKT adds features that really are needed, not make pointless blocks!

wiki wrote:

To Do Blocks
*    [make {sprite^} do: (C Block, not worked on yet)

Sorry, devs have been a bit inactive, and the wiki needs updating!  We also need to make a new website, so...  I'll work on the wiki now!


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#6 2011-04-17 23:56:51

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: how to make a mind-controll block!!

ssss wrote:

scimonster wrote:

ssss wrote:

Well, we'll think about it.  However, you have to remember we aim, not to make programming to easy, just to add lacking features of scratch, and compatibility with other programming languages.  While this does seem like a good thing, if you think about it could be accomplished without the block!  Just like, rather than have 'change cursor to'  I am planning on making it 'hide cursor'  & 'show cursor'.  With this you could easily do the exact same as change cursor to, with more effort.  So, you get it?  RKT adds features that really are needed, not make pointless blocks!

wiki wrote:

To Do Blocks
*    [make {sprite^} do: (C Block, not worked on yet)

Sorry, devs have been a bit inactive, and the wiki needs updating!  We also need to make a new website, so...  I'll work on the wiki now!

Yeah, I haven't seen too much activity on your thread.  hmm
EDIT: 1800TH POST!  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile
[/offtopic]

Last edited by scimonster (2011-04-18 00:00:40)

Offline

 

#7 2011-04-18 00:06:44

jassmine12
New Scratcher
Registered: 2010-08-30
Posts: 5

Re: how to make a mind-controll block!!

ssss wrote:

scimonster wrote:

IT WORKS IN SCRATCH! AWESOME! Hey, the RKT devs might want to look at this...  tongue

Well, we'll think about it.  However, you have to remember we aim, not to make programming to easy, just to add lacking features of scratch, and compatibility with other programming languages.  While this does seem like a good thing, if you think about it could be accomplished without the block!  Just like, rather than have 'change cursor to'  I am planning on making it 'hide cursor'  & 'show cursor'.  With this you could easily do the exact same as change cursor to, with more effort.  So, you get it?  RKT adds features that really are needed, not make pointless blocks!

Well, Its really a nice step taken by you and i really appreciate it. As you said you will think about using this thing also in scratch then this is really good.

Offline

 

#8 2011-04-18 00:12:48

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: how to make a mind-controll block!!

jassmine12 wrote:

ssss wrote:

scimonster wrote:

IT WORKS IN SCRATCH! AWESOME! Hey, the RKT devs might want to look at this...  tongue

Well, we'll think about it.  However, you have to remember we aim, not to make programming to easy, just to add lacking features of scratch, and compatibility with other programming languages.  While this does seem like a good thing, if you think about it could be accomplished without the block!  Just like, rather than have 'change cursor to'  I am planning on making it 'hide cursor'  & 'show cursor'.  With this you could easily do the exact same as change cursor to, with more effort.  So, you get it?  RKT adds features that really are needed, not make pointless blocks!

Well, Its really a nice step taken by you and i really appreciate it. As you said you will think about using this thing also in scratch then this is really good.

Well, i'm not the scratch team, so i can't say to use it in scratch  wink   I'm an RKT dev (well actually, the creator of RKT) and i will think about adding this as an add-on.  if you want to do a mind control in scratch, then i will have to upload a project showing how to do that  wink


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#9 2011-04-18 10:29:29

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

Re: how to make a mind-controll block!!

I love how everyone is going crazy over this guide, but no one payed any attention to my guide which actually works...

Sorry, but this doesn't work with reporters. Example: Telling a sprite to say its x-position will make it say the x-position of the sprite using the block.


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

#10 2011-04-18 10:59:29

Billybob-Mario
Scratcher
Registered: 2008-01-05
Posts: 500+

Re: how to make a mind-controll block!!

He probably got this from Slash. If you're using a block that has a special thing in the ScratchProcess, you need to put it into a BYOB block.

Offline

 

#11 2011-04-18 11:01:22

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: how to make a mind-controll block!!

rubiks_cube_guy238 wrote:

I love how everyone is going crazy over this guide, but no one payed any attention to my guide which actually works...

Sorry, but this doesn't work with reporters. Example: Telling a sprite to say its x-position will make it say the x-position of the sprite using the block.

I did. I was about to point out that you had already made it, then I saw you had done it already.


/* No comment */

Offline

 

#12 2011-04-18 15:37:17

Billybob-Mario
Scratcher
Registered: 2008-01-05
Posts: 500+

Re: how to make a mind-controll block!!

He even took my terminology for it.

Offline

 

#13 2011-04-19 10:01:48

thebuilderdd
Scratcher
Registered: 2008-01-26
Posts: 1000+

Re: how to make a mind-controll block!!

ssss wrote:

scimonster wrote:

IT WORKS IN SCRATCH! AWESOME! Hey, the RKT devs might want to look at this...  tongue

Well, we'll think about it.  However, you have to remember we aim, not to make programming to easy, just to add lacking features of scratch, and compatibility with other programming languages.  While this does seem like a good thing, if you think about it could be accomplished without the block!  Just like, rather than have 'change cursor to'  I am planning on making it 'hide cursor'  & 'show cursor'.  With this you could easily do the exact same as change cursor to, with more effort.  So, you get it?  RKT adds features that really are needed, not make pointless blocks!

I think we should add it.

Offline

 

#14 2011-04-19 16:48:38

thegombafan
New Scratcher
Registered: 2011-03-25
Posts: 20

Re: how to make a mind-controll block!!

scimonster wrote:

IT WORKS IN SCRATCH! AWESOME! Hey, the RKT devs might want to look at this...  tongue

thank you  smile

Offline

 

#15 2011-04-19 17:07:35

celloguy123
Scratcher
Registered: 2009-01-15
Posts: 100+

Re: how to make a mind-controll block!!

thegombafan wrote:

NOTE: this does not work with scrach, or panther only on BYOB

Well, in theory it would work in Scratch and Panther, since BYOB, Scratch, and Panther are all based on the same version of Squeak.  tongue

Last edited by celloguy123 (2011-04-19 18:21:28)


http://internetometer.com/image/33068.png

Offline

 

#16 2011-04-20 00:57:27

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: how to make a mind-controll block!!

celloguy123 wrote:

thegombafan wrote:

NOTE: this does not work with scrach, or panther only on BYOB

Well, in theory it would work in Scratch and Panther, since BYOB, Scratch, and Panther are all based on the same version of Squeak.  tongue

I think they do, I'm using it in Scratch.  smile

Offline

 

#17 2011-04-20 10:04:18

thebuilderdd
Scratcher
Registered: 2008-01-26
Posts: 1000+

Re: how to make a mind-controll block!!

Squeak is giving me errors like declare temp! Help!

Offline

 

#18 2011-07-04 15:48:43

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: how to make a mind-controll block!!

you can easily do this in BYOB 3.1
tell (sprite) to (code[)      Sprite is an object input, code is a c input.
rur ((code)of(sprite))


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#19 2011-07-06 02:41:38

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: how to make a mind-controll block!!

what does it do?


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&amp;display=small

Offline

 

#20 2011-07-06 03:14:31

jalkan
Scratcher
Registered: 2009-05-14
Posts: 25

Re: how to make a mind-controll block!!

why cant you just use broadcasts?

Offline

 

#21 2011-08-27 18:09:48

flashgocrazy
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: how to make a mind-controll block!!

jalkan wrote:

why cant you just use broadcasts?

well, we are talking about modding scratch here, and its much easier


◕‿◕

Offline

 

#22 2011-08-27 18:11:01

flashgocrazy
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: how to make a mind-controll block!!

thebuilderdd wrote:

Squeak is giving me errors like declare temp! Help!

Scratch-Execution Engine/Scrachprocess/private-special forms go there, then insert the code


◕‿◕

Offline

 

#23 2011-08-27 19:40:02

videogame9
Scratcher
Registered: 2008-05-12
Posts: 1000+

Re: how to make a mind-controll block!!

"mind-controll block!!"

Lol.


http://img641.imageshack.us/img641/4118/newvg9logo.png
QUOTE OF THE RIGHT NOW: why are we arguing about dead babies? -videogame9

Offline

 

Board footer