Author Topic: VCE HELP  (Read 1289 times)

I'm trying to make a store
What events do i use to take money away and say if he has enough it'll say "congrats, you bought a <NAMEHERE>"
And if not it'll say "Sorry, not enough!"
Please and thank you

I'm not very good with VCE, but let me go test and if I got it right, I'll help you out.


I made a guide a while ago with old variables but it's really close and you can just use retro check if you want.
http://www.youtube.com/watch?v=7a5ZmbmCovQ

I'm trying to make a store
What events do i use to take money away and say if he has enough it'll say "congrats, you bought a <NAMEHERE>"
And if not it'll say "Sorry, not enough!"
Please and thank you
Code: [Select]
0 | onActivate | Client | VCE_ifVariable | money | >= | 100 | 1 7
1 | onVariableTrue | Client | VCE_modVariable | money | Subtract | 100
2 | onVariableTrue | Player | addItem | Guns Akimbo
3 | onVariableTrue | Client | ChatMessage | Congratulations, you bought Guns Akimbo!
4 | onVariableTrue | Self | playSound | Beep_Popup.wav
5 | onVariableTrue | Client | ChatMessage | <color:00aa00>Money: <color:ffffff><var:cl:money>
6 | onVariableFalse | Client | ChatMessage | Woops! It doesn't look like you have enough money to buy this item!
7 | onVariableFalse | Self | playSound | error.wav

On the brick to buy the stuff, put a onActivate, client or player, Vceifvariable ?, your variable name, etc etc.
Then onVariabletrue, Client, Print Message or whatever else you using, Like center print And on variable true,  Client or player,  Vce mod variable, your variable name etc etc
 the onVariabletrue false,  client,  message,  your cant buy this
On hope you understand. My phones keyboard is acting up.

forget out parrot. Jk. Parrots works better. As in, gives you the item if you buy it.