Author Topic: ChangeToFavoriteColor + SetFavoriteColor  (Read 581 times)

I tried to get this to work with VCE, but it just doesn't seem to work right for some reason.

Basically, I'd like two events that do the following.

ChangeToFavoriteColor
A event for bricks that change's the brick color to match one set as the "favorite color".

SetFavoriteColor
An event for clients that sets their favorite color to the color of the brick that triggered the event.

« Last Edit: December 21, 2013, 11:57:47 PM by MARBLE MAN »


Uh what.  Did you do the following:

Request 1
Code: [Select]
[OnActivate] [Brick] [VCE_ModVariable] [colorid] [Set] [<var:cl:FavoriteColor>]

Request 2
Code: [Select]
[OnActivate] [Client] [VCE_ModVariable] [FavoriteColor] [set] [<var:br:colorid>]

This does exactly what you wanted.  <var:cl:FavoriteColor> has to be set to a value before it can be used in Request 1.

Uh what.  Did you do the following:

Request 1
Code: [Select]
[OnActivate] [Brick] [VCE_ModVariable] [colorid] [Set] [<var:cl:FavoriteColor>]

Request 2
Code: [Select]
[OnActivate] [Client] [VCE_ModVariable] [FavoriteColor] [set] [<var:br:colorid>]

This does exactly what you wanted.  <var:cl:FavoriteColor> has to be set to a value before it can be used in Request 1.
Not particularly. I tried to use an individual event for each color, and it started acting as if every "if" statement was true.
I was gone for a really long time.