A young man with a mysterious past and a penchant for inventing things leaves the troll who raised him, meets an unhappy princess he has loved from afar, and discovers a plot against her and her father