Blockland Forums > Suggestions & Requests

ChangeToFavoriteColor + SetFavoriteColor

Pages: (1/1)

Peejster:

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.

MARBLE MAN:

okay!

here!
https://www.dropbox.com/s/4ek10pwyb62qckp/Event_mFavoriteColor.zip?dl=1

Peejster:


--- Quote from: MARBLE MAN on December 21, 2013, 11:54:22 PM ---okay!

here!
https://www.dropbox.com/s/4ek10pwyb62qckp/Event_mFavoriteColor.zip?dl=1

--- End quote ---

Well.
Thanks for the speedy response.

Gen. Hothauser:

Uh what.  Did you do the following:

Request 1

--- Code: ---[OnActivate] [Brick] [VCE_ModVariable] [colorid] [Set] [<var:cl:FavoriteColor>]

--- End code ---

Request 2

--- Code: ---[OnActivate] [Client] [VCE_ModVariable] [FavoriteColor] [set] [<var:br:colorid>]

--- End code ---

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

Peejster:


--- Quote from: Gen. Hothauser on December 22, 2013, 05:35:59 PM ---Uh what.  Did you do the following:

Request 1

--- Code: ---[OnActivate] [Brick] [VCE_ModVariable] [colorid] [Set] [<var:cl:FavoriteColor>]

--- End code ---

Request 2

--- Code: ---[OnActivate] [Client] [VCE_ModVariable] [FavoriteColor] [set] [<var:br:colorid>]

--- End code ---

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

--- End quote ---
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.

Pages: (1/1)

Go to full version