VCE For Dummies!
OnActivate<Client<VCEModVariable[Cash + 1]
adds 1 variable "cash" to the client. The difference between client and player is client variables do not dissapear when the player dies.
Simple Purchasing:
Line0 OnActivate<Client<IfVariable[Cash >= 5]
Line1 OnVariableTrue<Client<VCEModVariable[Cash - 5]
Line2 OnVariableTrue<Player<AddItem[Gun]
Line3 OnVariableTrue<Client<CenterPrint[You bought a gun for 5 dollars!]
Line4 OnVariableFalse<Client<CenterPrint[You do not have enough for a gun.]
The above code requires the player to have 5 of the cash variable. If they have 5 or more (>=) it will subtract 5 (line 1), give them the gun (line 2), tell them they purchased it with centerprint (line 3), or if they dont have enough, they are told they dont have enough (line 4)