Author Topic: Tagging variables for bricks to save  (Read 609 times)

There should be a way to tag certain variables on bricks to save. This would allow things like storing items in chests, setting trophy bricks to have a list of all people who win, setting a ton of bricks to "terrain" so that they don't break.

If this is already possible somehow, how?

Well you can do it with script by doing %brick.taggedField
Are you looking for a wrench menu update or something?

I mean if I set %brick.Variable = 1; and register that as a tag, when I reload bricks %brick.variable should equal 1. Currently if I set a variable to a brick and save, when reloaded a new brick is created that has no properties of the previous brick in its place.

I mean if I set %brick.Variable = 1; and register that as a tag, when I reload bricks %brick.variable should equal 1. Currently if I set a variable to a brick and save, when reloaded a new brick is created that has no properties of the previous brick in its place.

It's like that for a reason, but can easily be made into what you want.

oh, like integrated into the brick saving system of BL?

It's like that for a reason, but can easily be made into what you want.
What's the reason?

What's the reason?

Well, he's misunderstood you slightly, but the reason would be that it would massively increase file sizes if all bricks saved all variables.

Of course, none of the default variables actually need saving, and unless some moron went all-out overboard with variable tagging, it still wouldn't increase file size too greatly.


It would also be theoretically possible to set the name of a brick to have a 'special' value stored in it. Unfortunately, any way to do this that doesn't break some element of the game also allows users to do this manually, so it gets rather complicated as you have to start checking to make sure THEY'RE not setting 'special' values.

bump. i generally need some kind of framework for this. i have bricks that cycle vehicles and store previous used vehicle variables on the brick and reload them upon respawning the vehicle. i wish i could make those tags save

You would need a completely new saving/loading system.