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?
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.
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.
What about making a quest where you have to kill a certain amount of things
?
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.
Im using Blizz-abs
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.
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