Objects with attributes (lit, wetted, frozen or similar)

Hi, perhaps this was in the Forum before and I just cannot find: but how can I define objects (e.g. an apple) that changes status and is also displayed so in inventory ? Like apple (frozen) or torch (lit) or cocacola (frozen) ? Thanks a lot. Andreas


In code, you would just do:

apple.frozen = true
apple.alias = apple (frozen)

To test if it is frozen:

if (GetBoolean(apple, "frozen")) {
  ...

Are you happy with code? I can explain more if required


Hi, and thanks for your prompt reply. With apple.alias = "apple (frozen)" in quotations marks it quickly worked !

Best

AJ


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

Support

Forums