So I did this tutorial, and all that worked fine: http://www.creationkit.com/Dynamically_Attaching_Scripts
But when I tried using this technique on my mod, when I ported my code from my Object script to an alias script, it gives me all sorts of errors, not recognizing functions that Object reference scripts use.
Basically I think I need to exends it to object reference, but I don't really know exactly how to do that, since it is extending ReferenceAlias when I declare it in the first place.