| Blockland Forums > General Discussion |
| Event help topic | Don't be afraid, ask away! |
| << < (6/16) > >> |
| Lugnut:
I know dat feel bro. |
| K2Dionysus:
How do I - if possible - make VCE give me a gun or two? |
| Lugnut:
VCE cannot give you items. However, VCE can check to see if you have enough points to purchase a weapon. onActivate > Self > VCE_IfValue [<var:cl:score>] [>=] (This means 'the following value is Greater than or Equal to the value of the variable) [100] [ ] onVariableTrue > Player > addItem [Gun] ---NOTE: THIS IS A NON-DEFAULT EVENT. DOWNLOAD IT, IT IS USEFUL. onVariableTrue > Client > Incscore [-100] onVariableTrue > Client > ChatMessage [<color:ffffff>You purchase a <color:fff000>Gun<color:ffffff> for <color:fff000>100 points<color:ffffff>.] onVariableFalse > Client > ChatMessage [<color:ffffff>You do not have enough points to purchase a gun. You need <color:fff000>100 points<color:ffffff> to purchase a gun. These events will check if the client has, or has more than 100 points, and if they do, it will take 100 points and give them a Gun. |
| aludane:
--- Quote from: Port on December 09, 2011, 03:32:20 PM ---Why doesn't this work? brick_1 (Name: cpu) InputTargetOutput0onActivateSelfVCE_stateFunctionADD1 21onVariableFunctionSelfVCE_modVariablereturnSet<var:br:var0>2onVariableFunctionSelfVCE_modVariablereturnAdd<var:br:var1> brick_2 InputTargetOutput0onActivateNAMED_BRICK: cpuVCE_modVariablevar0Set41onActivateNAMED_BRICK: cpuVCE_modVariablevar1Set52onActivateNAMED_BRICK: cpuVCE_callFunctionADD3onActivateClientCenterPrint<var:cpu:var0> + <var:cpu:var1> = <var:cpu:return>5 Why does this display <var:cpu:var0> + <var:cpu:var1> = <var:cpu:return> instead of 4 + 5 = 9? --- End quote --- Put <var:nb_cpu:var1> it will work. |
| K2Dionysus:
--- Quote from: Lugnut1206 on December 10, 2011, 02:05:40 AM ---VCE cannot give you items. However, VCE can check to see if you have enough points to purchase a weapon. onActivate > Self > VCE_IfValue [<var:cl:score>] [>=] (This means 'the following value is Greater than or Equal to the value of the variable) [100] [ ] onVariableTrue > Player > addItem [Gun] ---NOTE: THIS IS A NON-DEFAULT EVENT. DOWNLOAD IT, IT IS USEFUL. onVariableTrue > Client > Incscore [-100] onVariableTrue > Client > ChatMessage [<color:ffffff>You purchase a <color:fff000>Gun<color:ffffff> for <color:fff000>100 points<color:ffffff>.] onVariableFalse > Client > ChatMessage [<color:ffffff>You do not have enough points to purchase a gun. You need <color:fff000>100 points<color:ffffff> to purchase a gun. These events will check if the client has, or has more than 100 points, and if they do, it will take 100 points and give them a Gun. --- End quote --- Oh, well thanks anyway. Another thing, guys, how to I make a chat-warp with VCE? Like, I say KABLOOEY and it instantly warps me to my basement? I use to make them, but VCE is very hard to remember |
| Navigation |
| Message Index |
| Next page |
| Previous page |