Responsive Events

I am using VX ACE and I'm fairly new. I'm wondering how to ad in functions to test whether an event has already taken place. Here is what I mean.

What I have so far:

- I have a guard character who stands around. He tells me to leave.

- I choose "Spit on Guard"

- The guard punches me and I lose health, etc...

- The guard says "Do that again and I'll kill you."

What I want:

- The next time that I choose "Spit on Guard" the guard will do something different.

A simpler example would be:

- I tell a character to move.

- They move.

- Next time that I talk to them, I can't tell them to move again.

Thanks in advance for your help
What you need for that is switches or variables, and you don't check if something has taken place, but when it takes place you set a switch to mark that as has happened.

I suggest you follow the link in my signature and work through the tutorials, because variables, switches and multiple event pages are the basic element of everything that has any form of sequence, and you can't really make a game without understanding them.
Done a lot of research on switches and variables. Yes, the game is really coming together now. Thanks for the link.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/responsive-events.39825/