Blockland Forums > Help
Point Shop
<< < (3/3)
Bauklotz:
I've made some stuff like this before.


--- Code: (Blockland Event system) ---onActivate > Self > VCE_modVariable > price $= [your item price here]
onActivate > Self > VCE_modVariable > item $= [name of item here]
onVariableTrue > Player > addItem > [name of item here]
onActivate > Self > VCE_ifValue > <var:client:score> >= <var:brick:price>
onVariableTrue > Client > centerPrint > <color:FFFFFF>You bought a <var:brick:item>!
onVariableFalse > Client > centerPrint > <color:FFFFFF>This item costs <var:brick:price>.

--- End code ---

Very simple, should work. Change the first 3 lines.
phflack:
the hell does $= mean? i know != is not equals, ~= is if it is in the string, and all the others, but have never seen $=...
Chrono:

--- Quote from: phflack on February 26, 2010, 03:41:29 PM ---the hell does $= mean? i know != is not equals, ~= is if it is in the string, and all the others, but have never seen $=...

--- End quote ---
If the string is an exact match.
I never heard of ~=.
Reinforcements:
=D
Jerkface:

--- Quote from: Reinforcements on February 26, 2010, 08:41:27 PM ---=D

--- End quote ---

That is an unhelpful post.
Navigation
Message Index
Previous page

Go to full version