| Blockland Forums > General Discussion |
| [Guide] How to Use VCE WIP [Guide] |
| (1/1) |
| adam savage:
Welcome to "How to Use VCE"! Guide: First we will start off with some basic stuff about VCE, how to use "VCE_RetroCheck". --- Code: ---OnAcvivate >> Self >> VCE_RetroCheck >> ifPlayerName == Adam Savage OnVariableTrue >> Self >> Disapear >> 1 --- End code --- See? this is the events for a trap door (Not using JVS), Now lets try something that adds Money to a certin player. --- Code: ---OnAcvivate >> Self >> VCE_RetroCheck >> ifPlayerName == Adam Savage OnVariableTrue >> Client >> VCE_ModVariable >> Money Add 100 --- End code --- See? VCE_ModVariable is a way to add/subtract a variable, if you want to display said variable... --- Code: ---OnInZone >> Client >> BottomPrint >> Money: <var:cl:money> >>3 --- End code --- Do you see? the <var:cl:Money> is away of displaying a variable, but you need to put these events in a Zone Brick, if you want them on the floor... --- Code: ---OnPlayerTouch >> Client >> BottomPrint >> Money: <var:cl:money> >>3 --- End code --- See? we changed the Input Event, now we will learn how to use VCE_IfValue, not VCE_RetroCheck , you see VCE_IfValue uses the variable displaying we talked about earlier, like the only granting money to a certain client... --- Code: ---OnActivate >> Client >> VCE_IfValue >> <var:cl:name> == Adam Savage OnVariableTrue >> Client >> VCE_ModVariable >> Money Add 100 --- End code --- You see, IfValue can be used just like retrocheck, exept RetroCheck can't be used on the brick... --- Code: ---OnActivate >> Self >> VCE_IfValue >> <var:br:name> == Brick_1 OnVariableTrue >> Self >> SpawnExplosion >> JeepExplosion --- End code --- See, if the bricks name is Brick_1, the brick explodes, if its not, nothing happens. Now notice, there are TONS of values, here they are: WIP |
| Navigation |
| Message Index |