Author Topic: Help with Weapon Shop/VCE  (Read 725 times)

Does anyone know where I can get a working Weapon shop mod? The one on the forums is broken.

If there isn't one, how can I do it with VCE?

Let's say you're selling a BALDR for one Point.
OnActivate (Or OnPlayerTouch and crap like that), Self, Vce_retrocheck, IfPlayerScore, >==, 1
(ONLY DO THIS ONE IF YOU HAVE "additem)OnVariableTrue, Player, Additem, Baldr.
That good?

A more complex VCE that requires you to press 2 times in the phase of 5 seconds and also makes aware you of your actions:

Count| Delay| ---| ---| ---| Other integers
0| 0| onActivate| Client| VCE_ifVariable| timer==1| 1 4
1| 0| onVariableFalse| Client| VCE_modVariable| timerSet1
2| 5000| onVariableFalse| Client| VCE_modVariable| timerSet0
3| 0| onVariableFalse| Client| chatMessage| Would you like to buy [item] for [points]? You have <var:cl:score>*
4| 0| onVariableTrue| Client| VCE_retroCheck| ifPlayerScore>=[points]| 5 8
5| 0| onVariableFalse| Client| chatMessage| You need more points for that!
6| 0| onVariableTrue| Client| incScore| -[points]
7| 0| onVarialbeTrue| Client| chatMessage| You bought [item] for [points]!
8| 0| onVariableTrue| Client| addItem
| [item]

*If you use another value like "money" for some reason, do that instead. Also the whole messages are not really required to be phrased anyhow, feel free to variate.

PS. If you know how you can make the check for money before the user gets the double-click message. This is just a variation but either is possible.