Author Topic: Points store  (Read 1386 times)

How do I make it so that a brick CHECKS points?

Onactivate-???-???
VariableTrue-Player-Setinventory

What version of VCE are you using?

Oh, old VCE.
I'm sure theres a IfPlayerScore variable. If so:
Code: [Select]
Imput > Self > IfPlayerScore > <= > POINTS
VariableTrue > Player > OutPut
(Optional point deduction) OnvariableTrue > Client > IncScore > -SCORE

Oh, old VCE.
Do you know where I can get the new VCE? I can't find IfPlayerScore.

Do you know where I can get the new VCE? I can't find IfPlayerScore.
anywhere
a better question is where do you get the old VCE


This is what retrocheck is for.


This is what retrocheck is for.

No.  I'd advise against retrocheck just because it does not follow the same format as the rest of VCE.

OP:
Code: [Select]
[0] [x] [0] [OnActivate] [Self] [VCE_IfValue] [<var:cl:score>] [>=] [5] [1 4]
[1] [x] [0] [OnVariableTrue] [Player] [AddItem] [Sword]
[2] [x] [0] [OnVariableTrue] [Client] [IncScore] [-5]
[3] [x] [0] [OnVariableTrue] [Client] [Centerprint] [You bought a sword]
[4] [x] [0] [OnVariableFalse] [Client] [Centerprint] [You don't have enough points to buy a sword]

This is a very basic, but good place to start with a store.  This checks that you have enough points (5) that corresponds to the price of the requested item (sword).  If you have the required points (5) or more than that, then you get the sword, and the points (5) are subtracted from your score.  The item (sword) is then added to your inventory.  From this basic store system, you can expand to include checks that: can ensure you have an available slot for the sword; if you have bought it before, then the item is just added to your inventory, without a loss of points; etc.

noedit

You need the most recent version of VCE, don't use any old version.  A simple search returns many topics containing the VCE download link.


I wasn't trying to get you to use old VCE. I was asking where you managed to find the old version - the new version is pretty much everywhere. Besides that, the old version is very limited. For the love of god switch to the new one. Use the search button.

I wasn't trying to get you to use old VCE. I was asking where you managed to find the old version - the new version is pretty much everywhere. Besides that, the old version is very limited. For the love of god switch to the new one. Use the search button.

I think Zeblote gave it to me.

I searched in Addons and Modification Discussion, found nothing.

Searched all,

FOUND NOTHING.

I searched in Addons and Modification Discussion, found nothing.

Searched all,

FOUND NOTHING.
http://rtb-archive.host22.com/

I searched in Addons and Modification Discussion, found nothing.

Searched all,

FOUND NOTHING.

Wrong locations.  Should have tried Suggestions and Requests.  Found a lot there.