Deleting an Event if it hits another Event's proximity.

magic sentry towers guard certain towns

these have a chance of when an event comes within the a certain area (so monster engagements) the event has a chance of being killed.

I only want it to have a lowish chance to do this, anyone help how I would go about doing this?
For the sake of the example, let us say that you want a 5% chance.

Set a Variable switch, with the operand a variable of 1 - 20

Conditional branch

If variable equal to 3 Self Switch A ON

else nothing.

Second page set to A ON as a condition

Blank.

Alternatively (if you want the event to respawn if you leave and re-enter the map)

If variable equal to 3 Erase Event

else nothing.
For the sake of the example, let us say that you want a 5% chance.

Set a Variable switch, with the operand a variable of 1 - 20

Conditional branch

If variable equal to 3 Self Switch A ON

else nothing.

Second page set to A ON as a condition

Blank.

Alternatively (if you want the event to respawn if you leave and re-enter the map)

If variable equal to 3 Erase Event

else nothing.
You are a beautiful person, thank you 🙂

Original thread: https://forums.rpgmakerweb.com/threads/deleting-an-event-if-it-hits-another-events-proximity.45055/