Main Menu
  • Welcome to The RPG Maker Resource Kit.

Making a certain type of quest

Started by godlock2006, December 20, 2008, 12:06:23 AM

0 Members and 1 Guest are viewing this topic.

godlock2006

Im trying to make a quest where you have to get a person a certain amount of one item
from killing an enemy.
How do I make it so when I get the amount I need The quest will be finished and ready to turn in?
You think so?

Grafikal

#1
I THINK that XP's conditional branches allows you to check for a quantity of items that a player has, if not, you can always track your amount using variables. Then make a conditional and IF variable:[whateveryourtracking] >= N, Then you complete the quest. ELSE, nothing happens or do whatever, but the quest is incomplete. N = How many you need of that item by the way.

Nessiah

#2
Well...
This is one of the basics of the basics,





\v[numberhere] shows the value of the specific variable. I'm not sure what XP has, I forgot, but you can check it depending on the script you use.


godlock2006

What about making a quest where you have to kill a certain amount of things
?
You think so?

Grafikal

In the battle event commands in the resource editor, you'll have to create a new enemy (or rather, duplicate one that you already have or something) and in it, at the end when you kill the enemy, make sure you include the event command Variable:
  • += 1. That means that everytime you kill that monster, 1 will be added to the cache in Variable X. Also, again, make sure your quest giver or receiver has the conditional branch making sure that it is checking that Variable:
  • >= n. N is how ever many of those enemies you need to kill.

godlock2006

You think so?

Grafikal

then look in the script. almost all ABS have a command to add integers to some variable upon death.................................. And I'm pretty sure blizz is top notch and wouldn't forget that. Look again.

tSwitch

event code on an enemy event is processed upon enemy death.
meaning you can add a call to increase the variable by 1 or so on the enemy code.
then when you kill it your enemy deaths variable will increase by 1


FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon