Blockland Forums > Help

Need VCE help

Pages: << < (2/3) > >>

Deathwishez:

This should work:


--- Code: ---[X] 0 [0] onActivate -> Self -> VCE_ifVariable -> [hits] {<=} [0] [1 5]
[X] 1 [0] onVariableTrue -> Self -> disappear -> [5]
[X] 2 [0] onVariableTrue -> Self -> VCE_modVariable -> {Client} [wood] {add} [10]
[X] 3 [0] onVariableTrue -> Client -> chatMessage -> [<color:0000FF>You earned <color:FFFFFF>10<color:00FFFF> wood!]
[X] 4 [0] onVariableTrue -> Self -> VCE_modVariable -> {Brick} [Hits] {set} [0]
[X] 5 [0] onVariableFalse -> Self -> VCE_modVariable -> {Brick} [Hits] {subtract} [1]
[X] 6 [0] onActivate -> Client -> centerPrint -> [<color:FF00FF>Hits<color:FFFFFF>: <var:brick:hits> / 10] [3]
[X] 7 [0] onActivate -> Client -> bottomPrint -> [<color:FFFF00>Wood<color:FFFFFF>: <var:client:wood>] [3]

--- End code ---

That's just what you want straight forward with a little color.

jes00:


--- Quote from: Deathwishez on March 09, 2010, 04:45:36 PM ---This should work:


--- Code: ---[X] 0 [0] onActivate -> Self -> VCE_ifVariable -> [hits] {<=} [0] [1 5]
[X] 1 [0] onVariableTrue -> Self -> disappear -> [5]
[X] 2 [0] onVariableTrue -> Self -> VCE_modVariable -> {Client} [wood] {add} [10]
[X] 3 [0] onVariableTrue -> Client -> chatMessage -> [<color:0000FF>You earned <color:FFFFFF>10<color:00FFFF> wood!]
[X] 4 [0] onVariableTrue -> Self -> VCE_modVariable -> {Brick} [Hits] {set} [0]
[X] 5 [0] onVariableFalse -> Self -> VCE_modVariable -> {Brick} [Hits] {subtract} [1]
[X] 6 [0] onActivate -> Client -> centerPrint -> [<color:FF00FF>Hits<color:FFFFFF>: <var:brick:hits> / 10] [3]
[X] 7 [0] onActivate -> Client -> bottomPrint -> [<color:FFFF00>Wood<color:FFFFFF>: <var:client:wood>] [3]

--- End code ---

That's just what you want straight forward with a little color.

--- End quote ---
Thank you so much.

jes00:

No edit.

It did not work it just said /10 hits left and then after like two hits you chopped it down and in the chat it said you got 10 wood but I want the tree to have ten hits.

jes00:

Bump

jes00:

Bumpo

Pages: << < (2/3) > >>

Go to full version