wjslk Posted February 7, 2015 Share Posted February 7, 2015 I want to remove from the reference's inventory exactly the items that have a given script, say myScript. So, I have something like this let items := getItems foreach aItem <- items let itemRef := aItem["value"] let scriptID := itemRef.getScript if ( scriptID == myScript ) RemoveItemNS itemRef 99999 endif; loop This doesn't work unfortunately. I've tried to do this in a few different ways, too, but without any success. How do I do this properly? Link to comment Share on other sites More sharing options...
QQuix Posted February 7, 2015 Share Posted February 7, 2015 GetItems returns Base Objects, so the syntax should be " let scriptID := getScript itemRef" Link to comment Share on other sites More sharing options...
wjslk Posted February 9, 2015 Author Share Posted February 9, 2015 Thank you! I don't know how long it would have taken me to notice that! Link to comment Share on other sites More sharing options...
Recommended Posts