Assistance with quest delivery system (pictures included)

Hello, good evening (or morning, night, dusk, or afternoon depending where you're at)! 👋

I am asking for assistance: What would be the best way to go about this system, eventing or plugin. If eventing, then how can I set this up?

I am working on a game that delivers the player a quest depending on a variable (The variable is called CP).
Here is how it works:

  • Player is in sanctuary (building)
    Spoiler
    Inside.png
  • Player leaves sanctuary
  • Player interacts and gains CP
    Spoiler
    Gainign Cp.png
  • Player goes back into sanctuary
  • (System checks to see the CP amount)
    Spoiler
    Common.png
  • Depending on CP amount, the system delivers a quest.
    Spoiler
    Quest added.png

What I am looking for the system to do specifically is this:
  • Check to see if the player is in the sanctuary building or not
  • If player is in sanctuary, then check CP variable.
  • If CP variable is a certain amount, then add "Quest 1" (or run script or plugin command)
  • (i.e. CP = 12, Add Quest 10, 11, 12, 13), (CP = 13, Add Quest 14)
  • Then erase that command to add the quest (because i don't need it to check and keep adding the quest every time the player enters the sanctuary)
The whole idea of the system is to check to see the number the variable is set to and then depending on the variable number, deliver quest to the player (or simply notify them that the quest is in). The system shouldn't continue to notify the player about a quest that has been delivered. Once the quest is delivered, thats it.

I tried it through common events, but having trouble ensuring that the delivery only sends once.:kaomad3:
In the common event, put the quest parts in conditional branches for switch X being off (whatever switch you want to use) and then at the end of that branch, turn the switch on. That will make sure each branch only runs once.
Trihan, you been stalkin' me?
Haha, I tried it out. Seems like an easy fix.

This should do it. Hopefully i can add this to a messanger plugin

Original thread: https://forums.rpgmakerweb.com/threads/assistance-with-quest-delivery-system-pictures-included.75586/