Author Topic: Need help with VCE.  (Read 472 times)

Well how do you make an event when
a certain amout of points scored by a player
e.g 37 it would give a prompt message saying
-would you like this weapon?- and if you say yes
it would add it into your invertory.
Thanks!


so, after you score 37 points, it prompts you, not when you go over to try and buy a weapon?
i disaprove of that, as you could be in the middle of a battle
basicaly, i would put a zone on the roof and have it go downward, updating every 5 seconds or so (creating a new zone, so they enter it every 5 seconds), then onplayerenterzone, check if their score is >= the ammounts, if yes, check if a variable is not 1, if true, set it to 1, and prompt them, that way you don't prompt every 5 seconds, but only the first time after they get the score

Hold on would be easier if instead of
prompting maybye get teleported into a
weapon selecting room?

Hold on would be easier if instead of
prompting maybye get teleported into a
weapon selecting room?
sure, use that as the output instead of the prompt then

If you could, would you mind writing the code
of events? 

put this on baseplates on the ceiling of the whole build, and you'll need setplayertransform, VCE, and zones
Code: [Select]
0[0]onminigamereset>self>firerelay
1[5000]onrelay>self>firerelay
2[0]onrelay>self>setzone[down][500][][][]
3[0]onplayerenterzone>self>VCE_ifvalue[<var:cl:score>][>=][37][4 4]
4[0]onvariabletrue>player>vce_ifvariable[37][!=][1][5 ]
5[0]onvariabletrue>player>vce_modvariable[37][set][1]
6[0]onvariabletrue>namedbrick[telebrick_shop]>setplayertransform[north][X][0]
it should be something like that

How long does it take you to type that stuff out?

How long does it take you to type that stuff out?
around a minute? it's faster to event it ingame, it doesn't take long though, as i know what every thing is, as it's clearly labled and pretty self explanitory what everything does, and i use most events often

Nice. I bet you can create almost anything.

Nice. I bet you can create almost anything.
just about, it depends on how laggy you want your server to be though :D
i made a chess set, so that you click 1 button to toggle color of black and white as well as reseting the peice, and another to change the type of peice (pawn -> knight -> bishop -> rook -> queen -> king -> none -> pawn...), and then duplicated that 64 times, each peice was around 500 bricks, all of them fully evented, and it lagged slightly :D