Author Topic: Help with VCE events for City RP  (Read 1047 times)

So I've recently, within the last month, have started using VCE events and I find them quite useful.  My most recent build is an new style city RP.  In this RP, I wish to make every aspect of it as realistic as possible in Blockland.  Currently, I am working on the main highway running through the center of the city.  The only VCE events I am using so far is for the toll booths.  This eventing worked great for me, it subtracted .75 dollars and allowed me through, but I have discovered that when someone else goes through the booths, I get the charge of money, have the little message I had set to pop up when the transaction occurs, and yet not have the booths allow passage for the other players cars.  I am using zone bricks for when the car enters the booth and my current draft-like design is to have a wall blocking entrance through.  I also have a brick that changes from gray to green for if you can go or not.  This brick sends relays to the invisiwall.  The eventing is below (as close as I can remember to it)

Onvehicleenterzone-self-VCEifvariable-RMBC Cash >= .75 1 2 3 4

Onvariabletrue-self-VCEmodvariable-brick RMBC Cash subtract .75

Onvartrue-client-bottomprint-You have <var:br:RMBC Cash> RMBC Cash.  Thank you and have...

Onvartrue-namedbrick--toll1go1--firerelay

Onvarfalse-client-bottomprint-You have <var:br:RMBC Cash> RMBC Cash.  You do not have enough...

And that's it for the zone's eventing.  This is only what I think I remember it being, I may have had some player and pl in there instead of brick and br. 

This is probably in some RP post already some time ago but how/what/where do I find the events for the /yes and /no things you type for food and such.

And I was also wondering of there was a way to transfer all of the money spent at the toll booths to my own RP bank account so that I make money when ever people use my highway.

Onvariabletrue-client

I think more people will respond to this if this was in the Help section.

Your events are a little confusing and eye hurting to look at...


0 [X] onVehicleEnterZone > Client > VCE_ifVariable > [RMBCCash] >= [.75] [1 2 3 4]

1 [X] onVariableTrue > Self > VCE_modVariable > [Client] [RMBCCash] subtract [.75]

2 [X] onVariableTrue > Client > Bottomprint > [You have <var:cl:RMBCCash> RMBC Cash.  Thank you and have...]

3 [X] onVariableTrue > NamedBrick: toll1go1 > fireRelay

4 [X] onVariableFalse  > Client > Bottomprint > [You have <var:cl:RMB Cash> RMBC Cash.  You do not have enough...]


Anyways, your subparameters(bolded part) are wrong. It's two numbers like [1 3] would fire event lines 1 through 3. Because you have [1 2 3 4] it might just send it though lines 1 and 2. You would need it to be [1 4] instead. I also recommend you don't have spaces in between variables. I've encounted problems with those.

This is probably in some RP post already some time ago but how/what/where do I find the events for the /yes and /no things you type for food and such.

This is from Iban's CityRPG. There is no event for it, though, it shouldn't be to hard to make one...


And I was also wondering of there was a way to transfer all of the money spent at the toll booths to my own RP bank account so that I make money when ever people use my highway.

Add something where it stores the money spent in the brick. When you click the brick, it gives you all the money and the brick is left with no money.
« Last Edit: June 09, 2011, 02:31:31 PM by Daenth »

It'd be a lot easier to state functions for this, btw.

Your events are a little confusing and eye hurting to look at...


0 [X] onVehicleEnterZone > Client > VCE_ifVariable > [RMBCCash] >= [.75] [1 2 3 4]

1 [X] onVariableTrue > Self > VCE_modVariable > [Client] [RMBCCash] subtract [.75]

2 [X] onVariableTrue > Client > Bottomprint > [You have <var:cl:RMBCCash> RMBC Cash.  Thank you and have...]

3 [X] onVariableTrue > NamedBrick: toll1go1 > fireRelay

4 [X] onVariableFalse  > Client > Bottomprint > [You have <var:cl:RMB Cash> RMBC Cash.  You do not have enough...]


Anyways, your subparameters(bolded part) are wrong. It's two numbers like [1 3] would fire event lines 1 through 3. Because you have [1 2 3 4] it might just send it though lines 1 and 2. You would need it to be [1 4] instead. I also recommend you don't have spaces in between variables. I've encounted problems with those.


Ok thanks but I took what you said and did this but it didn't change anything.  I want to know how to fix the problem where other players go through it and yet I see the message that I set

I think more people will respond to this if this was in the Help section.

Help is for in-game glitches and problems that occur due to invalid document placement or security stuff..stuff like that.  General discussion is for talking about blockland stuff, like eventing.

On the first line, try to set the Client to Client_Driver. Because, it will just send the message to the person who owns that vehicle (The one who plants it)
Oh, and make sure the Cash variable is on Client, not brick.

On the first line, try to set the Client to Client_Driver. Because, it will just send the message to the person who owns that vehicle (The one who plants it)
Oh, and make sure the Cash variable is on Client, not brick.

O ya I forgot that I had player driver set and had just not written it in here.  And I will do the client thing.

Thx