Objects with attributes (lit, wetted, frozen or similar)
msmud99
22 Jun 2018, 12:32Hi, 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
The Pixie
22 Jun 2018, 12:41In 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
msmud99
25 Jun 2018, 08:05Hi, and thanks for your prompt reply. With apple.alias = "apple (frozen)" in quotations marks it quickly worked !
Best
AJ