Author Topic: VCE Scores  (Read 2015 times)

I've seen on some zombie servers that for new weapons, you're supposed to get points, and clicking on the weapon buttons give you the weapon, and take away the points. One thing I know, this is something about VCE with scores. Help?

No first post for the noobs out there.

You do it with client variables and variable replacers. To learn more about VCE, I would advise that you read the help files that are included with the Add-On download.

1 [X] | OnActivate>Player>VCEifVariable>Points<={Price Of Weapon Here}
2 [X] | VariableTrue>Player>AddItem> {Weapon name Here}
3 [X] | Variable True>Player>Client>CenterPrint><color:ffffff>You bought a {Weapon Name Here} for {Price of Weapon Here} {Name of Currency}
4 [X] | Variable False>Player>Client>CenterPrinte><color:ff0000>ERROR!<color:ffffff> You don't have enough {Name of Curreny} to buy that!

On the Zombie Spawn:
1 [X] | OnZombieDeath>Player>VCEModVariable>Points, Add, 1

onzombiedeath has no player/client output, only brick, i suggest using score <var:cl:score>

Checking the cost: <var:cl:score>
Charging the client: incScore [-(cost)]

Do you have to be in a minigame for this to work? 'Cause I am wondering the same thing as Talent74!

no, although you only get points in the minigame for kills, although you can get points from events out of a minigame too (input>client>incscore)

May someone please give me an example?

Ok, people, I got the VCE stuff narrowed down, but for one thing, how do you subtract scores with VCE?

Thanks guys! Locking topic.