Author Topic: storing variables in items  (Read 972 times)

any add-ons that allow you to do that?

example of usage:
-variable "gay" is stored on the green key
-jimmy has said green key that contains the variable "gay"
-jimmy walks up to a gay door and opens it with a green key then waltz inside the gay room
-tommy, seeing what is happening before him, tries doing the same, with a green key that is an identical item, but does not have the variable "gay"
-he tries it and gets set on fire, because his green key does not have the variable "gay"
-jimmy can then, out of pity, hand his own green key to tommy, which will allow him to go inside the gay room because it has the variable "gay"

another use of this would be to, if jimmy has been tainting the gay room with his heteroloveuality, confiscate his green key and remove the variable "gay" from it, making it unusable in accessing the gay room.
« Last Edit: March 16, 2015, 08:54:20 PM by Niblic² »

such a good example

but this would be pretty cool


Put inside the door was a gay snake brick
Pls

Put inside the door was a gay snake brick
Pls
Are you okay?

Storing variables into individual items is very simple, and has already been used many, many times, by many many mod authors.

Support_AmmoGuns

You can assign numerical variables to individual weapons to give it 'ammo'

Just alter it a bit and you can give certain items variables, which can be changed by events/scripts.

So like a key with an embedded password in it?
If someone does this, make a keycard model for it, it would fit better than a normal key

The main problem with storing variables on items is that there is no standardized way to handle the behavior of picking up an item. Items that let you pick them up multiple times package the function for picking things up themselves and do custom things. This makes reapplying saved variables in a compatible way a pain.