Complex sentence: For example, after a while, the player's pet will recognize them and will likewise greet them, however if a new player shows up they may react negatively.
Split into simpler sentences: For example, after a while, the player's pet will recognize them and will likewise greet them. However, if a new player shows up, they may react negatively.