Author Topic: Need VCE help  (Read 1026 times)

Can someone please give me a screenshot of what a trees events look like on VCE with an RPG axe?

Define what you want to happen. Do you want a straight forward tree, or do you want all the bells and whistles?

Define what you want to happen. Do you want a straight forward tree, or do you want all the bells and whistles?
I want it to where you hit the tree the client says a number and then hits left and I want it to have 10 hits and when its cut down it adds to you 1 wood and the tree disappears and thats it.


http://forum.blockland.us/index.php?topic=89861.0

Go here.

Use logic and thinking.

You'll be an expert before you know it.

This should work:

Code: [Select]
[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]

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

This should work:

Code: [Select]
[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]

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

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.




I also tried that but it did not work either.

I also tried that but it did not work either.

How did it not work? It's a tutorial for exactly what you're asking.

How did it not work? It's a tutorial for exactly what you're asking.
Ok I will try it again.

*Locked* it worked this time(for some odd reason)