Blockland Forums > Help
[VCE] How to make events " Check the rank and print" ?
<< < (2/2)
kimawho:
punction X --> function
sry...
Dglider:
I got a little paranoid over an error so this:
Onvariabletrue > Lane3_Rank > vce_ModVariable Brick printcount add .01

Isn't really needed, I don't think.  But you can't edit posts in the help topic, and it won't hurt anything, so I left it alone.

1 : Yes printcount is the variable's name.  If you were to use it in an ifVariable or ifValue sort of situation you would express it as <var:br:printcount> or <var:nb_Lane#_Rank:printcount>

2 : It depends on where the event is coming from.  So, if the variable is on the current brick you can use br or nb_name.  If it's in another brick use nb_name.  So the following cases should work(if they don't I need to do alot of checking up on my VCE skills):

Brick_A
Brick_B

Brick_A is checking Brick B's colorid.
Brick_B is checking its own colorid.

Brick A

OnActivate > self > vce_ifValue <var:nb_Brick_B:colorid> == 0 [4 4]
OnActivate > Brick_B > vce_ifValue <var:br:colorid> == 0  [9 9]
OnActivate > Brick_B > vce_ifValue <var:nb_Brick_B:colorid> == 0 [10 10]
OnVariableTrue > Client > ChatMessage <color:FFFFFF>Brick A Test1 Success!
[delay 1000] OnVariableTrue > self > spawnexplosion tank shell [slider 2.000]

Brick B
onActivate > Brick_B > vce_ifValue <var:br:colorid> == 0  [5 5]
OnActivate > self > vce_ifValue <var:nb_Brick_B:colorid> == 0 [6 6]
OnActivate > self > vce_ifValue <var:br:colorid> == 0 [7 7]
OnActivate > Brick_B > vce_ifValue <var:br:colorid> == 0 [8 8]
OnActivate > Brick_A > vce_ifValue <var:nb_Brick_B:colorid> == 0 [4 4]
OnVariableTrue > Client > ChatMessage <color:FFFFFF>Brick B Test1 Success!
OnVariableTrue > Client > ChatMessage <color:FFFFFF>Brick B Test2 Success!
OnVariableTrue > Client > ChatMessage <color:FFFFFF>Brick B Test3 Success!
OnVariableTrue > Client > ChatMessage <color:FFFFFF>Brick B Test4 Success!
OnVariableTrue > Client > ChatMessage <color:FFFFFF>Brick A to Brick B Test2 Success!
OnVariableTrue > Client > ChatMessage <color:FFFFFF>Brick A to Brick B Test3 Success!

Please note for any of these to work the color of the brick must be 0.  That's the color on the upperleft corner of the color palette.

You may have noticed that Brick A only has two onvariabletrue on it.  That is because if you can only get a response from the brick you're calling the ifValue on.  So, since the second two ifValue's were called on Brick_B, that's where the the response must be made.

Brick_B is just flipping and asking itself the same question for the first four ifValues, but on the fifth, it asks Brick_A a question about Brick_B.  And Brick_A answers by exploding.  Cause why not.


Hopefully that explains some stuff(and hopefully I got it all right).  I'm thinking about writing a VCE tutorial.  So people asking questions like this is a big help.
kimawho:
in b bricks event : XXX > B brick > if <var:br:~~> = XXX > self > if <var:br:~~>....i understand it.

thanks and

until now I didn't understand Target category's role when 'VCE if' was activate.

your teaching "~it asks Brick_A a question about Brick_B.  And Brick_A answers by exploding."

Target(brick A) not also just target of question, it also do it(or activate something) resultant answer. Eureka!!!

your answer is really really help to me

thank you again.~
kimawho:
i mean "Target do(activate)" is  do or pass sequance by order(ex[4 4])

anyway i said ALLLLLLL RIGHT~
Navigation
Message Index
Previous page

Go to full version