Custom state effects

I would like to know how I can make it that a character affected by a state becomes invisible and un-targetable by both single and AoE target skills.

Edit: Also, how do I control where the camera goes through events? I want to make it that after an event is triggered, the camera starts to follow an NPC (event) instead of the player.

Original thread: https://forums.rpgmakerweb.com/threads/custom-state-effects.54416/