Author Topic: VCE Score system help  (Read 838 times)

I tried doing this, but since I don't know jack about vce, I searched up on how to do this.
It's kinda working, but no matter what score you have, <= will be true, and >= will be false.

Maybe I'm doing it wrong, but can someone give me an example?

No one EVER comes to the help board.

What exactly do you want to do?

Basically trying to buy a weapon.
Say it's 5 points.

What I'm doing is:

onActivate > Player > VCE_ifVariable > [points        ] >= [5         ] [    ]
onVariableTrue > additem > weapon
onVariableTrue > Client > incscore > [-5]
onVariableFalse > Client > Centerprint > [You don't have enough points!]

But every time, no matter what the score, it always does one thing.

onActivate > Self > VCE_ifVariable [Client] [Points] [>=] [5] [1 3]
onVariableTrue > additem > weapon
onVariableTrue > Client > incscore > [-5]
onVariableFalse > Client > Centerprint > [You don't have enough points!]

You need to fill that last box with the events that you want activated. The first number is where it starts, the last number is where it stops. Otherwise, it checks ALL onVars.

Also, score is under client, not the player. If it was under player, your score would reset EACH time you died or re-joined. Client stays as long as your on the server.

Ideally your whole first line is wrong lol

noedit:
I derped.

First line should be this:
onActivate > Self > VCE_retroCheck [ifPlayerScore] [ >= ] [5          ] [1 3 ]

p. Sure retrocheck is an addition to VCE, so if that is the case, this works too:


Basically trying to buy a weapon.
Say it's 5 points.

What I'm doing is:

onActivate > Player > VCE_ifVariable > [points        ] >= [5         ] [    ]
onVariableTrue > additem > weapon
onVariableTrue > Client > incscore > [-5]
onVariableFalse > Client > Centerprint > [You don't have enough points!]

But every time, no matter what the score, it always does one thing.
not ifvariable, ifvalue

onActivate Self VCE_ifValue <var:cl:score> >= 5

Thanks guys, I'll try it when I get the chance.