1
Help / Trashcan brick?
« on: February 17, 2014, 02:03:59 AM »
Im pretty sure there was a trash can brick, but for some reason i can't find it :/
Can someone help me out?
Can someone help me out?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.









X 33ms onActivate Self fireRelay
X 33ms onRelay Self fireRelay
X 0ms onRelay -do stuff-
A relay is fired upon itself, which triggers onRelay. Basic loop with a minimum 33ms delay.X 0ms onActivate Self VCE_ifVariable -var- == -anything- 1 99
X 0ms onVariableFalse Self VCE_ifVariable -var- == -anything- 1 99
X 0ms onVariableFalse -do stuff-
As long as -var- is not set -anything- it should return false, which triggers the same comparison again. Probably the fastest and most efficient one; easily canceled if -var- becomes -anything-.X 0ms onActivate Self VCE_modVariable -var- Set -anything-
X 0ms onVariableUpdate Self VCE_modVariable -var- Set -anything-
X 0ms onVariableUpdate -do stuff-
A VCE variable is updated, which triggers onVariableUpdate. Not useful if you want to use VCE_modVariable again.X 0ms onActivate Self VCE_stateFunction -name- 2 99
X 0ms onActivate Self VCE_callFunction -name-
X 0ms onVariableFunction Self VCE_callFunction -name-
X 0ms onVariableFunction -do stuff-
You have to state and call the function, which triggers onVariableUpdate. Stating required and sometimes functions can be unwieldy (for me at least).X 0ms onActivate Self spawnProjectile 0 0 3 Arrow
X 0ms onProjectileHit Self spawnProjectile 0 0 3 Arrow
X 0ms onProjectileHit -do stuff-
A projectile goes up and comes back down, which triggers onProjectileHit. Also known as the "Why are you hitting yourself?" Loop. Slow and ineffective. Easily stopped by something getting in the way.X 33ms onActivate Self fireRelayDown
X 0ms onRelay Self fireRelayDown
X 0ms onRelay -do stuff-
X 0ms onRelay Self fireRelayUp
Two bricks; one on top of the other. Brick fires down, brick fires up.X 0ms onActivate Self spawnProjectile 0 5 0 Pong
X 0ms onProjectileHit Self spawnProjectile 0 5 0 Pong
X 0ms onProjectileHit -do stuff-
X 0ms onProjectileHit Self spawnProjectile 0 -5 0 Pong
Two bricks; one north of the other. Brick shoots one; it shoots back.

Whirlwind: ok yeah either this is real or a REALLY good attempt
---
Whirlwind: i kinda belive him
spartanXI: yo
Whirlwind: he got the build trust thing too
---
Whirlwind: badspot have mercy on marble
---
Whirlwind: spare him!
Tlp300: if that badspot is real, gg.
MARBLE MAN: Auth failed
Whirlwind: tlp hes the real deal
MARBLE MAN: He is
MARBLE MAN: :c
Whirlwind: even i was sketchy at first
---
Whirlwind: IT WAS ALL A ROUSE
MARBLE MAN: I am seriously
MARBLE MAN: :C
MARBLE MAN: Scared
Whirlwind: loljk



onActivate - Self - VCE_modVariable - colorid - Set - 0This will set the brick color to the first color in the server's color setonActivate - Self - VCE_modVariable - number - Add - 1
onActivate - Self - VCE_modVariable - player<var:br:number> - Set - <var:cl:name>
This one will set the player's name to a different variable every click. Ex. The first click will set the player's name to variable "player1." The second will set it to "player2." etc.0 [0] onActivate - Self - VCE_modVariable - timer - Set - 60
1 [0] onActivate - Self - VCE_ifVariable - timer - > - 0 [2 4]
2 [0] onVariableTrue - Self - VCE_modVariable - timer - Subtract - 1
3 [1000] onVariableTrue - Self - VCE_ifVariable - timer - > - 0 [2 4]
4 [0] onVariableFalse - Self - playSound - Beep_No.wav
This makes the variable "timer" 60. Then checks if the var is greater than 0. It is true, so "timer" would subtract 1, becoming 59. Then, after 1000ms (or 1 second), it checks it again, starting the loop over again, until eventually reading false, which ends the loop and plays a buzzer sound.0 [0] onActivate - Self - VCE_modVariable - data - Set - "orange apple banana grape"
1 [0] onActivate - Self - VCE_modVariable - temp - Set - <var:br:data>
2 [0] onActivate - Self - VCE_modVariable - temp - Word - 1
3 [0] onActivate - Client - centerPrint - <var:br:temp>
I bet just by reading the code, you can figure out what it will display.0 [0] onActivate - Self - VCE_modVariable - data - Set - " orange apple banana grape"
1 [0] onActivate - Self - VCE_modVariable - number - Add - 1
2 [0] onActivate - Self - VCE_modVariable - temp - Set - <var:br:data>
3 [0] onActivate - Self - VCE_modVariable - temp - Word - <var:br:number>
4 [0] onActivate - Client - centerPrint - <var:br:temp>
Every press will read you the next item in the database.










