SmartHarvestSE
SmartHarvestSE copied to clipboard
Resolution of scripted ACTIs not working reliably
Following on from #483. The Harrada Root object can be either LVLI or INGR depending on whether it's patched for CACO or not.
I cannot get the script to work with either, though. Now the crash is fixed, the object gets looted (CACO case tested) but notifications get spammed because REFR state checking does not work.
Try to rework all of this into C++ using script/property introspection as per https://github.com/Liolel/More-Informative-Console/blob/main/src/Util/ScriptUtil.cpp etc. This mod does display the LVLI correctly. The Base Object info should only be introspected once, preferably during startup, since it's non-trivial work.
State checking should be possible too, making more code run in C++ via Task Interface rather than scripted. REFR state would have to be done every time afai can tell. It might be possible to use a transient cache for a given in-range REFR.