ReserveItem() behaviour

Here you can post threads specific to the current release of the core (099)

Moderator: POL Developer

Post Reply
xeon
Forum Regular
Posts: 338
Joined: Fri Oct 31, 2008 3:18 am
Location: Italy

ReserveItem() behaviour

Post by xeon »

Straight to the point: an item which has been ReserveItem()ed by a script, shouldn't still be able to be accessed by the same script through core API? I mean, for example, FindSubstance(), this is its actual behaviour

FindSubstance(... some item) -> return array of 1 item
ReserveItem(array[1]) -> correctly returns 1
FindSubstance(... some item) -> return error{ errortext = "Not enough of that substance in container" }
User avatar
CWO
POL Expert
Posts: 1158
Joined: Sat Feb 04, 2006 5:49 pm
Location: Chicago, IL USA

Re: ReserveItem() behaviour

Post by CWO »

technically yes but technically no... the question I have for you is why would you have to FindSubstance on an item that you already found and have a reference to?
Post Reply