Author Topic: vce help  (Read 589 times)

mind telling me how to check BLID in vce?

What do you mean? Give more info.

Ifvalue and <var:cl:bl_id>



k thanks, but also if i was selling a bottle for 4 gold, what events would i do?

Again, I need more explanation.

Lets say i killed something for 4 points.
And i head to the shop
I buy a gun for 2 points
what event would that be?

NOEDIT: Client>Ifvalue
input>self>vce_ifvalue[<var:cl:bl_id>][==][numbers][numbers]
Lets say i killed something for 4 points.
And i head to the shop
I buy a gun for 2 points
what event would that be?
input>self>vce_ifvalue[<var:cl:score>][>=][2][numbers]
onvariabletrue>client>incscore[-2]
onvaraibletrue>player>additem[gun]

1. onBotKilled > Client > varModVariable [gold]
  • [4] (this add 4 client-side gold when a bot is killed, you can set the onBotKilled to whatever you want)


1. onActivate > Self > RetroCheck [var:cl:gold] [>=] [2] [2 4] (this checks if the player has necessary amount of gold to buy the item)
2. onvariabletrue > Player > addItem (if the player has enough, the player will get the item)
3. onvariabletrue > Client > varModVariable [gold] [-] [2] (this takes 2 gold from the client)
4. onvariablefalse > Client > centerprint [You don't have enough money] (if the player doesn't have enough money, it displays this message)