Cannot take item

RPG101
06 Nov 2020, 07:53I'm using The Pix's CombatLib but now it seems to break the 'take' functions.
for example:
> take crowbar
Error running script: Cannot foreach over 'Object: crowbar' as it is not a list
How can this be fixed?
jmnevil54
07 Nov 2020, 02:13I usually just delete new code until I solve the problem.
Hope this helps.

RPG101
07 Nov 2020, 03:05Could you explain what do you mean by 'delete new code'?
mrangel
07 Nov 2020, 08:45The way "take all" works changed in 5.8.
Are you using a library from Quest 5.8 with an older version of the editor? I believe that would cause the error you're experiencing. Or possibly a library which includes a modified version of the 5.7.2 take command being used with the 5.8 core.
If there's a custom take command in the library, it would be helpful to show us. I'm not at my computer (have been in hospital for over a week) so can't find it right now

RPG101
08 Nov 2020, 02:20Seems like I have downloaded the 'outdated' version of the CombatLib, i've installed the most recent version from github and it works. Thanks all.