Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Help
»
Help with Weapon Shop/VCE
« previous
next »
Print
Pages: [
1
]
Author
Topic: Help with Weapon Shop/VCE (Read 726 times)
ravencroft
March 24, 2013, 11:44:50 PM
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?
Ad Bot
Advertisement
Cuddles le Bear
March 25, 2013, 04:06:08 PM
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?
LeetZero
March 25, 2013, 05:57:59 PM
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
| timer
Set
1
2
| 5000
| onVariableFalse
| Client
| VCE_modVariable
| timer
Set
0
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.
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Help
»
Help with Weapon Shop/VCE