Assistance with quest delivery system (pictures included)

Runako

Miracle/Magic
Veteran
Joined
May 22, 2012
Messages
126
Reaction score
25
First Language
English
Primarily Uses
RMMV
Hello, good evening (or morning, night, dusk, or afternoon depending where you're at)! :kaohi:

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)
    Inside.png
  • Player leaves sanctuary
  • Player interacts and gains CP
    Gainign Cp.png
  • Player goes back into sanctuary
  • (System checks to see the CP amount)
    Common.png
  • Depending on CP amount, the system delivers a quest.
    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:
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,959
First Language
English
Primarily Uses
RMMV
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.
 

Runako

Miracle/Magic
Veteran
Joined
May 22, 2012
Messages
126
Reaction score
25
First Language
English
Primarily Uses
RMMV
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
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:

Forum statistics

Threads
105,854
Messages
1,017,004
Members
137,562
Latest member
tamedeathman
Top