(1) Is there a way to attach a script to an object instance dynamically? For example, I would like to make a spell effect that spawns butterflies when the target is sitting down (i.e. attach an Actor Script with an implemented "OnSit").
(2) Is there a way to change the state variables or call functions of other scripts? For instance, I just summoned an actor with.... say a regeneration script that basically heals the actor for x pts per second. Let's say x is a variable with a setter method in the script, would I be able to have another script to talk to this script and change that through just simple coding?
Edit: For the second question, let's say you only have the pointer to the object but not the scripts attached.