adjusted player and character, added trigger