Author Topic: How do I set a VCE variable to another brick through events  (Read 1231 times)

Lets say I got this brick thats name is "brick" I want to put a variable value 10 on

how do i do this?


you want to add a variable? I think it's:
onActivate (or whatever you use) > target: self > setVariable (???) > then all the stuff involving the variable you wanna add
maybe
I haven't played in a while and it's probably not 100% accurate but it's hopefully close enough for you to understand how to do it

actually it's probably modifyVariable or something, sorry

onActivate > Named Brick [brick_name] > vceModVarible> [Varaible] [Number]

To read the varible from another brick you would do

onActivate > client > centerPrint [<var:nb_brick_name:Varible>]

onActivate > Named Brick [brick_name] > vceModVarible> [Varaible] [Number]

To read the varible from another brick you would do

onActivate > client > centerPrint [<var:nb_brick_name:Varible>]

Dark, say it with me.  Variable

Dark, say it with me.  Variable
Whoops, I always do that on accident. Looks like the auto corrector didn't catch it this time.

onActivate > Named Brick [brick_name] > vceModVarible> [Varaible] [Number]

To read the varible from another brick you would do

onActivate > client > centerPrint [<var:nb_brick_name:Varible>]
Thanks this works, I'll post again if I have any issues