ProgMath2 Posted November 28, 2015 Share Posted November 28, 2015 If I just 'set' or 'let :=' the new variable to the iterator, it becames pointer to rItem, not a copy of it's value. Link to comment Share on other sites More sharing options...
Surilindur Posted November 28, 2015 Share Posted November 28, 2015 (edited) How about setting it to the base object... would that make a difference? If the iteration process iterates references and not base objects? How did you do it? What is it that you are trying to accomplish if I may ask? Just curious. let rStored := rItem.GetBaseObjectIf you just need the base objects, you could use the GetItems command. Which should return an array, I think? Been a few months since I did any scripting for Oblivion, so I am not sure myself, either. Small brain I have, can only hold so much. :tongue: Edited November 28, 2015 by PhilippePetain Link to comment Share on other sites More sharing options...
ProgMath2 Posted November 28, 2015 Author Share Posted November 28, 2015 (edited) I am currently remembering the base object. But the thing is that my objects are soulgems, and each reference has it's own unique soul level and ref var of contained victim (in it's script). In the first cycle I determine the most suitable gem. When I need to remove it's ref, I have to perform another search. Nothing crucial, but the code is looking bad and the script is running slow. Comparatively. Edited November 28, 2015 by ProgMath2 Link to comment Share on other sites More sharing options...
Recommended Posts