Author Topic: Shop System  (Read 440 times)

I just need to know how to do a fairly simple shop system, say if you got money or a variable for money, what events or mod could you use to put it for good use?

You could try the weapon shop system or modify / learn from it to buy other things
http://forum.blockland.us/index.php?topic=188555.0

With VCE you can have a brick set to when you click it, it checks if the player has enough if a certain variable (money) and if they do it removes the money and gives them an item.
I would post the events, but it's been a while since I've played and I would probably get them wrong or something.

You could always use those variable things.

Money could be used as points, if a thing is per kill or something.

You can create a simple shop system like so:

Code: (events) [Select]
onActivate       >  Client > VCE_ifVariable money >= 100
onVariableTrue  > Player > addItem "gun"
onVariableFalse > Client MessageClient "You do not have enough money to buy a gun"