Author Topic: Need Help With VCE  (Read 884 times)

I am not good with VCE so can anybody tell me what i did wrong

Line 3 onplayertouch is out of place, unless you accidentally set it to onplayertouch instead of onvariabletrue.

Switch lines 6 and 7 and change all of your player targets to client targets.

The variable name "AA12bought" is redundant, as your check of either 1 or 0 could allow the variable to be just AA12.


Still doesnt work
Do you want it to sell a gun then when the gun has been bought once they get it for free?

Sorry for any misspellings or bad autocorrects, I'm on my phone.

Code: [Select]
Onactivate - client - vceIfvariable [aa12bought] == [1] [1 2]
Onvariabletrue player add item [aa12]
Onvariablefalse - self - vceifvalue - [<var:cl:score>] >= [50] [3 7]
Onvariabletrue - client incscore [-50]
Invariable true - client - vcemidvariable [aa12bought] set 1
Onvariabletrue - player - additem [aa12]
Onvariabletrue - client centerprint [weapon has been purchased, click again at any time to receive weapon.]
Onvariablefalse - client - centerprint [not enough poison]
You can save the variables but my fingers hurt too much

it'd be nice if you could, you know, tell us what's going wrong?

that's like posting a picture of your options menu and saying "my blockland doesn't work"

how the heck do we know what to do to fix it?


Do you want it to sell a gun then when the gun has been bought once they get it for free?

Sorry for any misspellings or bad autocorrects, I'm on my phone.

Code: [Select]
Onactivate - client - vceIfvariable [aa12bought] == [1] [1 2]
Onvariabletrue player add item [aa12]
Onvariablefalse - self - vceifvalue - [<var:cl:score>] >= [50] [3 7]
Onvariabletrue - client incscore [-50]
Invariable true - client - vcemidvariable [aa12bought] set 1
Onvariabletrue - player - additem [aa12]
Onvariabletrue - client centerprint [weapon has been purchased, click again at any time to receive weapon.]
Onvariablefalse - client - centerprint [not enough poison]
You can save the variables but my fingers hurt too much

Do exactly this, just use the variable "aa12" instead of "aa12bought", as it is unneeded.