The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: godlock2006 on December 20, 2008, 12:06:23 AM

Title: Making a certain type of quest
Post by: godlock2006 on December 20, 2008, 12:06:23 AM
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?
Title: Re: Making a certain type of quest
Post by: Grafikal on December 20, 2008, 12:23:32 AM
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.
Title: Re: Making a certain type of quest
Post by: Nessiah on December 20, 2008, 03:57:34 AM
Well...
This is one of the basics of the basics,

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi179.photobucket.com%2Falbums%2Fw320%2Fynlraey%2Funya-1.png&hash=838670bc4f68a30d0b356edd2a9ed41abfb001b1)

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi179.photobucket.com%2Falbums%2Fw320%2Fynlraey%2Funya-2.png&hash=66d0085831952bdf408b283884541f5df58c948c)

\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.
Title: Re: Making a certain type of quest
Post by: godlock2006 on December 20, 2008, 02:29:07 PM
What about making a quest where you have to kill a certain amount of things
?
Title: Re: Making a certain type of quest
Post by: Grafikal on December 20, 2008, 03:37:10 PM
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:
Title: Re: Making a certain type of quest
Post by: godlock2006 on December 21, 2008, 11:31:03 PM
Im using Blizz-abs
Title: Re: Making a certain type of quest
Post by: Grafikal on December 21, 2008, 11:51:16 PM
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.
Title: Re: Making a certain type of quest
Post by: tSwitch on December 22, 2008, 02:42:37 PM
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