lets see if this works. ////(hi)
Offline
joletole wrote:
lets see if this works. ////(hi)
when i receive [joletole posted v] ask [what were you trying to do? Variable in a comment?or end a comment with /?] and wait // I couldn't put "//" the only purpose of this is [comment v] //because it wouldn't work then...
Last edited by Splodgey (2012-03-16 09:48:23)
Offline
First time trying it...
I hope it works!
Edit: Forgot to add closing tag, woops!
Edit2: Seems like the block script stops working if I put text after it...
when gf clicked forever point towards [mouse-pointer v] move (5) steps end
Last edited by 12_lassy (2012-03-17 10:43:40)
Offline
a1130 wrote:
My early morning routine :
when gf clicked play sound [alarm v] until done go to [dining room] eat [breakfast v] if <(breakfast)=(good)> say (OM NOM NOM this is tasty xD) for (1000) secs else broadcast [puke v]When I receive [puke v] play sound [puke v] say (Eww! disgusting!) for (5) secs
Hehe.
This is mine: (;-;...)
when gf clicked broadcast [morning routine v] end When I receive [morning routine v] forever if <not <(awake?) = [yep]>> repeat until <(awake?) = [yep]> play sound [mother yelling v] end broadcast [WAKE UP v] end end When I receive [WAKE UP v] play sound [grumble v] turn left (180) degrees set [awake? v] to [nope] play sound [snore v] broadcast [morning routine v]
Offline
when gf clicked if <(post)=(1)> say [I haven't had a chance to test these, let's see how it works!]
Offline
When gf clicked Say[help! I'm trapped in this box in this script!]
Last edited by turkey3 (2012-03-17 12:30:18)
Offline
when I receive [muppetds in jail v] say [set him free!!!] for (3) secs set [muppetds v] to (freedom) destroy [everything involved with muppetds going to jail xP v] rebuild [everything involved with muppetds escaping v]
Offline
Splodgey wrote:
People could just click preview to test around, but this will be good for the people who didn't think about that.
That's what i do, the preview thing. that way i don't get embaressed by doing a fail scratchblock attempt.
Offline
AgentRoop wrote:
Splodgey wrote:
People could just click preview to test around, but this will be good for the people who didn't think about that.
That's what i do, the preview thing. that way i don't get embaressed by doing a fail scratchblock attempt.
when i receive [AgentRoop posted v] say [Your lucky I can't be bothered to write an arresting script.] for (2) secs say [It is now a criminal offence not to speak in scratchblocks in this thread.] for (3) secs
Offline
when I receive [peace talks v] say [What are we going to talk about?] for [5] secs
Last edited by a1130 (2012-03-19 15:41:31)
Offline
a1130 wrote:
when I receive [peace talks v] say [What are we going to talk about?] for [5] secs
when I receive [peace talks v] listen to [a1130 v] [shrug v] for (0.5) secs broadcast [respond v]
Offline
When I receive [TEH FOOD IS READY v] say [omnomnomnomnomnom] broadcast [eat v]
Offline
funelephant wrote:
When I receive [TEH FOOD IS READY v] say [omnomnomnomnomnom] broadcast [eat v]
(size of meal) when i receive [eat v] //size of meal is 400 (g) pull out [chair v] sit on [chair v] grab [cutlery v] repeat until <(size of meal) = [0]> eat a bit of food change [size of meal v] by [-1] change [Weight] by [1] if <taste buds want more?> say [Yum!] else say [eeewww!] end end if <(Weight) > (((Height) / [3]) * [1000])> //not precise... Height in cm set [Health of Weight v] to [Overweight] goto [outside v] repeat until <(Weight) < (((Height) / [3.5]) * [1000])> run around end else if <(Weight) > (((Height) / [4]) * [1000]> set [Health of Weight v] to [Underweight] broadcast [make food v] end end when i receive [make food v] repeat until <(size of meal) > (pick random (399) to (pick random (600) to (1200)))> grab [ingredients v] change [size of meal v] by [1] end broadcast [TEH FOOD IS READY v]
Last edited by Splodgey (2012-03-20 07:44:09)
Offline
mikemm27 wrote:
Just to try
glide ((bdis)/(bsp)) secs to x: ((x position)- [5]) y: (([x position v] of [Sprite1 v]) * [5]) wait (wt) secs if <(a) > [10]> go to x: (XX) y: (3) else point in direction (90) end
scripts [fixed v] by [Splodgey v]
Last edited by Splodgey (2012-03-21 06:35:05)
Offline
Thank you for your corrections.
One more question: apart from the Preview feature of this
form, how is it possible to check the correctness of a scratchblock
script? Is any off-line syntax checker available, or a similar feature?
Greetings, mike.
Splodgey wrote:
mikemm27 wrote:
Just to try
glide ((bdis)/(bsp)) secs to x: ((x position)- [5]) y: (([x position v] of [Sprite1 v]) * [5]) wait (wt) secs if <(a) > [10]> go to x: (XX) y: (3) else point in direction (90) endscripts [fixed v] by [Splodgey v]
Offline
Again help, please.
glide (2) secs to x: ([x position v] of (spriteName)) y: ([y position v] of [(spriteName) v]) endHow can I obtain the correct sensing command "<x,y position> of <sprite>" when the
Offline
Splodgey wrote:
rdococ wrote:
Splodgey wrote:
when i receive [:/ v] say [That's not talking - don't bother, police... : /] when i receive [weapons deployed v] [sigh deeply v] for (6) secs destroy [all v] [weapons v] start [peace talks v]when I receive [peace talks v] say [Wait... I don't understand what you mean by destroy [all v] [weapons v]...]]
when i receive [peace talks v]
listen to [rdococ v]
say [I destroyed all the weapons.]
ask [What is there not to understand?] and wait
say [argh! Le bug!]
when I receive [What is there not to understand? v] ask [Well, who's weapons was destroyed? :P] and wait say [Wait, the bug is that the scratchblocks end tag isn't there!]
Last edited by rdococ (2012-03-21 11:54:20)
Offline
coolhogs wrote:
Coolhogs Making Projects since 2011
Splodgey Scratching since 2010 //look to your left. I'm Confused... :S
Offline
Splodgey wrote:
coolhogs wrote:
Coolhogs Making Projects since 2011Splodgey Scratching since 2010 //look to your left. I'm Confused... :S
ask [Please answer my question, in the last post I posted.] and wait say [No, you didn't end the ScratchBlocks syntax...] for <<atleast (9000) years> years to seconds> secs
Last edited by rdococ (2012-03-21 11:52:53)
Offline
rdococ wrote:
Splodgey wrote:
rdococ wrote:
when I receive [peace talks v] say [Wait... I don't understand what you mean by destroy [all v] [weapons v]...]] [/scratchblock]when i receive [peace talks v] listen to [rdococ v] say [I destroyed all the weapons.] ask [What is there not to understand?] and wait say [argh! Le bug!][/quote]when I receive [What is there not to understand? v] ask [Well, who's weapons was destroyed? :P] and wait
when i receive [rdococ's post v] say [Read the post I quoted? That might help...]
Offline
Splodgey wrote:
rdococ wrote:
Splodgey wrote:
when i receive [peace talks v]
listen to [rdococ v]
say [I destroyed all the weapons.]
ask [What is there not to understand?] and wait
say [argh! Le bug!]when I receive [What is there not to understand? v] ask [Well, who's weapons was destroyed? :P] and waitwhen i receive [rdococ's post v] say [Read the post I quoted? That might help...]
when I receive [What is there not to understand? v] ask [That doesn't say who's weapons got destroyed.] and wait
Offline
rdococ wrote:
Splodgey wrote:
coolhogs wrote:
Coolhogs Making Projects since 2011Splodgey Scratching since 2010 //look to your left. I'm Confused... :Sask [Please answer my question, in the last post I posted.] and wait say [No, you didn't end the ScratchBlocks syntax...] for <<atleast (9000) years> years to seconds> secs
when i receive [impatience... v] say [You posted halfway through me posting (posting from the Wii)] say [and I'm pretty sure I did end the syntax... I recall editing it to end it...]
Last edited by Splodgey (2012-03-21 12:59:20)
Offline