Welcome to the Mod Share forums.
You are not logged in.
Pages: 1
Since this is a Scratch-related site, LS and I thought it would be useful to add forum blocks.
So, I spent this morning re-writing the plugin so it would work here (it is designed for the HTML4-based Scratch forums, not these XHTML-based forums).
Anyway, it now works!
And even better, we are adding functionality for other mods in it. Currently, it supports most Insanity blocks.
We really do not like blockspamming. Only use this plugin if demonstrating a script. Anything else will be removed. If you want to play around with it, use the sticky in the scripting forum or use the preview button.
Here, look:
[scratchblocks]
when <(mouse x) = [1]> is true
move (10) steps forwards
while <(mouse x) < [100]>
point towards [mouse pointer v]
move (3) steps forwards
end
turn around
info dialog [Mouse moved somewhere] and wait
stop all and press gf
when gf clicked
ask [What's your name?] and wait
if <(answer) contains [Jacob]>
info dialog [You are cool, like the guy who implemented this plugin] and wait //Aren't I cool?
end
previous costume
say [Scripts in your posts, with Insanity functionality (and soon Bingo)] for [3] secs
flip horizontal
stop all
[/scratchblocks]
produces...
[scratchblocks]
when <(mouse x) = [1]> is true
move (10) steps forwards
while <(mouse x) < [100]>
point towards [mouse pointer v]
move (3) steps forwards
end
turn around
info dialog [Mouse moved somewhere] and wait
stop all and press gf
when gf clicked
ask [What's your name?] and wait
if <(answer) contains [Jacob]>
info dialog [You are cool, like the guy who implemented this plugin] and wait //Aren't I cool?
end
previous costume
say [Scripts in your posts, with Insanity functionality (and soon Bingo)] for [3] secs
flip horizontal
stop all
[/scratchblocks]
Last edited by jvvg (2012-11-02 22:00:53)
Offline
I saw the when <> true and it reminded me why I don't include it in any of my mods. It is because you can do: when <something that always reports true> is true, and then the script will not react to the stop sign or anything, and it could be doing malicious activity.
Offline
it's a little messy.
Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa! Stop Cispa!
Offline
One other thing:
[scratchblocks]
when gf clicked
forever
if <(post) contains (blockspam)> //if you need to test out blocks, please use the preview button
delete post
warn user through notifications
if <(user's number of notifications for block spam) > [3 or so]>
ban (poster) for [a few days v] because of [spamming v]
end
end
end
[/scratchblocks]
Offline
The custom hat block there is a little buggy.
Offline
[scratchblocks]when gf clicked
forever
if <(post) contains (blockspam)> //if you need to test out blocks, please use the preview button
delete post
warn user through notifications
if <(user's number of notifications for block spam) > [3 or so]>
ban (poster) for [a few days v] because of [spamming v]
end
end
end
[/scratchblocks]
Did it work?
Offline
Ah yay...
[scratchblocks]
when gf clicked
say [Thanks, jvvg!]
stop all
[/scratchblocks]
Offline
I saw the when <> true and it reminded me why I don't include it in any of my mods. It is because you can do: when <something that always reports true> is true, and then the script will not react to the stop sign or anything, and it could be doing malicious activity.
Then edit it so it can't go on forever.
the above post has been found that the following
o There might be a typo
o I am awesome
o You are awesome
Offline
[scratchblocks]
when gf clicked
say [TESTING!] for (2) secs
clone me
[/scratchblocks]
[scratchblocks]
when Sprite1 created
say [Figured out which mod this is in?] for (4) secs
say [Panther! (also jvvg, you forgot panther cloning blocks!)]
[/scratchblocks]
the above post has been found that the following
o There might be a typo
o I am awesome
o You are awesome
Offline
[scratchblocks]
when gf clicked
say [TESTING!] for (2) secs
clone me
[/scratchblocks]
[scratchblocks]
when Sprite1 created
say [Figured out which mod this is in?] for (4) secs
say [Panther! (also jvvg, you forgot panther cloning blocks!)]
[/scratchblocks]
[scratchblocks]
say[go to]//http://modshare.org/forums/viewtopic.php?id=205
and[post shcratchblocks there]
[/scratchblocks]
Last edited by dvd4 (2013-03-04 22:26:57)
R.I.P scratch
Offline
[scratchblocks]
when <(mouse x) = [1]> is true
move (10) steps forwards
while <(mouse x) < [100]>
point towards [mouse pointer v]
move (3) steps forwards
end
turn around
info dialog [Mouse moved somewhere] and wait
stop all and press gf
when gf clicked
ask [What's your name?] and wait
if <(answer) contains [Jacob]>
info dialog [You are cool, like the guy who implemented this plugin] and wait //Aren't I cool?
end
previous costume
say [Scripts in your posts, with Insanity functionality (and soon Bingo)] for [3] secs
flip horizontal
stop all
[/scratchblocks]
Offline
[scratchblocks]
when <(mouse x) = [1]> is true
move (10) steps forwards
while <(mouse x) < [100]>
point towards [mouse pointer v]
move (3) steps forwards
end
turn around
info dialog [Mouse moved somewhere] and wait
stop all and press gfwhen gf clicked
ask [What's your name?] and wait
if <(answer) contains [Jacob]>
info dialog [You are cool, like the guy who implemented this plugin] and wait //Aren't I cool?
end
previous costume
say [Scripts in your posts, with Insanity functionality (and soon Bingo)] for [3] secs
flip horizontal
stop all
[/scratchblocks]
Hrm.... They don't work...
Offline
They should be called Modblocks, this site is ModShare!
HTML FAIL! But why did I do that?
<div><div><div><div></div></div><div>
Offline
Pages: 1