Ummm why do you remove invisibility on the first conditional branch on your common event?
This possibly nullifies the whole state change, thus you are always visible.
What you do is telling VX Ace to do this:
If the player is invisible,
He will not be invisible anymore
otherwise
ask the player if he wants to be invisible.
And do stuff according to his/her choice.
==========================================
If you call this event being invisible, you are instantly not invisible. You understand that right?
Check out if this is the case.
I also see a @see player and an @invis switch variables that....
well....
I can't really understand how you use them....
I assume @see player has to do with tile distances, while @invis is a switch or something.
But HOW does this whole thing glue together?
Did you missed posting an event that merge all these?
Are you confused and try stuff, leaving leftovers?
What is the case here?
Please give us some more feedback so we can help.
You probably don't really make the guards check for invisibility.
Thus they always see you.
If you are not very experienced with VX Ace, please consider downloading a tutorial on Events I made.
Just press the spoiler on my signature and you are good to go. Go get it, in 4 hours you will have everything figured out. Hopefully... :p