Help with wearable items library

Hi. I'm not sure how wearable items are supposed to work. I am trying out the wearables library. I made a coat, and it has the can be worn box turned on. The game is not working. It says "Error running script: Cannot foreach over 'Object: Coat' as it is not a list". Any help is appreciated.


I'm not really an expert at this, but let me help you as much as I can.
First of all, have you set the "Can it be worn?" to "It can be worn"?
Go to tab "wearable" for this coat item. There's a menu under saying "Can it be worn?"
Because Quest apparently has this habit for automatically setting it into "Cannot be worn" even though you've ticked the wearable box
I'm sorry if you've checked it...


I checked it. It says "can be worn."


When does the error appear? Is it when the player tries to use the wear/remove commands?


wear/remove commands

Yes.


I can't figure that one out. The parameter passed to the wear command should be a list, because it has the allow_all attribute. I know I've seen the issue before, or something similar, but can't remember the fix.


Thanks anyway.


Could you just add some code and fix it? I have no idea what though.


Okay, so I set the alias of Coat to 'Coat'.... still not working.


I had a similar error when I upgraded to Quest 5.8 and loaded an adventure into the new version of Quest that I had started to write into an older version of quest.
I needed to re-do some of the things in my adventure again to fix the error so they would work in the new version of Quest.


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

Support

Forums