Author Topic: Brick syntax error  (Read 436 times)

Code: [Select]
datablock fxDTSBrickData (5515)
{
brickfile = "./5515.blb";
category = "Bricks";
subCategory = "Generated";
uiName = "5x5x15";
};
This gives me a syntax error for some reason, I compared it to the Large Cubes datablock and I don't see any differences in the syntax besides the icon being non-existant.
Code: [Select]
datablock fxDTSBrickData (brick64xCubeData)
{
brickFile = "./64x Cube.blb";
category = "Baseplates";
subCategory = "Cube";
uiName = "64x Cube";
iconName = "Add-Ons/Brick_Large_Cubes/64x Cube";
};

fxDTSBrickData names have to fall under brickBLANKData

fxDTSBrickData names have to fall under brickBLANKData
no they don't

You're trying to set the datablock's name to a string beginning with a non-alphabetical character.

You can't do that.

If you still don't get it: echo(%0N);

(That's not a perfect example because referring to objects by name doesn't use % or $.)

No variable name/object name can start with a number.

no they don't
well then i suck at scripting bricks and should go away

well then i suck at scripting bricks and should go away

They don't HAVE to fall under that nameset but it's an accepted standard.

fxDtsXData
XProjectile
XItem
XImage
XLight

...and so on.

No variable name/object name can start with a number.
Thanks.