Complex sentence: Tom is nearly caught and beaten by the Royal Guards; however, Edward stops them and invites Tom into his palace chamber.
Split into simpler sentences: Tom is nearly caught and beaten by the Royal Guards. However, Edward stops them and invites Tom into his palace chamber.