Help with wearable items library

jmnevil54
20 Dec 2019, 21:13

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.


Y4T5UR0
21 Dec 2019, 00:22

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...


jmnevil54
21 Dec 2019, 03:35

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


mrangel
21 Dec 2019, 09:11

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


jmnevil54
22 Dec 2019, 19:21
wear/remove commands

Yes.


mrangel
22 Dec 2019, 20:46

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.


jmnevil54
22 Dec 2019, 22:41

Thanks anyway.


jmnevil54
25 Dec 2019, 21:20

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


jmnevil54
27 Dec 2019, 19:13

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


Brian5757
30 Dec 2019, 12:01

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.