Blockland Forums > Help

Displaying variables

Pages: (1/1)

MaxNikkos:

How do I display variables in a Center/Chat/BottomPrint? I'm pretty sure it can be done, I really need this for my RPG that I'm working on.

Corbiere:

Say if you have a variable called gold in the client

Then you would chatmessage/bottomprint/centreprint:

You have <var:cl:gold> gold!

The <var is the variable start thingy     :cl: is the type of variable it is, specified when you do modvariable      and    gold> is your variable

Corbiere:

In fact, that's the only way I know of displaying VCE vars

Deathwishez:

<var:target:variable/value>

Var = Variable. This lets the system know you're refering the the VCE.

Target = The host of the variable/value. It will be Player, Client, Minigame, Vehicle, or Brick

Variable/Value = The name of the variable/value

phflack:


--- Quote from: Corbiere on April 06, 2010, 06:05:16 AM ---In fact, that's the only way I know of displaying VCE vars

--- End quote ---
it isn't, try print bricks that have the event to incriment printcount on relay, then onoverflow fire relay to next brick
for variable brick, set one variable to a temp. variable, and decrement that until it is 1, firing relays to the print bricks

Pages: (1/1)

Go to full version