Make object too big to fit in container (solved)

Is it possible to stop an object being put inside a container if it would logically be too big?


I've just discovered 'volume' so can solve this now! Sorry.


I believe you could do it with an if-script and a variable. But I could be mistaken.

On the Container Object, Attributes Tab

if (player.toobig=True) {
  msg ("<br/>You simply cannot fit this into your bag! Argh, the humanity! <br/>")
}

And then on the Specific Object, Attributes Tab

ADD
toobig
Boolean - True

Oops...too late! Well, this is an alternative anyway. Hope it works!

Anonynn


cheers anonynn! Have gone with the volume solution and a limited container, object value is zero by default, so set limit of 1 on container, then change volume = 1 on any object I don't want the player to fit in the container


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums