ID:120931
 
Not Feasible
Applies to:DM Language
Status: Not Feasible

Implementing this feature is not possible now or in the foreseeable future
I don't know if this is possible or not or even feasible & it doesn't really matter too much but would it be possible to make it so variables like this can be worked with like in the first example unlike the 2nd way which is how it works now?

obj
Tables
density
Wooden
Glass
Bamboo
Metal
Gold
Fake
!density


obj
Tables
density=1
Wooden
Glass
Bamboo
Metal
Gold
Fake
density=0


That's the rough idea but considering how the language works in general probably not feasible considering it probably will be parsing density as being an object or something especially at the top part, the second part would probably show up as an error instead because it's tabbed out & wouldn't right now be detected as a variable.
I'm not entirely sure what you're asking for.

"density" just holds a value that could be TRUE or FALSE (1 or 0). The ! operator just gives you the opposite, so "!density" just means "the opposite of the value that's stored in density". "!density" isn't the same as "density = 0".
Well normally yes but I was talking code that's not used in procs,verbs, or other normal code, but !density or just density alone at all spots would've been fine for my idea too toggling what it would normally be, this similar to how html does their tags, at least the newer ones only mostly, such as...
<video autoplay loop src="file">
>

anything that simply toggles (0-1 on/off yes/no boolean) anything that goes between two values basically would be able to do this in BYOND was my proposal just like that html would do on it.